Automation: Difference between revisions
imported>Rmarko (not funny) |
imported>Squirrel No edit summary |
||
Line 1: | Line 1: | ||
== 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 == | == Lights == | ||
Latest revision as of 11:11, 19 August 2016
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: <syntaxhighlight lang="bash"> echo 'e0' | nc svetlana.local 8008 echo 'e1' | nc svetlana.local 8008 </syntaxhighlight>
To turn them off <syntaxhighlight lang="bash"> echo 'd0' | nc svetlana.local 8008 echo 'd1' | nc svetlana.local 8008 </syntaxhighlight>
There will probably be a physical control interface added in the future.