Automation
From base48
MQTT - devel
there is MQTT broker running on mqtt.base48.cz (for now without auth)
for auth -> maybe https://github.com/jpmens/mosquitto-auth-plug ?
note: system topic: $SYS/ is interesting :)
draft for topics:
/<room_name>/<thing_type>/<thing_id>
for bool things, sending '0'/'1' would be preferable
Lights
Desk lights are now connected to rPi hanging from the shelf.
To turn on the lights:
echo 'e0' | nc svetlana.local 8008
echo 'e1' | nc svetlana.local 8008
To turn them off
echo 'd0' | nc svetlana.local 8008
echo 'd1' | nc svetlana.local 8008
There will probably be a physical control interface added in the future.