While remote lights switches are available in many shapes and forms, here is another solution: use a Raspberry Pi Zero W to control a micro servo to flip the switch physically. Still working on a part that will report the state of the switch. Switch used in this project is $2 Leviton decora model S11-5601-2IS, which is available at Home Depot.
Actually testing switch with servo and manually.
Version 2 of the switch with with position reporting via MQTT and registering it in Node-RED dashboard.
Video does not show indicator color change, so we added screen recording on laptop, that is not exactly synchronized but it gives an idea.
Did not work out switch change on a dashboard, but indication works.
Programming: Node-RED schematics
To be able to pack switch with indicator on one line switch uses 4x1 size and indicator 2x1 (see image below).
Based on an input we trigger on or off SSH connection.
Switch triggers an passwordless SSH connection to RPi to actuate servo.
Switch position indicator starts with MQTT in node.
Then it passes data to a function node, where we issue indicator color based on the input with:
then template node creates custom LED indicator based on msg.color
MQTT client to report switch position:
Next, wall installation..