Automation

From base48
Revision as of 11:11, 19 August 2016 by Squirrel (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.