Notify über lan deaktivieren

Begonnen von schrader, 31 Januar 2014, 21:33:22

Vorheriges Thema - Nächstes Thema

schrader

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

CUL 868Mhz, CUL 433Mhz, FB 7390, FB7290, FB 7312, Elro IT,, FS20, HomeMatic,HMLAN

Puschel74

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
Zotac BI323 als Server mit DBLog
CUNO für FHT80B, 3 HM-Lan per vCCU, RasPi mit CUL433 für Somfy-Rollo (F2F), RasPi mit I2C(LM75) (F2F), RasPi für Panstamp+Vegetronix +SONOS(F2F)
Ich beantworte keine Supportanfragen per PM! Bitte im Forum suchen oder einen Beitrag erstellen.

UliM

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()
RPi4/Raspbian, CUL V3 (ca. 30 HomeMatic-devices), LAN (HarmonyHub, alexa etc.).  Fördermitglied des FHEM e.V.