Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
roomauto:roomauto [2016-02-19 19:12]
xro
roomauto:roomauto [2018-05-22 22:00]
ruru4143 ↷ Links adapted because of a move operation
Line 1: Line 1:
 ======= Room Automatisation ======= ======= Room Automatisation =======
 +
 +=== Slides ===
 +
 +Xro made a nice [[http://​btittelbach.github.io/​r3_sensors_light_power_talk/​|presentation]]
 +
 +====== Lüftungsanlage ======
 +
 +nur im lokalen LAN/WLAN:
 +  * [[http://​ventilation.realraum.at/​]]
 +  * [[http://​lüftung.realraum.at/​]]
 +  * [[http://​sucker.realraum.at/​]]
 +
 +[[ventilation|Projekt Lüftung Dokumentation]]
  
 ====== Licht/​Schaltanlage ====== ====== Licht/​Schaltanlage ======
Line 15: Line 28:
  
 === Automatiken === === Automatiken ===
 +
 +Previously configured by a fancy almost turing complete ini file, now simply hardcoded in [[https://​github.com/​realraum/​door_and_sensors/​blob/​master/​scripts/​dostuff_switch_lights.py| dostuff_switch_lights.py]] running on realraum@mqtt.realraum.at.
 +
 | **Cause** | **Effect** | | **Cause** | **Effect** |
 | Niemand Anwesend | Alles Aus, Homepage Statusupdate | | Niemand Anwesend | Alles Aus, Homepage Statusupdate |
-| Anwesenheit erkanntVor Sonnenuntergang, Innenraum hell Werkzeugbeleuchtung ​ein, Verstärker ​einHomepage Statusupdate | +| Anwesenheit erkannt ​\\ Vor Sonnenuntergang | Tesla ein \\ Warmwasserboiler ​ein \\  CX-GangLEDs ein \\  ​Homepage Statusupdate | 
-| Anwesenheit erkannt, Vor Sonnenuntergang, Innenraum dunkel ​| Deckenlichter ein, Werkzeugbeleuchtung ​ein, Verstärker ​einHomepage Statusupdate | +| Anwesenheit erkannt ​\\ Nach Sonnenuntergang | 50% Deckenlichter ein \\  Tesla ein \\  Warmwasserboiler ​ein \\  CX-GangLEDs ein \\  Abwaschlicht ein \\  LEDs bei Couch ein \\  Blaue Bar LEDS sein \\  ​Homepage Statusupdate | 
-| Anwesenheit ​erkannt, Nach Sonnenuntergang | Nicht-Deckenlichter ​ein, Verstärker ein, Homepage Statusupdate+| Anwesenheit ​gegeben \\ Sonnenuntergang | CX-GangLEDs ​ein | 
-Wandschalter BetätigenDeckenlichter Ein/Aus+Anwesenheit gegeben \\ Sonnenaufgang ​CX-GangLEDs aus 
-| Panic Button ​gedrückt| <​del>​Random Ein/Aus aller Lichter, Random Verstärker Mute</​del>,​ Glados: What are you doing, Statusupdate auf der Homepage|+| Panic Button ​drücken| <​del>​Random Ein/Aus aller Lichter, Random Verstärker Mute</​del>,​ Glados: What are you doing, Statusupdate auf der Homepage|
  
 ==== Sensors and Dataflow ==== ==== Sensors and Dataflow ====
  
 realraum is littered with various sensors. As of 2015-11-21 they all communicate usinq [[http://​mqtt.org|MQTT]],​ an Internet-of-Things Machine2Machine Messaging protocol realraum is littered with various sensors. As of 2015-11-21 they all communicate usinq [[http://​mqtt.org|MQTT]],​ an Internet-of-Things Machine2Machine Messaging protocol
-using a central message broker running on mqtt.realraum.at (see [[:​ip-adressen]]) which in turn currently runs on a RaspberryPI2.+using a central message broker running on mqtt.realraum.at (see [[intern:​ip-adressen]]) which in turn currently runs on a RaspberryPI2.
  
-[[mqtt_topics|See List of MQTT topics]]+--> --> --> ​[[mqtt_topics|See List of MQTT topics]] ​ <- <- <- 
 + 
 +(includes pictures of participating nodes) 
 + 
 +--> --> --> [[dataflow|Graph of nodes and dataflow]] ​ <- <- <-
  
 ==== RF433 Transmitter ==== ==== RF433 Transmitter ====
Line 34: Line 54:
 Our [[https://​github.com/​realraum/​deckenlichtschalter/​blob/​master/​teensy2/​lightctrl/​rf433.c| Code]] for controlling RF433 power outlets or switches or just controlling any cheap RF433 device via ATMega based µC. Our [[https://​github.com/​realraum/​deckenlichtschalter/​blob/​master/​teensy2/​lightctrl/​rf433.c| Code]] for controlling RF433 power outlets or switches or just controlling any cheap RF433 device via ATMega based µC.
  
-Usually some daemon [[https://​github.com/​realraum/​deckenlichtschalter/​tree/​master/​linux/​golightctrl|(1:​new)]],​ [[https://​github.com/​realraum/​deckenlichtschalter/​tree/​master/​linux/​lightctrl|(2:​old)]],​ [[https://​github.com/​realraum/​door_and_sensors/​blob/​master/​scripts/​arduinosensors.py| (3:client for 1 or 2)]] sends 3 byte rfcodes to the ATmega which modulates a pin connected to a transmitter extracted from [[http://​www.pollin.de/​shop/​dt/​NDgxODcyOTk-/​Computer_und_Zubehoer/​Hardware/​Maeuse_Unterlagen_Joystick/​PC_Funkfernbedienung_X10.html|cheap RF433 based remote X10]]+Usually some daemon [[https://​github.com/​realraum/​deckenlichtschalter/​tree/​master/​linux/​golightctrl|(1:​new)]],​ [[https://​github.com/​realraum/​deckenlichtschalter/​tree/​master/​linux/​lightctrl|(2:​old)]],​ [[https://​github.com/​realraum/​door_and_sensors/​blob/​master/​scripts/​arduinosensors.py| (3:client for 1 or 2)]] sends 3 byte rfcodes ​via serial interface ​to the ATmega which modulates a pin connected to a transmitter extracted from [[http://​www.pollin.de/​shop/​dt/​NDgxODcyOTk-/​Computer_und_Zubehoer/​Hardware/​Maeuse_Unterlagen_Joystick/​PC_Funkfernbedienung_X10.html|cheap RF433 based remote X10]]
  
 In realraum there are currently two senders: In realraum there are currently two senders:
Line 40: Line 60:
   - OOOllldd Arduino on top of the shelf which also hosts the stereo next to the frontdoor.   - OOOllldd Arduino on top of the shelf which also hosts the stereo next to the frontdoor.
  
-[[https://​github.com/​realraum/​deckenlichtschalter/​tree/​master/​linux/​golightctrl|golightctrl]] takes care that there they don't send simultaneously.+[[https://​github.com/​realraum/​deckenlichtschalter/​tree/​master/​linux/​golightctrl|golightctrl]] ​running on realraum@licht.realraum.at ​takes care that there they don't send simultaneously.
  
-==== Tür Hardware v1.8 State Diagramm ​====+==== Presence Decision and Related v2.====
  
-{{:xro:whiteboard_tuer_steuerung_v2.jpg?620|}}+The [[https://​github.com/​realraum/​door_and_sensors/​blob/​master/​r3-metaevt-maker/​presence.go|presence-meta-event-goroutine]] tries to diving if someone is present in realraum or not. Various scripts like [[https://github.com/​realraum/​door_and_sensors/​blob/​master/​scripts/​play-sound-status.py|play-sound-status.py]]((running on licht.realraum.at)) or [[https://​github.com/​realraum/​door_and_sensors/​blob/​master/​scripts/​dostuff_switch_lights.py|dostuff_switch_lights.py]]((running on mqtt.realraum.at)) use this information to, guess what, play sounds or toggle the lights or power to boiler and tesla.
  
 +{{:​roomauto:​presence_detection_algorithm.svg?​900|Anwesenheits-Entscheidung v2.0}}
  
-==== OLD Komponenten Skizze v1.0 ====+ ​{{:​roomauto:​presence_detection_algorithm.dia|Dia-Source}},​ {{xro:​presence_detection_algorithm.png?​20|Old Decision Algorithm}}
  
-{{xro:​doorpowersensordaemons.png?​620|}} 
  
 +==== Tür Hardware v1.8 State Diagramm ====
 +
 +{{:​xro:​whiteboard_tuer_steuerung_v2.jpg?​620|}}
  
-==== OLD Anwesenheits-Entscheidung v1.0 ==== +{{tag>​project licht homeautomatisation go mqtt}}
-still somewhat relevant +
-{{xro:​presence_detection_algorithm.png?​620|}}+
realraum Graz, Brockmanngasse 15, 8010 Graz, realraum - Verein für Technik in Kultur und Gesellschaft
  • /var/lib/dokuwiki/data/pages/roomauto/roomauto.txt
  • Last modified: 2020-01-30 15:45
  • by xro