Temp./Feuchtigkeitssensor bei einer Signalstörung, dann Benachrichtigung

Begonnen von Heinzi, 01 Februar 2015, 17:49:58

Vorheriges Thema - Nächstes Thema

Heinzi

Hallo,
ich beschäftige mich seit ca. 6 Wochen mit FHEM.

Nun zu meinem aktuellen Problem.
Für den Fall, dass mein jeelink bei einem meiner Temp./Luftfeuchtigkeitssensoren kein Signal erhält, möchte ich eine
Benachrichtigung über Pushbullet. Pushbullet habe ich schon am Laufen. Mein Code im cfg ist bisher:

define jeelinkcross JeeLink /dev/ttyUSB0@57600
attr jeelinkcross flashCommand avrdude -p atmega328P -c arduino -P [PORT] -D -U flash:w:[HEXFILE] 2>[LOGFILE]
attr jeelinkcross initCommands 30t 0a 868280f v
define 04Thermo LaCrosse 1C
attr 04Thermo IODev jeelinkcross
attr 04Thermo alias Hobby
attr 04Thermo event-min-interval state:600
attr 04Thermo group Temperaturen
attr 04Thermo icon scene_dressing_room
attr 04Thermo room Plots
attr 04Thermo doAverage 1
define FileLog_04Thermo FileLog ./log/04Thermo-%Y.log 04Thermo:T:.*
attr FileLog_04Thermo logtype temp4hum6:Temp/Hum,text

define weblink_04Thermo SVG FileLog_04Thermo:weblink_04Thermo:CURRENT
attr weblink_04Thermo alias Hobby
attr weblink_04Thermo room Plots

##########

define WZ.04TempIndicator dummy
attr WZ.04TempIndicator event-on-change-reading state
attr WZ.04TempIndicator setList Kalt Normal Heiss

define WZT04TempIndicatorToKalt notify 04Thermo:temperature.* {fhem("set WZ.04TempIndicator Kalt") if (ReadingsVal("04Therm","temperature",99) <= 12)}

define WZT04empIndicatorToHeiss notify 04Thermo:temperature.* {fhem("set WZ.04TempIndicator Heiss") if (ReadingsVal("04Thermo","temperature",99) >= 21)}

define WZT04empIndicatorNormal notify 04Thermo:temperature.* {fhem("set WZ.04TempIndicator Normal") if ((ReadingsVal("04Thermo","temperature",99) >= 13) && (ReadingsVal("04Thermo","temperature",99) <=20))}

define WZT04TempIndicatorToKaltNotify notify WZ.04TempIndicator:Kalt set pushmsg message Temperatur in Waschküche zu kalt (< 12 Grad)
define WZT04TempIndicatorToHeissNotify notify WZ.04TempIndicator:Heiss set pushmsg message Temperatur in Waschküche zu warm (> 21 Grad)
define WZT04TempIndicatorNormalNotify notify WZ.04TempIndicator:Normal set pushmsg message Temperatur in Waschküche im Normalbereich

###########


Was muss ich beim cfg einfügen, damit ich die Störung mitbekommen.

Vielen Dank für Eure Hilfe.

Martin