DashButton

https://www.youtube.com/watch?v=hVoLIfxFdaY

https://haus-automatisierung.com/hardware/fhem/2017/12/11/fhem-tutorial-reihe-part-49-dash-button.html

Methode 1 (funktioniert nicht zuverlässig)

define DashButton PRESENCE lan-ping 192.168.178.86 1 

Methode 2 (funktioniert)

sudo apt-get install tcpdump
sudo tcpdump -i eth0 port 67 or port 68 -e -n

define DashButton dash_dhcp

sudo iptables -I PREROUTING -t nat -i eth0 -p udp --src 0.0.0.0 --dport 67 -j DNAT --to 0.0.0.0:6767
sudo iptables --table nat --list

sudo apt-get install iptables-persistent
defmod DashButton dash_dhcp
attr DashButton allowed fc:65:de:60:2d:a2
attr DashButton devAlias fc-65-de-60-2d-a2:AfriCola
attr DashButton icon ios_seton_fill
attr DashButton port 6767
attr DashButton room Keller

setstate DashButton listening
setstate DashButton 2018-11-11 22:02:07 AfriCola short
setstate DashButton 2018-11-11 21:22:10 fc-65-de-60-2d-a2 short
setstate DashButton 2018-11-11 21:17:36 state listening



defmod nt.DashButton.Afri notify DashButton:AfriCola:.short {fhem "set licht_keller off;; set Signallicht_Keller off;; set kellergangschalter on;; sleep 10;; set kellergangschalter off"}
attr nt.DashButton.Afri room Keller

setstate nt.DashButton.Afri 2018-11-11 22:02:07
setstate nt.DashButton.Afri 2018-11-11 22:00:01 state active
 
Nach oben
fhem/dashbutton.txt · Zuletzt geändert: 2024/02/29 13:36 von 127.0.0.1
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp