MQTT unsure of relay state
-
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?
1 out of 1
Suggested Topics
-
Stabile Controller
Troubleshooting • 5 Mar 2015, 14:08 • C.r.a.z.y. 8 Mar 2015, 15:34 -
WizNet5100 ethernet module chip temperature
Troubleshooting • 21 Jan 2015, 17:08 • bomber 25 Jan 2015, 22:13 -
Sonoff + MySensors mqtt gateway + Home-Assistant
My Project • 19 Jan 2017, 21:51 • Efflon 31 Mar 2017, 14:15 -
Home Assistant v 0.13.1
Home Assistant • 13 Feb 2016, 21:36 • martinhjelmare 19 Apr 2016, 22:51 -
Home Assistant v 0.11.1 with switch support
Home Assistant • 17 Jan 2016, 06:22 • martinhjelmare 29 Jan 2016, 04:11 -
Communication problems between MQTT Gateway (OrangePi) and Node (Arduino Nano)
Troubleshooting • 1 May 2019, 19:22 • gammlerstyle 5 May 2019, 18:01 -
Yet another MQTT gateway for MySensors :)
Development • 11 Aug 2014, 20:52 • scurb 16 Aug 2014, 20:59