I’ve already set my rule trigger to changed, but the problem is still that when I restart the OH server that the state of the switch is not initialized at startup. So I would have to press every switch once after the startup to synchronize it’s state with Openhab.
I’ve now enabled the trace log and filtered for one of the switch nodes: zwave.log (90.3 KB)
Can you see what the problem is that the state is not updated at startup? The polling seams to be started at startup, but it is not updated in the linked item. I’ve also tried sending a REFRESH with a startup rule, but that also did not synchronize the state at startup:
rule "System started" when System started then SW_ZWAVE_Kitchen_Light.sendCommand(RefreshType.REFRESH) SW_ZWAVE_PC_Light.sendCommand(RefreshType.REFRESH) SW_ZWAVE_Bedroom_Light.sendCommand(RefreshType.REFRESH) SW_ZWAVE_Living_Light_Left.sendCommand(RefreshType.REFRESH) SW_ZWAVE_Living_Light_Right.sendCommand(RefreshType.REFRESH) SW_ZWAVE_Bathroom_Light.sendCommand(RefreshType.REFRESH) end