MQTT
Project: MQTT | |
---|---|
Featured: | No |
State | Active |
Members | xopr |
GitHub | mqtt spaceAPI |
Description | Space empty? Power off! |
Picture | |
No project picture! Fill in form Picture or Upload a jpeg here |
synopsis
There is a sonoff Pow wifi switch in the space, connected to a powerstrip near the soldering table (in a brown plastic case with a toggle switch on top of it).
The idea is to gradually add them to every power strip so we can:
- measure (over)current
- switch them off centrally if the space is closed (or notify the user that they are still on).
It currently runs a modified version of the famous Tasmota firmware (the modification allows dangerous GPIO whist using the energy measurement).
NOTE: the switch is built in a box with an external toggle switch. This switch has potentially 240v on its contacts so don't open it and touch the contacts when it is plugged in! Also don't connect both serial and mains; things will break.
You can toggle it via wifi on h1r-2067.lan (subject to change), or by issuing a mosquitto_pub -h <mqtt_ip> -t "cmnd/h1r/POWER" -m "TOGGLE"
todo
- add MQTT server that the switches can connect to, together with the space state
- make MQTT connect to spaceAPI and Power page
- add MOAR sensors
- MOAR sonoffs