Hello everyone !
I'm in the process of building my home automation system: I have a relay shield and I'm going to control it via the GPIOs of the same Raspberry pi that runs Node Red (I'll eventually have to use some multiplexers since I want every light in my house to be controllable)
So far so good.
But I still want to be able to control the lights with the wall switch (pushbuttons, precisely) and, moreover, I'd like to let my dashboard "know" the state of a light, whether it was manually operated or via MQTT
So I ultimately need my wall switches to send an MQTT message, somehow.
My question, sounded a lot simpler in my head in my native language, so I've probably been verbose and convoluted
Kitchen light, controlled by wall pushbutton, wired in parallel to my relay shield, subscribed to home/kitchen/light_1
Wife walks in, turns light on via the wall switch, and walks away.
I check on the dashboard, and I can see that the manually operated light is ON.
I'm not retrofitting an existing electrical system, house is still being built, so I can ask the electrician to install whatever I need, but would hate being charged some fancy domotics, when i'm 99% there
I have a plethora of arduinos and ESP8266, that I can use to publish on MQTT, I just don't know how to sense efficiently (from a cost and size perspective) 30+ lightswitches.
Since I asked for all pushbuttons in my electrical system, there may be a relay box for them already (am I right ?) where i can put my electronics, both for controlling and sensing.
I thought about AC Current sensing sensor, but I'm not sure the 5Amps they are rated, would be enough, but above all I can't see any shields containing more of them as for relay shields, and hooking up 30+ would be horrific.
So, I'm open to cunning dirty cheap, mind-stimulating solutions
Thank you all for reading all this!