dummy übernimmt den Status nicht

Begonnen von brainhead, 15 Oktober 2016, 12:55:36

Vorheriges Thema - Nächstes Thema

brainhead

Hallo sich möchte über einen  Max Taster Zuhause auf on oft setzen das klappt.
dann soll der status Alarm on off gehen tut er aber nicht.
jeden Funktion für sich alarm löst den push aus wenn ich in von Hand auf on setzte .
hier mal meine cfg
Höfe ihr könnt mir helfen .

define Zuhause dummy
attr Zuhause eventMap 1
attr Zuhause room Haus
attr Zuhause webCmd on:off
define Alarm dummy
attr Alarm eventMap 1
attr Alarm room Haus
attr Alarm webCmd on:off

#Zuhause auf on setzen bei Anwesenheit
define ZuhauseOn notify MAX_055eab:(onoff).* { if ("$EVTPART1" eq "0") {fhem("set Zuhause on");;} else {fhem("set Zuhause off");;}}

#Alarm definieren
define AlarmAn notify MAX_0fe135:opened.* {fhem ("set Alarm on") if (Value ("Zuhause") eq "off")}

define AlarmAus notify MAX_0fe135:opened.* {fhem ("set Alarm off") if (Value("Zuhause") eq "on")}


CoolTux

So auf die schnelle gehört zwischen onoff eine Pipe. on|off
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

brainhead

Danke für die Antwort aber Zuhause stellt sich um auf on off, nur der alarm ändert sich nicht bei der status Änderung Zuhause

CoolTux

Schau dir mal Deine Alarm Notify an, speziell die if Abfrage vom ersten
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

brainhead

Ok geändert aber leider keine änderung

CoolTux

Gib mal ein list vom MAX_0fe135 und vom Notify. Triggert das Notify überhaupt. Was steht da bei state?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

brainhead

List des türkontakt
  DEF        ShutterContact 0fe135
   IODev      cm
   LASTInputDev cm
   MSGCNT     98
   NAME       MAX_0fe135
   NR         26
   RSSI       -61.5
   STATE      closed
   TYPE       MAX
   addr       0fe135
   backend    cm
   cm_MSGCNT  98
   cm_TIME    2016-10-15 12:59:23
   rferror    0
   type       ShutterContact
   Readings:
     2016-10-15 12:59:23   RSSI            -61.5
     2016-10-15 12:59:23   battery         ok
     2016-10-15 12:59:23   onoff           0
     2016-10-15 12:59:23   state           closed
   Internals:
     interfaces switch_active;battery
Attributes:
   IODev      cm
   alias      Haustür
   room       MAX


notyfi

AlarmAn
AlarmAus
FLUnautorisierteTueroeffnungPushover
ZuhauseOn
initialUsbCheck


STATE
active

CoolTux

Bitte noch einmal vernünftig in Code Tags. Das ist das Rautezeichen in der Symbolleiste #

list Türkontakt. Das war soweit richtig. Aber bitte in Codetags.
Und ein list der beiden Notifys

list AlarmAn und list AlarmAus
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

brainhead

Sorry für die Unordnung im vorherigen  Post

DEF        MAX_0fe135:opened.* {fhem ("set Alarm on") if (Value ("Zuhause") eq "off")}
   NAME       AlarmAn
   NOTIFYDEV  MAX_0fe135
   NR         38
   NTFY_ORDER 50-AlarmAn
   REGEXP     MAX_0fe135:opened.*
   STATE      active
   TYPE       notify
   Readings:
     2016-10-15 13:10:43   state           active
Attributes:


Internals:
   DEF        Alarm:.*|MAX_0fe135:opened.* {fhem ("set Alarm off") if (Value("Zuhause") eq "on")}
   NAME       AlarmAus
   NR         40
   NTFY_ORDER 50-AlarmAus
   REGEXP     Alarm:.*|MAX_0fe135:opened.*
   STATE      active
   TYPE       notify
   Readings:
     2016-10-15 13:13:02   state           active
Attributes:


Internals:
   DEF        ShutterContact 0fe135
   IODev      cm
   LASTInputDev cm
   MSGCNT     98
   NAME       MAX_0fe135
   NR         26
   RSSI       -61.5
   STATE      closed
   TYPE       MAX
   addr       0fe135
   backend    cm
   cm_MSGCNT  98
   cm_TIME    2016-10-15 12:59:23
   rferror    0
   type       ShutterContact
   Readings:
     2016-10-15 12:59:23   RSSI            -61.5
     2016-10-15 12:59:23   battery         ok
     2016-10-15 12:59:23   onoff           0
     2016-10-15 12:59:23   state           closed
   Internals:
     interfaces switch_active;battery
Attributes:
   IODev      cm
   alias      Haustür
   room       MAX

CoolTux

Ok super. Nun brauchen wir mal den genauen Event vom Shutter. Also bitte mal auf machen und den Eventmonitor beobachten. Die Meldungen bitte hier in Codetags eintragen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

brainhead

2016-10-15 14:18:52 dummy Alarm on
2016-10-15 14:18:52 MAX MAX_0fe135 battery: ok
2016-10-15 14:18:52 MAX MAX_0fe135 onoff: 1
2016-10-15 14:18:52 MAX MAX_0fe135 opened
2016-10-15 14:18:52 MAX MAX_0fe135 RSSI: -64.5
2016-10-15 14:18:55 MAX MAX_0fe135 battery: ok
2016-10-15 14:18:55 MAX MAX_0fe135 onoff: 0
2016-10-15 14:18:55 MAX MAX_0fe135 closed
2016-10-15 14:18:55 MAX MAX_0fe135 RSSI: -64.5


Hier mal noch von dem taster der zu Haus on off stellt
016-10-15 14:20:10 dummy Zuhause off
2016-10-15 14:20:10 MAX MAX_055eab battery: ok
2016-10-15 14:20:10 MAX MAX_055eab onoff: 1
2016-10-15 14:20:10 MAX MAX_055eab connection: 1
2016-10-15 14:20:10 MAX MAX_055eab opened
2016-10-15 14:20:10 MAX MAX_055eab RSSI: -54.5
2016-10-15 14:20:22 dummy Zuhause on
2016-10-15 14:20:22 MAX MAX_055eab battery: ok
2016-10-15 14:20:22 MAX MAX_055eab onoff: 0
2016-10-15 14:20:22 MAX MAX_055eab connection: 1
2016-10-15 14:20:22 MAX MAX_055eab closed
2016-10-15 14:20:22 MAX MAX_055eab RSSI: -53

CoolTux

Ok sorgen wir erstmal dafür das einer triggert


MAX_0fe135.opened {fhem ("set Alarm on") if (Value ("Zuhause") eq "off")}


Bitte das AlarmOn Notify so ändern und testen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

brainhead

Geändert aber der alarm status ändert sich nicht

CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

brainhead

Internals:
   DEF        MAX_0fe135.opened {fhem ("set Alarm on") if (Value ("Zuhause") eq "off")}
   NAME       AlarmAn
   NR         38
   NTFY_ORDER 50-AlarmAn
   REGEXP     MAX_0fe135.opened
   STATE      2016-10-15 15:14:22
   TYPE       notify
   Readings:
     2016-10-15 15:04:48   state           active
Attributes:


Ich würde sagen nein