Relay with MQTT gateway down?



  • Hi Everyone,

    As you may know, the default setup with a relay with an MQTT gateway doesn't work if the MQTT GW is down. Now this might be okay for some, but i'm considering changing all my lights to run with the relays, so it's not acceptable to not be able to turn on or off my lights if for some reason my MQTT gateway is down. Does anyone have code that can help me turn on/off a relay while the MQTT is Down? and then wishfully update the MQTT gateway with the status once it's up Again?



  • Don't you have a flaw in design - what if module fails?
    You won't be able to turn on/off light at all...


Log in to reply
 

Suggested Topics

  • 16
  • 2
  • 7
  • 8
  • 6
  • 2
  • 998

164
Online

9.7k
Users

10.3k
Topics

106.4k
Posts