MQTT unsure of relay state

  • Hardware Contributor

    After attempting to connect a relay module and a wireless switch with OpenHab over MQTT it has came to my attention that the relay module does not have any way of informing MQTT what state it is.

    If we use the RelayWithActuator sketch and send a command through mqtt to control the state, sure we can monitor that topic to see the state of the relay. But if we use the on board switch, the module doesn't publish its state to any mqtt topic. So we can only monitor either the state of the relay if we don't use the on board switch, OR if we only use the on board switch.

    I'm trying to get OpenHAB to recognize the state of the relay no matter how it is controlled.

    Does anyone know any sort of fix for this?

Suggested Topics

  • 3
  • 5
  • 89
  • 7
  • 5
  • 19
  • 24