If the broker, the controller or Homebridge is restarted, the current door state might be lost as it is not published periodically (only when it changed). By setting the retain flag, the MQTT messages can be stored and make available to clients after restart.
If the broker, the controller or Homebridge is restarted, the current door state might be lost as it is not published periodically (only when it changed). By setting the retain flag, the MQTT messages can be stored and make available to clients after restart.