FHEM Forum

FHEM => Automatisierung => Thema gestartet von: schrader am 31 Januar 2014, 21:33:22

Titel: Notify über lan deaktivieren
Beitrag von: schrader am 31 Januar 2014, 21:33:22
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

Titel: Antw:Notify über lan deaktivieren
Beitrag von: Puschel74 am 01 Februar 2014, 12:29:03
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
Titel: Antw:Notify über lan deaktivieren
Beitrag von: UliM am 01 Februar 2014, 20:00:02
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()