Projekt:Türsteuerung: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(L breathlessness, cialis bottles statisticians, is zanaflex safe to take with suboxone confidant percocet zanaflex together we make football inpatient nail-fold.) |
|||
Zeile 1: | Zeile 1: | ||
− | + | {{Projekt|proj_name=Tuersteuerung|proj_status=stable|proj_image=door.jpg|beschreibung=homematik Tuerschlossantrieb samt Steuerung und Benutzerverwaltung|maint=smash|git=https://git.un-hack-bar.de/UNHB/}} | |
+ | == door.unhb == | ||
+ | homegear installation, oeffnet und schliesst die tuer zum space, updated spaceapi | ||
+ | |||
+ | === Zugang === | ||
+ | * SSH: credentials liegen im keepass | ||
+ | * filesystem ist ro, bei aenderungen vorher ''sudo mount -o remount,rw /'' und danach natuerlich ''sudo mount -o remount,ro /'' | ||
+ | * Tuer schliessen: user open/close via ssh pubkey | ||
+ | |||
+ | === user hinzufuegen === | ||
+ | * per ssh auf door.unhb verbinden | ||
+ | * sudo add_dooruser.sh ausfuehren | ||
+ | * usernamen & ssh pubkey eingeben | ||
+ | |||
+ | === user entfernen === | ||
+ | * user manuell aus /etc/ssh/authorized_keys entfernen | ||
+ | |||
+ | === tuer oeffnen === | ||
+ | ==== via ssh client ==== | ||
+ | * mit wifi unhb.de verbinden | ||
+ | * ssh open@door.unhb oeffnet die tuer | ||
+ | * ssh close@door.unhb schliesst die tuer | ||
+ | |||
+ | ==== via app ==== | ||
+ | Aktuell funktioniert (fuer Android): https://github.com/mwarning/trigger | ||
+ | |||
+ | * Door Type: ssh | ||
+ | * Host: door.unhb | ||
+ | * Port: 22 | ||
+ | * User: keymaster | ||
+ | * Open Command: USER=open /home/pi/door.sh | ||
+ | * Close Command: USER=close /home/pi/door.sh | ||
+ | * State Command: /home/pi/get_space_status.py | ||
+ | * SSIDs: unhb.de | ||
+ | |||
+ | == mqtt == | ||
+ | saemtliche schliessvorgaenge werden via mqtt geloggt und ausgeloest | ||
+ | |||
+ | '''relevante topics:''' | ||
+ | |||
+ | * /unhb/..../set/ | ||
+ | * /unhb/..../get/ | ||
+ | |||
+ | [[Kategorie:Projekt]] |
Aktuelle Version vom 2. April 2020, 10:03 Uhr
Tuersteuerung | |
Status | stable |
Beschreibung | homematik Tuerschlossantrieb samt Steuerung und Benutzerverwaltung |
Maintainer | smash |
Git | https://git.un-hack-bar.de/UNHB/ |
door.unhb[Bearbeiten | | Quelltext bearbeiten]
homegear installation, oeffnet und schliesst die tuer zum space, updated spaceapi
Zugang[Bearbeiten | | Quelltext bearbeiten]
- SSH: credentials liegen im keepass
- filesystem ist ro, bei aenderungen vorher sudo mount -o remount,rw / und danach natuerlich sudo mount -o remount,ro /
- Tuer schliessen: user open/close via ssh pubkey
user hinzufuegen[Bearbeiten | | Quelltext bearbeiten]
- per ssh auf door.unhb verbinden
- sudo add_dooruser.sh ausfuehren
- usernamen & ssh pubkey eingeben
user entfernen[Bearbeiten | | Quelltext bearbeiten]
- user manuell aus /etc/ssh/authorized_keys entfernen
tuer oeffnen[Bearbeiten | | Quelltext bearbeiten]
via ssh client[Bearbeiten | | Quelltext bearbeiten]
- mit wifi unhb.de verbinden
- ssh open@door.unhb oeffnet die tuer
- ssh close@door.unhb schliesst die tuer
via app[Bearbeiten | | Quelltext bearbeiten]
Aktuell funktioniert (fuer Android): https://github.com/mwarning/trigger
- Door Type: ssh
- Host: door.unhb
- Port: 22
- User: keymaster
- Open Command: USER=open /home/pi/door.sh
- Close Command: USER=close /home/pi/door.sh
- State Command: /home/pi/get_space_status.py
- SSIDs: unhb.de
mqtt[Bearbeiten | | Quelltext bearbeiten]
saemtliche schliessvorgaenge werden via mqtt geloggt und ausgeloest
relevante topics:
- /unhb/..../set/
- /unhb/..../get/