HE ich versuche meine Notify zu deaktiviern wenn mein tv im Netzwerck erscheint.
habe dieses versucht
define nf_Film_aus notify TV.* {\
my $TV = Value("TV");;\
if ($TV eq "present") {\
fhem("define at_schlummer at20:00:00 attr nf_Film disable1") if (Value("nf_Film") ne "disable1";;\
}\
}
das funktioniert leider nicht...geht das überhaupt so ,denke ich in die richtige Richtung?
das notify deaktivire ich so oder so ab 22:00:00Uhr
define notify_aus at *22:00:00 attr nf_Film disable 1
Hallo,
Zitatdas funktioniert leider nicht
Und was steht im LogFile?
Zitatgeht das überhaupt so ,
Ja, fast.
Zitatfhem("define at_schlummer at20:00:00 attr nf_Film disable1")
Oftmals helfen Leerzeichen.
fhem("define at_schlummer at 20:00:00 attr nf_Film disable 1")
if (Value("nf_Film") ne "disable1";;
Ein attribut lässt sich so nicht prüfen.
Grüße
Zitat von: Puschel74 am 01 Februar 2014, 12:29:03
if (Value("nf_Film") ne "disable1";;
Ein attribut lässt sich so nicht prüfen.
dafür muss man dann AttrVal() nehmen statt Value()