For version DD238-2 ZN/SR (with relay) need to use array command for change register insted single register change command (holding = 0x06 and this is dont work but holdings = 0x10 and work great):
switches: - name: DDS238-2 ZN-SR Relay write_type: holdings address: 26