Hallo zusammen,
ich würde gerne meine Heizungsregelventile über Telefon den Boost aktivieren .
so àla heute komme ich früher heim , eine halbe Stunde vorher angerufen und komme in die warme Bude nachhause .
Funktioniert auch soweit . Das einzige was nicht so gut ist, er setzt den Befehl über das abgefragte notify 10 x mal ab, steht in jedenfalls os in der Logfile .
Beispiel:
10 x mal
2013.11.28 10:07:44 2: CUL_HM set HZ_Bad_ClimRT_tr controlMode boost
2013.11.28 10:07:44 2: CUL_HM set HZ_Kueche_ClimRT_tr controlMode boost
2013.11.28 10:07:44 2: CUL_HM set HZ_Wohnzimmer_ClimRT_tr controlMode boost
Abgefragt wird beim notify die interne und externe Nummer auf disconnect auch die Abfrage auf ring brachte keine Besserung, und auch den global wert Dumptimeout auf 2.5 zu setzen erbrachte keine Lösung .
Warum setzt er den Befehl so oft ab und kann man dagegen was tun ?
Die Frage ist liegts am FB Callmonitor ?
Vielen Dank .
Hallo Mani007,
ich denke, es liegt am FBCallmonitor.
du kannst einmal prüfen, welche events erzeugt werden (inform on) wenn du anrufst.
Und dann prüfen, welches das notify triggert.
Gruss Martin
Hallo Martin Vielen Dank,
für die Antwort habe mir den dicken thread von dem HM-CC-RT-DN gegeben echt krass du kennst dich da ja echt gut aus respekt (nebenbei) .
Zum Thema zurück !
Ich befürchte das der Code denn ich geschrieben habe so nicht funktionieren wird inform on bringt mir mehr notifys als gewünscht .
Telefon { if (ReadingsVal ("Telefon","external_number","error") eq "xxx" || "xxx" || "xxx" && ReadingsVal ("Telefon","internal_number","error") eq "xxx" && ReadingsVal ("Telefon","event","error") eq "disconnect") {fhem ("set HZ_Bad_ClimRT_tr controlMode boost;set HZ_Kueche_ClimRT_tr controlMode boost;set HZ_Wohnzimmer_ClimRT_tr controlMode boost")}}
inform on
2013-11-28 13:05:04 CUL_HM HZ_Bad_ClimRT_tr mode: set_boost
2013-11-28 13:05:04 CUL_HM HZ_Bad_ClimRT_tr set_controlMode boost
2013-11-28 13:05:04 CUL_HM HZ_Kueche_ClimRT_tr mode: set_boost
2013-11-28 13:05:04 CUL_HM HZ_Kueche_ClimRT_tr set_controlMode boost
2013-11-28 13:05:04 CUL_HM HZ_Wohnzimmer_ClimRT_tr mode: set_boost
2013-11-28 13:05:04 CUL_HM HZ_Wohnzimmer_ClimRT_tr set_controlMode boost
2013-11-28 13:05:05 CUL_HM HZ_Bad_ClimRT_tr mode: set_boost
2013-11-28 13:05:05 CUL_HM HZ_Bad_ClimRT_tr set_controlMode boost
2013-11-28 13:05:05 CUL_HM HZ_Kueche_ClimRT_tr mode: set_boost
2013-11-28 13:05:05 CUL_HM HZ_Kueche_ClimRT_tr set_controlMode boost
2013-11-28 13:05:05 CUL_HM HZ_Wohnzimmer_ClimRT_tr mode: set_boost
2013-11-28 13:05:05 CUL_HM HZ_Wohnzimmer_ClimRT_tr set_controlMode boost
2013-11-28 13:05:05 CUL_HM HZ_Bad_ClimRT_tr mode: set_boost
2013-11-28 13:05:05 CUL_HM HZ_Bad_ClimRT_tr set_controlMode boost
2013-11-28 13:05:05 CUL_HM HZ_Kueche_ClimRT_tr mode: set_boost
2013-11-28 13:05:05 CUL_HM HZ_Kueche_ClimRT_tr set_controlMode boost
2013-11-28 13:05:05 CUL_HM HZ_Wohnzimmer_ClimRT_tr mode: set_boost
2013-11-28 13:05:05 CUL_HM HZ_Wohnzimmer_ClimRT_tr set_controlMode boost
2013-11-28 13:05:06 CUL_HM HZ_Bad_ClimRT_tr mode: set_boost
2013-11-28 13:05:06 CUL_HM HZ_Bad_ClimRT_tr set_controlMode boost
2013-11-28 13:05:06 CUL_HM HZ_Kueche_ClimRT_tr mode: set_boost
2013-11-28 13:05:06 CUL_HM HZ_Kueche_ClimRT_tr set_controlMode boost
2013-11-28 13:05:06 CUL_HM HZ_Wohnzimmer_ClimRT_tr mode: set_boost
2013-11-28 13:05:06 CUL_HM HZ_Wohnzimmer_ClimRT_tr set_controlMode boost
2013-11-28 13:05:06 CUL_HM HZ_Bad_ClimRT_tr mode: set_boost
2013-11-28 13:05:06 CUL_HM HZ_Bad_ClimRT_tr set_controlMode boost
2013-11-28 13:05:06 CUL_HM HZ_Kueche_ClimRT_tr mode: set_boost
2013-11-28 13:05:06 CUL_HM HZ_Kueche_ClimRT_tr set_controlMode boost
2013-11-28 13:05:06 CUL_HM HZ_Wohnzimmer_ClimRT_tr mode: set_boost
2013-11-28 13:05:06 CUL_HM HZ_Wohnzimmer_ClimRT_tr set_controlMode boost
2013-11-28 13:05:06 CUL_HM HZ_Bad_ClimRT_tr mode: set_boost
2013-11-28 13:05:06 CUL_HM HZ_Bad_ClimRT_tr set_controlMode boost
2013-11-28 13:05:06 CUL_HM HZ_Kueche_ClimRT_tr mode: set_boost
2013-11-28 13:05:07 CUL_HM HZ_Kueche_ClimRT_tr set_controlMode boost
2013-11-28 13:05:07 CUL_HM HZ_Wohnzimmer_ClimRT_tr mode: set_boost
2013-11-28 13:05:07 CUL_HM HZ_Wohnzimmer_ClimRT_tr set_controlMode boost
2013-11-28 13:05:07 FB_CALLMONITOR Telefon event: ring
2013-11-28 13:05:07 FB_CALLMONITOR Telefon external_number: 080313652245
2013-11-28 13:05:07 FB_CALLMONITOR Telefon external_name: unknown
2013-11-28 13:05:07 FB_CALLMONITOR Telefon internal_number: 9795912
2013-11-28 13:05:07 FB_CALLMONITOR Telefon external_connection: SIP2
2013-11-28 13:05:07 FB_CALLMONITOR Telefon call_id: 0
2013-11-28 13:05:07 CUL_HM HZ_Bad_ClimRT_tr mode: set_boost
2013-11-28 13:05:07 CUL_HM HZ_Bad_ClimRT_tr set_controlMode boost
2013-11-28 13:05:07 CUL_HM HZ_Kueche_ClimRT_tr mode: set_boost
2013-11-28 13:05:07 CUL_HM HZ_Kueche_ClimRT_tr set_controlMode boost
2013-11-28 13:05:07 CUL_HM HZ_Wohnzimmer_ClimRT_tr mode: set_boost
2013-11-28 13:05:07 CUL_HM HZ_Wohnzimmer_ClimRT_tr set_controlMode boost
2013-11-28 13:05:07 CUL_HM HZ_Bad_ClimRT_tr mode: set_boost
2013-11-28 13:05:07 CUL_HM HZ_Bad_ClimRT_tr set_controlMode boost
2013-11-28 13:05:07 CUL_HM HZ_Kueche_ClimRT_tr mode: set_boost
2013-11-28 13:05:07 CUL_HM HZ_Kueche_ClimRT_tr set_controlMode boost
2013-11-28 13:05:07 CUL_HM HZ_Wohnzimmer_ClimRT_tr mode: set_boost
2013-11-28 13:05:08 CUL_HM HZ_Wohnzimmer_ClimRT_tr set_controlMode boost
2013-11-28 13:05:08 CUL_HM HZ_Bad_ClimRT_tr mode: set_boost
2013-11-28 13:05:08 CUL_HM HZ_Bad_ClimRT_tr set_controlMode boost
2013-11-28 13:05:08 CUL_HM HZ_Kueche_ClimRT_tr mode: set_boost
2013-11-28 13:05:08 CUL_HM HZ_Kueche_ClimRT_tr set_controlMode boost
2013-11-28 13:05:08 CUL_HM HZ_Wohnzimmer_ClimRT_tr mode: set_boost
2013-11-28 13:05:08 CUL_HM HZ_Wohnzimmer_ClimRT_tr set_controlMode boost
2013-11-28 13:05:08 CUL_HM HZ_Bad_ClimRT_tr mode: set_boost
2013-11-28 13:05:08 CUL_HM HZ_Bad_ClimRT_tr set_controlMode boost
2013-11-28 13:05:08 CUL_HM HZ_Kueche_ClimRT_tr mode: set_boost
2013-11-28 13:05:08 CUL_HM HZ_Kueche_ClimRT_tr set_controlMode boost
2013-11-28 13:05:08 CUL_HM HZ_Wohnzimmer_ClimRT_tr mode: set_boost
2013-11-28 13:05:08 CUL_HM HZ_Wohnzimmer_ClimRT_tr set_controlMode boost
2013-11-28 13:05:08 FB_CALLMONITOR Telefon event: disconnect
2013-11-28 13:05:08 FB_CALLMONITOR Telefon call_duration: 0
2013-11-28 13:05:08 FB_CALLMONITOR Telefon missed_call: 080313652245
2013-11-28 13:05:08 FB_CALLMONITOR Telefon call_id: 0
Man sieht wenn man zählt, der FB_Callmonitor zeilen genau so oft wird es abgesetzt !!
Hallo Mani007,
Ich denke, du hast notify noch nicht verstanden.
Die Defninition ist nicht komplett und lautet sicher:
define nf notify Telefon ......
das bedeutet, das "nf" immer ausgeführt wird, wenn ein trigger mit "Telefon" kommt. Also bei allen ereignissen von Telefon.
Telefon event: ring
Telefon external_number: 080313652245
Telefon external_name: unknown
Telefon internal_number: 9795912
Telefon external_connection: SIP2
Telefon call_id: 0
Innerhalb des notify wird dann geprüft, wie die readings stehen - den "statischen zustand", nicht welche geändert wurden.
Readings bleibt nach dem setzen stehen, bis zur nächsten Änderung des Readings eben
Du solltest also nur einen trigger von Telefon nehmen!
define nf notify Telefon:internal_number:.9795912 set HZ_Bad_ClimRT_tr controlMode boost;;set HZ_Kueche_ClimRT_tr controlMode boost;;set HZ_Wohnzimmer_ClimRT_tr controlMode boost
Gruss Martin
Hallo Martin,
Warum schwierig wenns auch einfach geht .
Die Defninition ist nicht komplett und lautet sicher:
Sorry das ich nicht die komplette Definition reinkopiert habe mein Fehler ist mir bewusst.
UND ich habe nicht gewusst das man bei den notifys die readings abfragen kann getrennt mit Doppelpunkt hätte gedacht nur das State . Mein Fehler .
Habe jetzt nur noch eine IF anwendung dazugeschrieben weil soll ja nicht jeder auf der Nummer anrufen können sonder nur bestimmte .
Und alles is gut wenn man Ahnung hat von Fhem grins
Vielen Vilen Dank .
Hi,
nein, die Readings kannst du nicht abfragen, nur das Event!
Wenn ein Reading upgedated wird, wird ein trigger/event ausgelöst. Bei einem Ereigniss (anruf) wird für jedes upgedatede Reading ein trigger gesetzt.
mit ReadingsVal fragst du das Reading ab
mit notify <regexp> fragst du das aktuelle trigger-event ab
der Unterschied ist entscheident!
Beachte auch event-on-change: trigger nur, wenn das Reading sich ändert
und event-on-update: trigger wenn das Reading geschrieben wird, auch wenn der Inhalt gleich ist.
Gruss Martin
Ok nochmal Danke ich werde mir nochmal das Anfänger Tutorial geben zur vertiefung .