Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
fhem [2017/04/23 21:56] – angelegt geraldfhem [2024/02/29 13:36] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
 ====== fhem ====== ====== fhem ======
 +
 +{{ ::heimautomatisierung-mit-fhem.pdf |}}
 +
 +[[fhem/CUL]]
  
 [[https://fhem.de]] [[https://fhem.de]]
Zeile 6: Zeile 10:
  
 PDF: [[https://fhem.de/Heimautomatisierung-mit-fhem.pdf]] PDF: [[https://fhem.de/Heimautomatisierung-mit-fhem.pdf]]
 +
 +[[http://www.meintechblog.de/2016/05/fhem-server-auf-dem-raspberry-pi-in-weniger-als-einer-stunde-einrichten/|Installation in <1 Stunde]]
 +
 +[[https://wiki.fhem.de/wiki/Trick_der_Woche|Trick der Woche]]
 +===== Sound =====
 +Sound spielen von der FHEM-Commandline:
 +<code>
 +{\system (`mplayer /opt/fhem/sound/dogs/1.mp3`)}
 +</code>
 +
 +===== Logdatei anlegen =====
 +
 +<code>
 +define FileLog_[name] FileLog ./log/[name]R-%Y.log [GERAET]
 +attr FileLog_[name] logtype text
 +</code>
 +
 +Dass Gerät kann man auch nachher genau bestimmen. Oben:
 +set FileLog[blablabla] addREgexpPart [Dropdown] .*
 +
 +===== E-Mail versenden =====
 +
 +[[https://wiki.fhem.de/wiki/E-Mail_senden]]
 +
 +
 +notify, wenn Klingel:
 +
 +Klingel_Haustuer:Longpress:.dingdong { system("/usr/bin/wget 'http://192.168.122.172:8080/zm/cgi-bin/nph-zms?mode=single&monitor=1&scale=100&user=fhem&pass=passwort' -q --output-document=/tmp/kamera.jpg") ;; DebianMail("not\@the.net","$NAME $EVENT","Bei $NAME ist etwas geschehen: $EVENT","/tmp/kamera.jpg");;fhem("set nt.Klingel inactive;set HUEDevice16 blink 3;sleep 10;set nt.Klingel active;") }
 +
 +
 +===== WhatsApp =====
 +
 +**Yowsup**
 +
 +[[http://wiki.fhem.de/wiki/Yowsup]]
 +
 +Krieg ich nicht zum Laufen (wohl, weil WhatsApp das Protokoll ständig ändert und wg. Verschlüsselung etc.)
 +
 +
 +===== CFG =====
 +
  
 /opt/fhem/fhem.cfg /opt/fhem/fhem.cfg
Zeile 13: Zeile 58:
 attr global logfile ./log/fhem-%Y-%m.log attr global logfile ./log/fhem-%Y-%m.log
 attr global modpath . attr global modpath .
-attr global motd none+attr global motd SecurityCheck:
 +
 +WEB,WEBphone,WEBtablet has no associated allowed device with basicAuth.\ 
 +telnetPort has no associated allowed device with password/globalpassword.\ 
 +
 +Restart FHEM for a new check if the problem is fixed,\ 
 +or set the global attribute motd to none to supress this message.\ 
 attr global statefile ./log/fhem.save attr global statefile ./log/fhem.save
 attr global updateInBackground 1 attr global updateInBackground 1
Zeile 48: Zeile 100:
 define lightify LIGHTIFY 192.168.122.86 define lightify LIGHTIFY 192.168.122.86
 attr lightify pollDevices 1 attr lightify pollDevices 1
-attr lightify room Keller+attr lightify room SZ_Gerald
 define LIGHTIFY555B0B0000261884 HUEDevice 555B0B0000261884  IODev=lightify define LIGHTIFY555B0B0000261884 HUEDevice 555B0B0000261884  IODev=lightify
 attr LIGHTIFY555B0B0000261884 IODev lightify attr LIGHTIFY555B0B0000261884 IODev lightify
Zeile 161: Zeile 213:
 attr hueBridge1_HUEGroup0 room HUEDevice attr hueBridge1_HUEGroup0 room HUEDevice
 define Wetter netatmo ACCOUNT crypt:0657435b785155481d595046 crypt:2957415f5d4516060501 58f380d2f75853c01c8c17d3 QBwKArPvkb73fjhMkv3MU6tcuTzd2 define Wetter netatmo ACCOUNT crypt:0657435b785155481d595046 crypt:2957415f5d4516060501 58f380d2f75853c01c8c17d3 QBwKArPvkb73fjhMkv3MU6tcuTzd2
-attr Wetter room Aussen+attr Wetter room Aussen,netatmo
 define netatmo_D70_ee_50_20_ed_86 netatmo 70:ee:50:20:ed:86 define netatmo_D70_ee_50_20_ed_86 netatmo 70:ee:50:20:ed:86
 attr netatmo_D70_ee_50_20_ed_86 IODev Wetter attr netatmo_D70_ee_50_20_ed_86 IODev Wetter
Zeile 167: Zeile 219:
 attr netatmo_D70_ee_50_20_ed_86 devStateIcon .*:no-icon attr netatmo_D70_ee_50_20_ed_86 devStateIcon .*:no-icon
 attr netatmo_D70_ee_50_20_ed_86 icon temp_inside attr netatmo_D70_ee_50_20_ed_86 icon temp_inside
-attr netatmo_D70_ee_50_20_ed_86 room netatmo+attr netatmo_D70_ee_50_20_ed_86 room Aussen,SZ_Gerald,netatmo
 attr netatmo_D70_ee_50_20_ed_86 stateFormat T: temperature H: humidity attr netatmo_D70_ee_50_20_ed_86 stateFormat T: temperature H: humidity
 define netatmo_M02_00_00_20_b4_d4 netatmo MODULE 70:ee:50:20:ed:86 02:00:00:20:b4:d4 define netatmo_M02_00_00_20_b4_d4 netatmo MODULE 70:ee:50:20:ed:86 02:00:00:20:b4:d4
Zeile 182: Zeile 234:
 attr netatmo_M05_00_00_03_08_66 icon weather_rain_gauge attr netatmo_M05_00_00_03_08_66 icon weather_rain_gauge
 attr netatmo_M05_00_00_03_08_66 room Aussen,netatmo attr netatmo_M05_00_00_03_08_66 room Aussen,netatmo
 +define HUEDevice8 HUEDevice 8  IODev=hueBridge1
 +attr HUEDevice8 IODev hueBridge1
 +attr HUEDevice8 alias Regallicht
 +attr HUEDevice8 color-icons 2
 +attr HUEDevice8 devStateIcon {(HUEDevice_devStateIcon($name),"toggle")}
 +attr HUEDevice8 icon hue_filled_lightstrip
 +attr HUEDevice8 model LST001
 +attr HUEDevice8 room HUEDevice
 +attr HUEDevice8 subType colordimmer
 +attr HUEDevice8 webCmd hue:rgb:rgb ff0000:rgb 98FF23:rgb 0000ff:toggle:on:off
 +define HUEDevice7 HUEDevice 7  IODev=hueBridge1
 +attr HUEDevice7 IODev hueBridge1
 +attr HUEDevice7 alias Küchenlicht
 +attr HUEDevice7 color-icons 2
 +attr HUEDevice7 devStateIcon {(HUEDevice_devStateIcon($name),"toggle")}
 +attr HUEDevice7 icon hue_filled_white_and_color_e27_b22
 +attr HUEDevice7 model LWB010
 +attr HUEDevice7 room HUEDevice
 +attr HUEDevice7 subType dimmer
 +attr HUEDevice7 webCmd pct:toggle:on:off
 +define HUEGroup4 HUEDevice group 4  IODev=hueBridge1
 +attr HUEGroup4 IODev hueBridge1
 +attr HUEGroup4 alias Küche
 +attr HUEGroup4 color-icons 2
 +attr HUEGroup4 delayedUpdate 1
 +attr HUEGroup4 devStateIcon {(HUEDevice_devStateIcon($name),"toggle")}
 +attr HUEGroup4 group HUEGroup
 +attr HUEGroup4 icon hue_room_kitchen
 +attr HUEGroup4 room HUEDevice
 +define CUL1 CUL /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@38400 1234
 +attr CUL1 icon cul_cul
 +attr CUL1 rfmode MAX
 +define kschalter IT F000F0000F FF F0
 +attr kschalter IODev CUL1
 +attr kschalter model itswitch
 +attr kschalter room Keller
 +define keffekte IT F00000000F FF F0
 +attr keffekte IODev CUL1
 +attr keffekte model itswitch
 +attr keffekte room Keller
 +
 +define rollo IT 000000000F FF F0
 +attr rollo IODev CUL1
 +attr rollo devStateIcon hoch:fts_shutter_10@yellow runter:fts_shutter_100@green
 +attr rollo eventMap on:runter off:hoch
 +attr rollo model itswitch
 +attr rollo room SZ_Gerald
 +define licht IT 0000F0000F FF F0
 +attr licht IODev CUL1
 +attr licht model itswitch
 +attr licht room SZ_Gerald
 +
 +define FritzBox_main FRITZBOX 192.168.122.1
 +attr FritzBox_main allowTR064Command 1
 +attr FritzBox_main icon it_router
 +define FritzBox_intern FRITZBOX 192.168.122.2
 +attr FritzBox_intern allowTR064Command 1
 +attr FritzBox_intern icon it_router
 +define TV_55 LGTV_WebOS 192.168.122.52
 +attr TV_55 devStateIcon on:10px-kreis-gruen:off off:10px-kreis-rot:on
 +attr TV_55 room Keller
 +define fast_runter dummy
 +attr fast_runter room SZ_Gerald
 +attr fast_runter webCmd on:off
 +define rollo_fast_runter notify CUL1:.*|fast_runter:on set CUL1 ITClock
 </code> </code>
  
 +====== fhem-Befehl in der Bash aufrufen ======
 +
 +[[http://s6z.de/cms/index.php/homeautomation/fhem/34-fhem-befehle-auf-der-shell-ausfuehren]]
 +
 +
 +Nach dem Umstieg auf Raspberry Pi habe ich festgestellt, dass der Aufruf perl fhem.pl <Port> "<Befehl>" ohne Probleme funktioniert. Eine Passtowrtangabe ist bei lokalen Aufrufen nicht nötig, wenn das Password in fhem.cfg mit globalpassword (anstatt password) angegeben wird.
 +
 +<code>
 +...
 +define tPort telnet 7072 global
 +attr tPort globalpassword <PASSWORD>
 +...
 +</code>
 +
 +
 +====== DoorPi & FHEM ======
 +[[https://wiki.fhem.de/wiki/DoorPi_und_FHEM]]
 +
 +[[https://www.doorpi.org/forum/|DoorPi]] ist eine Software, die die Türklingel ergänzen soll.
 +
 +
 +Ziel des Projektes DoorPi ist die Steuerung einer Türsprechanlage mittels einem Einplatiniencomputer wie dem Raspberry Pi und dem Kommunikationsprotokoll VoIP.
 +
 +DoorPi ist ein Event-Action basierendes System. Es gibt Komponenten, die Events auslösen, und Komponenten, die aufgrund dieser Events reagieren. Dazu sollen Ereignisse (Events) wie “Drücken einer Türklingel” oder “RFID Chip xyz vorgehalten” die Auslöser von Aktionen (Actions) wie “Anruf bei Telefon xyz”, “E-Mail an xxx” oder “Öffne Tür” sein.
 +
 +====== Telegram ======
 +
 +DefaultPeer muss ohne führendes @ angegeben werden
 +
 +Mit der API kann keine Verbindung mit dem T-Server aufgenommen werden, weil die SSL-Version veraltet ist0
 
Nach oben
fhem.1492984595.txt.gz · Zuletzt geändert: 2024/02/29 13:35 (Externe Bearbeitung)
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