====== 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 {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 [:] Anschließend: attr plotAussenTemp label min($data{min1},$data{min3})-1::max($data{max1},$data{max3})+1 ===== gruppierte Plots über den "entfernten" Weblink bearbeiten ===== https://...:8083/fhem?detail=plotAussenTemp ===== longpoll / longpollSVG ===== * shortPoll aktualisiert den Status aller Widgets auf einmal. Bei aktivem longPoll ist das shortPoll-Interval mit 15 Minuten festgelegt, ansonsten mit 30 Sekunden. shortPoll kann nicht deaktiviert werden. * longPoll benutzt den eventgesteuerten Benachrichtigungsdienst von fhem um Statusänderungen direkt zu aktualisieren. Das heisst, fhem sendet eine Nachricht per longPoll sobald sich ein Status ändert und das UI aktualisiert daraufhin automatisch nur die betroffenen Widgets. longPoll ist in fhem standardmäßig aktiv, kann aber deaktiviert werden. Im Zweifel bitte prüfen ob an der verwendeten FHEMWEB-Instanz das Attribut "longpoll 1" gesetzt ist (`list WEB`) attr WEB longpoll 1 attr WEB longpollSVG 1 attr WEBphone longpoll 1 attr WEBtablet longpoll 1 attr WEBtablet longpollSVG 1