====== Raumautomatisierung (Archiv, Stand: 2016/2017) ====== ===== Übersicht ===== auf lifesupport.z9 (aka lux) laufen ein paar Dienste für mehr Cyber im Space. ===== Todos ===== ==== TODO Topics richtig umbenennen ==== * TODO z9/canvas -> screen * TODO z9/media/audio -> sound * TODO rfthing als eigenes Ding machen ===== Bus ===== ==== MQTT ==== Message-Bus für kleine Systeme gedacht. Broker lässt sich einfach per ''%%mosquitto%%'' starten. Best practices unter https://github.com/mqtt-smarthome/mqtt-smarthome zu finden. Clients subscriben zu topics, andere Clients pushen zu topics. ===== Topics ===== ==== Leinwand: ==== /command /status ==== z9/light ==== ==== z9/control ==== ==== z9/canvas/command ==== up down stopp ==== z9/control Global space commands ==== ''%%shutdown%%'' Command to shut down everything ==== z9/door/status ==== Dooris events: "unlock" "lock" etc. ==== projector/command ==== ==== calendar/status ==== Zeigt, ob zur Zeit was geplant ist (''%%planned%%'') oder nicht. ===== Logikzentrum ===== Brainbug, enthält scripts, die auf Events reagieren können. ===== Beamer-Steuerung ===== ==== IR-Codes ==== ''%%mosquitto_pub -h mqtt.z9 -t 'anglirfish/ir/command' -m 'code'%%'' http://www.mikrocontroller.net/articles/IRMP NEC-Kodierung * An: 0x4CB340BF * Aus:0x4CB3748B * HDMI1: 0x4CB36897 * HDMI2: 0x4CB30CF3 * VGA1: 0x4CB3D827 * VGA2: 0x4CB37887 * VIDEO: 0x4CB338C7 * Source: 0x4CB308F7 ==== anglIRfish ==== * ESP8266 with IR diode * speaks MQTT over Wifi ===== Funksteuerung ===== On-off-keying over the 433 MHz rf channels. ==== rf-thing ==== Ist ein Arduino am Server. Spricht seriell, macht 433MHz. Funkmodul hängt an Port 10. ==== rf-thing/send ==== code ==== rf-thing/set/$SWITCH ==== on/off ===== Heizung ===== http://forum.fhem.de/index.php?topic=27532.0 Da läuft ein fhem, dass über den hmland mit dem Funkmodul spricht, welches die Heizungen versteht. Das fhem kann auch MQTT, ist gar nicht so dumm. Nur unglaublich wirr. ==== fhem/set/$HEIZUNG ==== * links, fastlink, fastrechts, (rechts) Set the wanted temperature via ''%%desired-temp 20%%''. ==== fhem/get/$HEIZUNG ==== Temperature in °C, approx. every two minutes. ===== Dooris ===== Die Dooris-Skripte schicken über ''%%mosquitto_pub -h 'mqtt.z9' -t 'fux/door/status' -m 'opened'%%'' u.ä. Statusmeldungen an den Broker.