Inhaltsverzeichnis

FHEM - Tricks

Performance mit ähnlichen notifys

define mynotify01 notify Kontakt01:on.* { myPerlAlarm( );; }
define mynotify02 notify Kontakt02:on.* { myPerlAlarm( );; }
...

aus Performancegründen besser so:

define mynotify notify Kontakt..:on.* { myPerlAlarm( );; }

Loggen eines Sensors

define Logger notify <Sensor> {Log 1, "$NAME: $EVENT"} 

Can't open /dev/ttyAMA0: Keine Berechtigung

# cd /opt
# chmod -R a+w fhem
# groupadd usb
# adduser fhem usb
# echo 'SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", GROUP="usb"' >/etc/udev/rules.d/45-usbzugriff.rules
# service udev restart

Oder

# cd /opt && chmod -R a+w fhem && usermod -a -G tty pi &&  usermod -a -G tty fhem

Plots dynamisch skalieren

Im .gplot yrange-Zeile auskommentieren

Plots dynamisch im Abstand von 1 skalieren

Im gplot

set yrange [<L1>:<L2>]

Anschließend:

attr plotAussenTemp label min($data{min1},$data{min3})-1::max($data{max1},$data{max3})+1
https://...:8083/fhem?detail=plotAussenTemp

longpoll / longpollSVG

attr WEB longpoll 1
attr WEB longpollSVG 1
attr WEBphone longpoll 1
attr WEBtablet longpoll 1
attr WEBtablet longpollSVG 1