Nightmare! Stop OH2 turning on my relays

Pull request is created: https://github.com/openhab/openhab-docs/pull/917

1 Like

In your MQTT configuration, do you have retain=true set?

I had the same problem with my MySensors devices all toggling when the server reset, and it turned out to be all the retained messages on the MQTT broker being sent to OpenHab when it connected, causing all kind of weird behaviour (A/C turned on, false motion triggers, etc.)

I solved it by setting retain=false in the config file, and then I had to delete Mosquitto’s retained state database as described here: Clearing MQTT retained messages