Modbus: write_register or toggle switch is only working after restart of configurations.yaml

Hi,
I have a problem with writing of modbus register or/and with toggle of a modbus switch. It’s working properly… but only after restart of configurations.yaml… If I try to do that at next day - isn’t working anymore. Restart of configurations.yaml help for 2-6 hours :wink:

- type: tcp
    host: xxx.xxx.xxx.xx1
    port: 485
    name: GrowattSPH

    switches:
      - name: Growatt_ON/OFF
        address: 0
        command_on: 1
        command_off: 0
        unique_id: 6x0000SPH
        verify:
            input_type: holding
            address: 0
            state_on: 1
            state_off: 0

Any information in the log files.

Hi, sorry for late answer…

logger:
  default: info
  logs:
    homeassistant.components.modbus: debug
    pymodbus: debug

I can’t find any errors with modbus in my logs…

So I assume the problem - homeassistant.core don’t see that the modbus switch changed the state

If I try to change the state of the Growatt_ON/OFF in Dashboard - I don’t see any chages in any logs. If the homeassistant.core will be restarted - all is working properly… 2-6 hours :wink: