Best way to externally read state of a switch?
Posted: Monday 27 February 2017 19:38
Hi
I would like to create a small box with 3 leds that shows the state of 3 switches in Domoticz.
I (will soon) have 3 switches that shows whether or not my doors in the house is locked. I can see this in Domoticz. However, I would like to be able to see the state of my locks without computer/phone.
So what would be the best way.
Is it a NodeMcu/Esp8266 that uses Json to "poll" the switches?
Sould be a easy build but on the downside this Json would have to run about once a minute or every other minute.
So is there a different way? Some way to get a "ping" when the state changes on a switch?
I have a MySensors Gateway. Maybe thats the whay to go?
EDIT All the above text is talking about having the Domoticz controller and my "LED node" on the same wifi network. So the term externally in the title might be misleading.
I would like to create a small box with 3 leds that shows the state of 3 switches in Domoticz.
I (will soon) have 3 switches that shows whether or not my doors in the house is locked. I can see this in Domoticz. However, I would like to be able to see the state of my locks without computer/phone.
So what would be the best way.
Is it a NodeMcu/Esp8266 that uses Json to "poll" the switches?
Sould be a easy build but on the downside this Json would have to run about once a minute or every other minute.
So is there a different way? Some way to get a "ping" when the state changes on a switch?
I have a MySensors Gateway. Maybe thats the whay to go?
EDIT All the above text is talking about having the Domoticz controller and my "LED node" on the same wifi network. So the term externally in the title might be misleading.