notify mit unterschiedlichen Events

Begonnen von mfeske, 23 Februar 2025, 15:21:54

Vorheriges Thema - Nächstes Thema

mfeske

Hallo zusammen,
ich versuche über die Anwesenheit bzw. den Zustand eines Kontaktes ein HM_CC_RT_DN zu steuern.
Die einzelnen Optionen aus dem notify
set HM_CC_RT_DN_LEQ1207074 off
set HM_CC_RT_DN_LEQ1207074 boost on
set HM_CC_RT_DN_LEQ1207074 auto
funktionieren, ich gehe also davon aus das ich das HM_CC_RT_DN korrekt anspreche.
Die Änderung vom Reading Bewohner / Aussentuer_Garten_Alarm führt aber nicht zu einer Änderung, das ist das erste Problem.
Es soll sofern Aussentuer_Garten_Alarm opened ist HM_CC_RT_DN_LEQ1207074 off sein; egal was mit Reading Bewohner passiert.
sofern Aussentuer_Garten_Alarm closed ist und jemand zu Hause ist soll HM_CC_RT_DN_LEQ1207074 wieder eingeschaltet werden.
Ich dachte auch ich könnte HM_CC_RT_DN_LEQ1207074 einer dummy Gruppe HeizungBewohner zuordnen um dann später mehrere Thermostate mit einen notify schalten zu können, aber ein
set HeizungBewohner auto führt zum Beispiel zu keiner Zustandsänderung. Das ist das zweite aktuelle Problem.

Dank dem Wiki Artikel bin ich jetzt soweit:
list ThermostatTestNF

Internals:
   CFGFN     
   DEF        Aussentuer_Garten_Alarm:.*|Bewohner:.* {
  if ((ReadingsVal("Aussentuer_Garten_Alarm", "state", "") eq "opened") ||
      (ReadingsVal("Bewohner", "state", "") eq "absent") ||
      (ReadingsVal("Bewohner", "state", "") eq "gone")) {
    fhem("set HM_CC_RT_DN_LEQ1207074 off");
  }
  elsif ((ReadingsVal("Aussentuer_Garten_Alarm", "state", "") eq "closed") &&
         ((ReadingsVal("Bewohner", "state", "") eq "home") ||
          (ReadingsVal("Bewohner", "state", "") eq "gotosleep"))) {
    fhem("set HM_CC_RT_DN_LEQ1207074 boost on");
    fhem("define at_Auto at +00:05:00 set HM_CC_RT_DN_LEQ1207074 auto");
  }
}
   FUUID      67bb1fc1-f33f-be1a-5920-1fc87e46ad1b2b6e
   NAME       ThermostatTestNF
   NR         94
   NTFY_ORDER 50-ThermostatTestNF
   REGEXP     Aussentuer_Garten_Alarm:.*|Bewohner:.*
   STATE      2025-02-23 15:15:43
   TRIGGERTIME 1740320143.07539
   TYPE       notify
   eventCount 7
   READINGS:
     2025-02-23 15:04:55   state           active
     2025-02-23 15:15:43   triggeredByDev  rgr_Bewohner
     2025-02-23 15:15:43   triggeredByEvent durTimerAbsence: 00:28:00
Attributes:
list HM_CC_RT_DN_LEQ1207074
Internals:
   DEF        LEQ1207074:4
   FUUID      67b722b2-f33f-be1a-3d70-28621c34cf14147b
   IODev      d_ccu
   NAME       HM_CC_RT_DN_LEQ1207074
   NR         86
   STATE      23.3
   TYPE       HMCCUCHN
   ccuaddr    LEQ1207074:4
   ccudevstate active
   ccuif      BidCos-RF
   ccuname    HM-CC-RT-DN LEQ1207074:4
   ccurolectrl CLIMATECONTROL_RT_TRANSCEIVER
   ccurolestate CLIMATECONTROL_RT_TRANSCEIVER
   ccusubtype HM-CC-RT-DN
   ccutype    HM-CC-RT-DN
   eventCount 132
   firmware   1.5
   readonly   no
   READINGS:
     2025-02-23 15:15:33   ACTUAL_TEMPERATURE 23.3
     2025-02-23 15:15:33   BATTERY_STATE   3.2
     2025-02-23 15:15:33   BOOST_STATE     0
     2025-02-23 15:15:32   CONTROL_MODE    AUTO-MODE
     2025-02-23 15:15:32   FAULT_REPORTING NO_FAULT
     2025-02-23 14:13:56   IODev           d_ccu
     2025-02-23 15:15:33   PARTY_START_DAY 1
     2025-02-23 15:15:33   PARTY_START_MONTH 1
     2025-02-23 15:15:33   PARTY_START_TIME 00:00
     2025-02-23 15:15:33   PARTY_START_YEAR 0
     2025-02-23 15:15:33   PARTY_STOP_DAY  1
     2025-02-23 15:15:33   PARTY_STOP_MONTH 1
     2025-02-23 15:15:33   PARTY_STOP_TIME 00:00
     2025-02-23 15:15:33   PARTY_STOP_YEAR 0
     2025-02-23 15:15:33   PARTY_TEMPERATURE 5.0
     2025-02-23 15:15:33   SET_TEMPERATURE 21.0
     2025-02-23 15:15:33   VALVE_STATE     10
     2025-02-23 14:15:52   activity        alive
     2025-02-23 14:15:52   battery         ok
     2025-02-23 15:15:33   control         21.0
     2025-02-23 15:15:33   desired-temp    21.0
     2025-02-23 15:15:33   devstate        ok
     2025-02-23 15:15:33   hmstate         23.3
     2025-02-23 15:15:33   measured-temp   23.3
     2025-02-23 14:15:52   rssidevice      -53
     2025-02-23 14:15:52   rssipeer        -62
     2025-02-23 14:15:52   sign            off
     2025-02-23 15:15:33   state           23.3
   hmccu:
     channels   1
     detect     0
     devspec    LEQ1207074:4
     nodefaults 1
     role       4:CLIMATECONTROL_RT_TRANSCEIVER
     setDefaults 0
     cmdlist:
       get       
       set        on:noArg auto:noArg boost:off,on off:noArg manu desired-temp
     control:
       chn        4
       dpt        SET_TEMPERATURE
     dp:
       0.AES_KEY:
         VALUES:
           NVAL       0
           SVAL       off
           VAL        0
       0.CONFIG_PENDING:
         VALUES:
           NVAL       0
           SVAL       false
           VAL        0
       0.DEVICE_IN_BOOTLOADER:
         VALUES:
           NVAL       0
           SVAL       false
           VAL        0
       0.INHIBIT:
         VALUES:
           NVAL       0
           SVAL       false
           VAL        0
       0.LOWBAT:
         VALUES:
           NVAL       0
           SVAL       ok
           VAL        0
       0.RSSI_DEVICE:
         VALUES:
           NVAL       -53
           SVAL       -53
           VAL        -53
       0.RSSI_PEER:
         VALUES:
           NVAL       -62
           SVAL       -62
           VAL        -62
       0.STICKY_UNREACH:
         VALUES:
           NVAL       0
           SVAL       false
           VAL        0
       0.UNREACH:
         VALUES:
           NVAL       0
           SVAL       alive
           VAL        0
       0.UPDATE_PENDING:
         VALUES:
           NVAL       0
           SVAL       false
           VAL        0
       4.ACTUAL_TEMPERATURE:
         VALUES:
           NVAL       23.300000
           ONVAL      23.200000
           OSVAL      23.2
           OVAL       23.200000
           SVAL       23.3
           VAL        23.300000
       4.BATTERY_STATE:
         VALUES:
           NVAL       3.200000
           ONVAL      3.100000
           OSVAL      3.1
           OVAL       3.100000
           SVAL       3.2
           VAL        3.200000
       4.BOOST_STATE:
         VALUES:
           NVAL       0
           ONVAL      1
           OSVAL      1
           OVAL       1
           SVAL       0
           VAL        0
       4.CONTROL_MODE:
         VALUES:
           NVAL       0
           ONVAL      1
           OSVAL      MANU-MODE
           OVAL       1
           SVAL       AUTO-MODE
           VAL        0
       4.FAULT_REPORTING:
         VALUES:
           NVAL       0
           SVAL       NO_FAULT
           VAL        0
       4.PARTY_START_DAY:
         VALUES:
           NVAL       1
           SVAL       1
           VAL        1
       4.PARTY_START_MONTH:
         VALUES:
           NVAL       1
           SVAL       1
           VAL        1
       4.PARTY_START_TIME:
         VALUES:
           NVAL       00:00
           ONVAL      00:30
           OSVAL      00:30
           OVAL       30
           SVAL       00:00
           VAL        0
       4.PARTY_START_YEAR:
         VALUES:
           NVAL       0
           SVAL       0
           VAL        0
       4.PARTY_STOP_DAY:
         VALUES:
           NVAL       1
           SVAL       1
           VAL        1
       4.PARTY_STOP_MONTH:
         VALUES:
           NVAL       1
           SVAL       1
           VAL        1
       4.PARTY_STOP_TIME:
         VALUES:
           NVAL       00:00
           SVAL       00:00
           VAL        0
       4.PARTY_STOP_YEAR:
         VALUES:
           NVAL       0
           SVAL       0
           VAL        0
       4.PARTY_TEMPERATURE:
         VALUES:
           NVAL       5.000000
           SVAL       5.0
           VAL        5.000000
       4.SET_TEMPERATURE:
         VALUES:
           NVAL       21.000000
           ONVAL      4.500000
           OSVAL      off
           OVAL       4.500000
           SVAL       21.0
           VAL        21.000000
       4.VALVE_STATE:
         VALUES:
           NVAL       10
           ONVAL      11
           OSVAL      11
           OVAL       11
           SVAL       10
           VAL        10
     roleChannels:
       CLIMATECONTROL_RT_TRANSCEIVER 4
     roleCmds:
       get:
       set:
         auto:
           channel    4
           ps         VALUES
           role       CLIMATECONTROL_RT_TRANSCEIVER
           rpc        0
           subcount   1
           syntax     V:AUTO_MODE:1
           usage      auto
           subcmd:
             000:
               args       1
               dpt        AUTO_MODE
               fnc       
               max        1
               min        0
               parname    AUTO_MODE
               partype    3
               ps         VALUES
               scn        000
               type       ACTION
               unit      
         boost:
           channel    4
           ps         VALUES
           role       CLIMATECONTROL_RT_TRANSCEIVER
           rpc        0
           subcount   1
           syntax     V:BOOST_MODE:#boost=on,off
           usage      boost {on,off}
           subcmd:
             000:
               args       on,off
               dpt        BOOST_MODE
               fnc       
               max        1
               min        0
               parname    boost
               partype    1
               ps         VALUES
               scn        000
               type       ACTION
               unit      
               look:
                 off        0
                 on         1
         desired-temp:
           channel    4
           ps         VALUES
           role       CLIMATECONTROL_RT_TRANSCEIVER
           rpc        0
           subcount   1
           syntax     V:SET_TEMPERATURE:?temperature
           usage      desired-temp temperature
           subcmd:
             000:
               args      
               dpt        SET_TEMPERATURE
               fnc       
               max        30.500000
               min        4.500000
               parname    temperature
               partype    2
               ps         VALUES
               scn        000
               type       FLOAT
               unit       �C
         manu:
           channel    4
           ps         VALUES
           role       CLIMATECONTROL_RT_TRANSCEIVER
           rpc        0
           subcount   1
           syntax     V:MANU_MODE:?temperature=20
           usage      manu [temperature]
           subcmd:
             000:
               args       20
               dpt        MANU_MODE
               fnc       
               max        30.500000
               min        4.500000
               parname    temperature
               partype    2
               ps         VALUES
               scn        000
               type       FLOAT
               unit       �C
         off:
           channel    4
           ps         VALUES
           role       CLIMATECONTROL_RT_TRANSCEIVER
           rpc        0
           subcount   1
           syntax     V:MANU_MODE:4.5
           usage      off
           subcmd:
             000:
               args       4.5
               dpt        MANU_MODE
               fnc       
               max        30.500000
               min        4.500000
               parname    MANU_MODE
               partype    3
               ps         VALUES
               scn        000
               type       FLOAT
               unit       �C
         on:
           channel    4
           ps         VALUES
           role       CLIMATECONTROL_RT_TRANSCEIVER
           rpc        0
           subcount   1
           syntax     V:MANU_MODE:30.5
           usage      on
           subcmd:
             000:
               args       30.5
               dpt        MANU_MODE
               fnc       
               max        30.500000
               min        4.500000
               parname    MANU_MODE
               partype    3
               ps         VALUES
               scn        000
               type       FLOAT
               unit       �C
     state:
       chn        4
       dpt        ACTUAL_TEMPERATURE
Attributes:
   cmdIcon    auto:sani_heating_automatic manu:sani_heating_manual on:general_an off:general_aus
   group      HeizungBewohner
   room       2.OG->Schlafzimmer,Homematic
   substexcl  desired-temp
   webCmd     desired-temp:auto:manu:boost:on:off
   widgetOverride desired-temp:slider,4.5,0.5,30.5,1
list Aussentuer_Garten_Alarm
Internals:
   FUUID      67807424-f33f-be1a-1b32-05ee3b9f1dd91fd4
   NAME       Aussentuer_Garten_Alarm
   NR         64
   STATE      closed
   TYPE       dummy
   eventCount 5
   READINGS:
     2025-02-23 14:45:44   state           closed
Attributes:
   devStateIcon opened:fts_door_open@red closed:fts_door@green
   room       Alarmanlage,AppleWatch
   verbose    0
list rgr_Bewohner
Internals:
   DURATIONTIMER 1740320503.07887
   FUUID      678066c3-f33f-be1a-943d-0dbe5904cd91d175
   FVERSION   10_RESIDENTS.pm:0.195330/2019-06-02
   NAME       rgr_Bewohner
   NOTIFYDEV  global,rr_location_michael,rr_location_tania
   NR         63
   NTFY_ORDER 50-rgr_Bewohner
   READY      1
   ROOMMATES  rr_location_michael,rr_location_tania
   STATE      absent
   TYPE       RESIDENTS
   eventCount 69
   READINGS:
     2025-02-23 15:20:43   durTimerAbsence 00:33:00
     2025-02-23 15:20:43   durTimerAbsence_cr 33
     2025-02-23 14:47:42   durTimerPresence 00:00:00
     2025-02-23 14:47:42   durTimerPresence_cr 0
     2025-01-17 18:53:11   durTimerSleep   00:00:00
     2025-01-17 18:53:11   durTimerSleep_cr 0
     2025-01-17 19:40:37   homealoneSubtype -
     2025-01-17 19:40:37   homealoneType   -
     2025-02-23 14:47:42   lastActivity    gone
     2025-02-23 14:47:42   lastActivityBy  location
     2025-02-23 14:47:42   lastActivityByDev rr_location_tania
     2025-02-23 14:01:54   lastArrival     2025-02-23 14:01:54
     2025-02-23 14:47:42   lastDeparture   2025-02-23 14:47:43
     2025-02-23 14:01:54   lastDurAbsence  00:01:21
     2025-02-23 14:01:54   lastDurAbsence_cr 1
     2025-02-23 14:47:42   lastDurPresence 00:45:49
     2025-02-23 14:47:42   lastDurPresence_cr 46
     2025-01-17 19:40:37   lastHomealoneSubtype -
     2025-01-17 19:40:37   lastHomealoneType -
     2025-02-23 14:47:42   lastState       home
     2025-02-23 14:47:42   presence        absent
     2025-02-23 14:47:40   residentsAbsent 1
     2025-02-23 14:47:40   residentsAbsentDevs rr_location_michael
     2025-02-23 14:47:40   residentsAbsentNames location
     2025-01-17 19:40:37   residentsAsleep 0
     2025-01-17 19:40:37   residentsAsleepDevs -
     2025-01-17 19:40:37   residentsAsleepNames -
     2025-01-17 19:40:37   residentsAwoken 0
     2025-01-17 19:40:37   residentsAwokenDevs -
     2025-01-17 19:40:37   residentsAwokenNames -
     2025-02-23 14:47:42   residentsGone   1
     2025-02-23 14:47:42   residentsGoneDevs rr_location_tania
     2025-02-23 14:47:42   residentsGoneNames location
     2025-01-17 19:40:37   residentsGotosleep 0
     2025-01-17 19:40:37   residentsGotosleepDevs -
     2025-01-17 19:40:37   residentsGotosleepNames -
     2025-02-23 14:47:42   residentsHome   0
     2025-02-23 14:47:42   residentsHomeDevs -
     2025-02-23 14:47:42   residentsHomeNames -
     2025-01-17 19:40:37   residentsTotal  2
     2025-02-23 14:47:42   residentsTotalAbsent 2
     2025-02-23 14:47:42   residentsTotalAbsentDevs rr_location_michael,rr_location_tania
     2025-02-23 14:47:42   residentsTotalAbsentNames location, location
     2025-01-17 19:40:37   residentsTotalGuests 0
     2025-01-17 19:40:37   residentsTotalGuestsAbsent 0
     2025-01-17 19:40:37   residentsTotalGuestsAbsentDevs -
     2025-01-17 19:40:37   residentsTotalGuestsAbsentNames -
     2025-01-17 19:40:37   residentsTotalGuestsPresent 0
     2025-01-17 19:40:37   residentsTotalGuestsPresentDevs -
     2025-01-17 19:40:37   residentsTotalGuestsPresentNames -
     2025-01-17 19:40:37   residentsTotalPeople 2
     2025-02-23 14:47:42   residentsTotalPeopleAbsent 2
     2025-02-23 14:47:42   residentsTotalPeopleAbsentDevs rr_location_michael,rr_location_tania
     2025-02-23 14:47:42   residentsTotalPeopleAbsentNames location, location
     2025-02-23 14:47:42   residentsTotalPeoplePresent 0
     2025-02-23 14:47:42   residentsTotalPeoplePresentDevs -
     2025-02-23 14:47:42   residentsTotalPeoplePresentNames -
     2025-01-17 19:40:37   residentsTotalPets 0
     2025-01-17 19:40:37   residentsTotalPetsAbsent 0
     2025-01-17 19:40:37   residentsTotalPetsAbsentDevs -
     2025-01-17 19:40:37   residentsTotalPetsAbsentNames -
     2025-01-17 19:40:37   residentsTotalPetsPresent 0
     2025-01-17 19:40:37   residentsTotalPetsPresentDevs -
     2025-01-17 19:40:37   residentsTotalPetsPresentNames -
     2025-02-23 14:47:42   residentsTotalPresent 0
     2025-02-23 14:47:42   residentsTotalPresentDevs -
     2025-02-23 14:47:42   residentsTotalPresentNames -
     2025-01-17 19:40:37   residentsTotalRoommates 2
     2025-02-23 14:47:42   residentsTotalRoommatesAbsent 2
     2025-02-23 14:47:42   residentsTotalRoommatesAbsentDevs rr_location_michael,rr_location_tania
     2025-02-23 14:47:42   residentsTotalRoommatesAbsentNames location, location
     2025-02-23 14:47:42   residentsTotalRoommatesPresent 0
     2025-02-23 14:47:42   residentsTotalRoommatesPresentDevs -
     2025-02-23 14:47:42   residentsTotalRoommatesPresentNames -
     2025-01-17 19:40:37   residentsTotalWakeup 0
     2025-01-17 19:40:37   residentsTotalWakeupDevs -
     2025-01-17 19:40:37   residentsTotalWakeupNames -
     2025-01-17 19:40:37   residentsTotalWayhome 0
     2025-01-17 19:40:37   residentsTotalWayhomeDelayed 0
     2025-01-17 19:40:37   residentsTotalWayhomeDelayedDevs -
     2025-01-17 19:40:37   residentsTotalWayhomeDelayedNames -
     2025-01-17 19:40:37   residentsTotalWayhomeDevs -
     2025-01-17 19:40:37   residentsTotalWayhomeNames -
     2025-02-23 14:47:42   state           absent
   TIMER:
     rgr_Bewohner_DurationTimer:
       HASH       rgr_Bewohner
       MODIFIER   DurationTimer
       NAME       rgr_Bewohner_DurationTimer
Attributes:
   alias      Bewohner
   devStateIcon .*home:status_available:absent .*absent:status_away_1:home .*gone:status_standby:home .*none:control_building_empty .*gotosleep:status_night:asleep .*asleep:status_night:awoken .*awoken:status_available:home .*:user_unknown:home
   group      Home State
   icon       control_building_filled
   room       AppleWatch,Haus
   webCmd     state

okay ersten Fehler gefunden, es muß im notify natürlich rgr_Bewohner und nicht Bewohner heissen.
Das schalten über die Gruppe funktioniert allerdings nicht.

Gruß
Micha
Hardware:
1 x Raspberry Pi Mod. B 512 MB
eq-3 2 x MAX! eTRV Heizungssteller, 1 x MAX! Fensterkontakt, 1 x MAX! Cube - LAN Gateway (ausser Betrieb)
Intertechno 1x ITZ-500, 3x ITT-1500, 9x ITR-1500, 3 x ITDL-1000, 2 x ITL-500
1 x CC1101-USB-Lite 433MHz (CUL433)  V3 1 x CC1101-USB-Lite 868MHz (CUL868)

frober

Korrigiere erstmal im notify den Bewohner in rgr_Bewohner (auch bei bei allen ReadingsVal).

Das fhem("define at_Auto at ...
müsste fhem("defmod at_Auto at ...
heißen, damit es nur temporär angelegt wird.

Ansonsten hast du für meinen Geschmack zu viele Klammern.
Ein Klammerpaar für die if-Bedingung, die Klammern um (ReadingsVal ... eq ...) sind nicht nötig und stören evtl.

Falls der Trigger nicht richtig funktioniert kannst es auch mal so
(Aussentuer_Garten_Alarm|Bewohner):.*
probieren.
Raspi 3b mit Raspbian Bullseye und relativ aktuellem Fhem,  FS20, LGW, PCA301, Zigbee, MQTT, MySensors mit RS485(CAN-Receiver) und RFM69, etc.,
einiges umgesetzt, vieles in Planung, smile

********************************************
...man wächst mit der Herausforderung...

betateilchen

Zitat von: mfeske am 23 Februar 2025, 15:21:54Ich dachte auch ich könnte HM_CC_RT_DN_LEQ1207074 einer dummy Gruppe HeizungBewohner zuordnen um dann später mehrere Thermostate mit einen notify schalten zu können,

Das macht man mit einer structure, nicht mit einem dummy.
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

mfeske

Zitat von: frober am 24 Februar 2025, 08:11:24Korrigiere erstmal im notify den Bewohner in rgr_Bewohner (auch bei bei allen ReadingsVal).

Das fhem("define at_Auto at ...
müsste fhem("defmod at_Auto at ...
heißen, damit es nur temporär angelegt wird.

Ansonsten hast du für meinen Geschmack zu viele Klammern.
Ein Klammerpaar für die if-Bedingung, die Klammern um (ReadingsVal ... eq ...) sind nicht nötig und stören evtl.

Falls der Trigger nicht richtig funktioniert kannst es auch mal so
(Aussentuer_Garten_Alarm|Bewohner):.*
probieren.

Hallo Tester,

vielen Dank für die Antwort. rgr_ hatte ich ja noch selber als Fehlerquelle identifiziert.
fhem("defmod at_Auto at ... habe ich jetzt gesetzt und werde mal erneut testen.

Gruß
Micha
Hardware:
1 x Raspberry Pi Mod. B 512 MB
eq-3 2 x MAX! eTRV Heizungssteller, 1 x MAX! Fensterkontakt, 1 x MAX! Cube - LAN Gateway (ausser Betrieb)
Intertechno 1x ITZ-500, 3x ITT-1500, 9x ITR-1500, 3 x ITDL-1000, 2 x ITL-500
1 x CC1101-USB-Lite 433MHz (CUL433)  V3 1 x CC1101-USB-Lite 868MHz (CUL868)

mfeske

Zitat von: betateilchen am 24 Februar 2025, 08:29:01
Zitat von: mfeske am 23 Februar 2025, 15:21:54Ich dachte auch ich könnte HM_CC_RT_DN_LEQ1207074 einer dummy Gruppe HeizungBewohner zuordnen um dann später mehrere Thermostate mit einen notify schalten zu können,

Das macht man mit einer structure, nicht mit einem dummy.
Hallo betateilchen,

vielen Dank für den Hinweis. Habe ich geändert.
list Heizung_All
Internals:
   ATTR       thermostat
   CFGFN     
   CHANGEDCNT 98
   DEF        thermostat HM_CC_RT_DN_LEQ1207074
   FUUID      67bc4076-f33f-be1a-1cd8-8cd017c71225975d
   NAME       Heizung_All
   NOTIFYDEV  HM_CC_RT_DN_LEQ1207074,global
   NR         142
   NTFY_ORDER 50-Heizung_All
   STATE      boost on
   TYPE       structure
   eventCount 331
   READINGS:
     2025-02-24 11:37:12   LastDevice      HM_CC_RT_DN_LEQ1207074
     2025-02-24 11:37:12   LastDevice_Abs  HM_CC_RT_DN_LEQ1207074
     2025-02-24 12:21:21   state           boost on
   hmccu:
Attributes:
Hardware:
1 x Raspberry Pi Mod. B 512 MB
eq-3 2 x MAX! eTRV Heizungssteller, 1 x MAX! Fensterkontakt, 1 x MAX! Cube - LAN Gateway (ausser Betrieb)
Intertechno 1x ITZ-500, 3x ITT-1500, 9x ITR-1500, 3 x ITDL-1000, 2 x ITL-500
1 x CC1101-USB-Lite 433MHz (CUL433)  V3 1 x CC1101-USB-Lite 868MHz (CUL868)

mfeske

#5
Mit der neuen Variante:
Internals:
   CFGFN     
   DEF        Aussentuer_Garten_Alarm:.*|rgr_Bewohner:.* {
  if ((ReadingsVal("Aussentuer_Garten_Alarm", "state", "") eq "opened") ||
      (ReadingsVal("rgr_Bewohner", "state", "") eq "absent") ||
      (ReadingsVal("rgr_Bewohner", "state", "") eq "gone")) {
    fhem("set Heizung_All off");
  }
  elsif ((ReadingsVal("Aussentuer_Garten_Alarm", "state", "") eq "closed") &&
         ((ReadingsVal("rgr_Bewohner", "state", "") eq "home") ||
          (ReadingsVal("rgr_Bewohner", "state", "") eq "gotosleep"))) {
    fhem("set Heizung_All boost on");
    fhem("defmode at_Auto at +00:05:00 set Heizung_All auto");
  }
}
   FUUID      67bb1fc1-f33f-be1a-5920-1fc87e46ad1b2b6e
   NAME       ThermostatTestNF
   NOTIFYDEV  Aussentuer_Garten_Alarm,rgr_Bewohner
   NR         94
   NTFY_ORDER 50-ThermostatTestNF
   REGEXP     Aussentuer_Garten_Alarm:.*|rgr_Bewohner:.*
   STATE      2025-02-24 12:24:20
   TRIGGERTIME 1740396260.24485
   TYPE       notify
   eventCount 12
   READINGS:
     2025-02-24 11:37:27   state           active
     2025-02-24 12:24:20   triggeredByDev  rgr_Bewohner
     2025-02-24 12:24:20   triggeredByEvent durTimerPresence: 00:11:00
Attributes:

habe ich mir auch irgendwo ein Ei gelegt. set Heizung_All off funktioniert wie erwartet. Kommt es jedoch zu einer Anwesenheit oder wird der Kontakt geschlossen, startet jedesmal ein boost on, er geht also gar nicht erst in den auto Modus.

habt Ihr vielleicht noch eine Idee für die grafische Darstellung bei Heizung_All für das devstateicon welche auto / on / off / Manu / boost on sinnvoll Starstellen würden ? Wie müsste man den status boost on in der Definition angeben ich vermute das Leerzeichen würde stören.
auto:sani_heating_automatic manu:sani_heating_manual on:general_an off:general_aus boost on:sani_heating_automatic@red
Ich hatte testweise fhem("set Heizung_All boost on"); entfernt und set Heizung_All Manu gesetzt, springt dann sofort immer wieder auf auto um, also vermute ich mein notify wird ständig durchlaufen und nicht nur bei einer event Änderung, das kann ich doch irgendwo einstellen, oder ?


Gruß
Micha
Hardware:
1 x Raspberry Pi Mod. B 512 MB
eq-3 2 x MAX! eTRV Heizungssteller, 1 x MAX! Fensterkontakt, 1 x MAX! Cube - LAN Gateway (ausser Betrieb)
Intertechno 1x ITZ-500, 3x ITT-1500, 9x ITR-1500, 3 x ITDL-1000, 2 x ITL-500
1 x CC1101-USB-Lite 433MHz (CUL433)  V3 1 x CC1101-USB-Lite 868MHz (CUL868)

frober

Mache die unnötigen Klammern weg,mit zu vielen Klammern funktioniert es evtl. nicht richtig und es heißt defmod und nicht defmode.

Das notify triggert bei jeder Statusänderung. Da du .* verwendest bei jedem Reading der beiden Devices. Du solltest das auf die relevanten Readings beschränken.
Raspi 3b mit Raspbian Bullseye und relativ aktuellem Fhem,  FS20, LGW, PCA301, Zigbee, MQTT, MySensors mit RS485(CAN-Receiver) und RFM69, etc.,
einiges umgesetzt, vieles in Planung, smile

********************************************
...man wächst mit der Herausforderung...

mfeske

#7
Hallo zusammen,

den defmode Feaupax hatte ich ja schon korrigiert. Ich habe auch den Wiki Artikel erneut durchgearbeitet aber ich finde jetzt nicht welche Klammern genau zu viel sein sollten und wie ich die Readings eingrenzen soll. Ich vermute das bezieht sich dann auf open / closed bzw. absent / gone / home / gotosleep
aktueller Stand ist
Aussentuer_Garten_Alarm:.*|rgr_Bewohner:.* {
  if ((ReadingsVal("Aussentuer_Garten_Alarm", "state", "") eq "opened") ||
      (ReadingsVal("rgr_Bewohner", "state", "") eq "absent") ||
      (ReadingsVal("rgr_Bewohner", "state", "") eq "gone")) {
    fhem("set Heizung_All off");
  }
  elsif ((ReadingsVal("Aussentuer_Garten_Alarm", "state", "") eq "closed") &&
        ((ReadingsVal("rgr_Bewohner", "state", "") eq "home") ||
          (ReadingsVal("rgr_Bewohner", "state", "") eq "gotosleep"))) {
    fhem("set Heizung_All boost on");
    fhem("defmod at_Auto at +00:05:00 set Heizung_All auto");
  }
}

wäre das die "entklammerte" Variante die gemeint ist ?
Aussentuer_Garten_Alarm:.*|rgr_Bewohner:.* {
  if (ReadingsVal("Aussentuer_Garten_Alarm", "state", "") eq "opened" || ReadingsVal("rgr_Bewohner", "state", "") eq "absent" || ReadingsVal("rgr_Bewohner", "state", "") eq "gone") {fhem("set Heizung_All off");}
  elsif (ReadingsVal("Aussentuer_Garten_Alarm", "state", "") eq "closed" && (ReadingsVal("rgr_Bewohner", "state", "") eq "home" || ReadingsVal("rgr_Bewohner", "state", "") eq "gotosleep")) {fhem("set Heizung_All boost on");fhem("defmod at_Auto at +00:05:00 set Heizung_All auto");}
}

Mit weniger Klammern tritt das Problem auch weiterhin auf, das auto in einer endlosschleife abgeschossen wird so wie es aussieht.

Ich habe zum Beispiel alle Kontakte closed und es war Tania als home gesetzt, das habe ich dann auf absent geändert und in das event log geschaut. da kommt es mehrfach vor und offensichtlich auf Heizung_all off :-(

2025-02-26 20:52:52 ROOMMATE rr_location_tania lastState: home
2025-02-26 20:52:52 ROOMMATE rr_location_tania absent
2025-02-26 20:52:52 ROOMMATE rr_location_tania lastMood: calm
2025-02-26 20:52:52 ROOMMATE rr_location_tania mood: -
2025-02-26 20:52:52 ROOMMATE rr_location_tania presence: absent
2025-02-26 20:52:52 ROOMMATE rr_location_tania lastLocation: home
2025-02-26 20:52:52 ROOMMATE rr_location_tania location: underway
2025-02-26 20:52:52 ROOMMATE rr_location_tania lastDeparture: 2025-02-26 20:52:34
2025-02-26 20:52:52 ROOMMATE rr_location_tania lastDurPresence: 00:09:13
2025-02-26 20:52:52 ROOMMATE rr_location_tania lastDurPresence_cr: 9
2025-02-26 20:52:52 ROOMMATE rr_location_tania durTimerPresence_cr: 0
2025-02-26 20:52:52 ROOMMATE rr_location_tania durTimerPresence: 00:00:00
2025-02-26 20:52:53 structure Heizung_All 23.5
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 23.5
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 ACTUAL_TEMPERATURE: 23.5
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 measured-temp: 23.5
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_TIME: 00:00
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_YEAR: 0
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_DAY: 1
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 BOOST_STATE: 0
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_DAY: 1
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_TIME: 00:00
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 CONTROL_MODE: MANU-MODE
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_MONTH: 1
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_MONTH: 1
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 control: off
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 SET_TEMPERATURE: off
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 desired-temp: 4.5
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 FAULT_REPORTING: NO_FAULT
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_YEAR: 0
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 VALVE_STATE: 0
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_TEMPERATURE: 5.0
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 BATTERY_STATE: 3.1
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:52:53 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.5
2025-02-26 20:52:55 structure Heizung_All 23.5
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_DAY: 1
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 BOOST_STATE: 0
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_TIME: 00:00
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 CONTROL_MODE: MANU-MODE
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_TIME: 00:00
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_YEAR: 0
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_DAY: 1
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 FAULT_REPORTING: NO_FAULT
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_TEMPERATURE: 5.0
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_YEAR: 0
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_MONTH: 1
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_MONTH: 1
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 control: off
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 SET_TEMPERATURE: off
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 desired-temp: 4.5
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:52:55 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.5
2025-02-26 20:52:55 Pushover pushmsg available: 0
2025-02-26 20:52:55 Pushover pushmsg disconnected
2025-02-26 20:52:59 structure Heizung_All off
2025-02-26 20:53:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 off
2025-02-26 20:53:00 structure Heizung_All off
2025-02-26 20:53:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 off
2025-02-26 20:53:00 structure Heizung_All off
2025-02-26 20:53:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 off
2025-02-26 20:53:01 structure Heizung_All off
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 off
2025-02-26 20:53:01 RESIDENTS rgr_Bewohner durTimerAbsence: 00:00:25
2025-02-26 20:53:01 RESIDENTS rgr_Bewohner lastActivity: absent
2025-02-26 20:53:01 RESIDENTS rgr_Bewohner lastActivityBy: location
2025-02-26 20:53:01 RESIDENTS rgr_Bewohner lastActivityByDev: rr_location_tania
2025-02-26 20:53:01 ROOMMATE rr_location_tania absent
2025-02-26 20:53:01 structure Heizung_All 23.5
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 FAULT_REPORTING: NO_FAULT
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_YEAR: 0
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_TEMPERATURE: 5.0
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_MONTH: 1
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_MONTH: 1
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 control: off
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 SET_TEMPERATURE: off
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 desired-temp: 4.5
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 BOOST_STATE: 0
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_DAY: 1
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_TIME: 00:00
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 CONTROL_MODE: MANU-MODE
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_TIME: 00:00
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_YEAR: 0
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_DAY: 1
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:53:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.5
2025-02-26 20:53:14 ROOMMATE rr_location_michael durTimerAbsence_cr: 3373
2025-02-26 20:53:14 ROOMMATE rr_location_michael durTimerAbsence: 56:12:53
2025-02-26 20:53:34 ROOMMATE rr_location_tania durTimerAbsence_cr: 1
2025-02-26 20:53:34 ROOMMATE rr_location_tania durTimerAbsence: 00:01:00
2025-02-26 20:53:59 structure Heizung_All off
2025-02-26 20:53:59 HMCCUCHN HM_CC_RT_DN_LEQ1207074 off
2025-02-26 20:54:00 structure Heizung_All off
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 off
2025-02-26 20:54:00 RESIDENTS rgr_Bewohner durTimerAbsence_cr: 1
2025-02-26 20:54:00 RESIDENTS rgr_Bewohner durTimerAbsence: 00:01:25
2025-02-26 20:54:00 structure Heizung_All 23.5
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_DAY: 1
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 BOOST_STATE: 0
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 CONTROL_MODE: MANU-MODE
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_TIME: 00:00
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_TIME: 00:00
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_YEAR: 0
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_DAY: 1
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 FAULT_REPORTING: NO_FAULT
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_YEAR: 0
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_TEMPERATURE: 5.0
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_MONTH: 1
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_MONTH: 1
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 control: off
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 SET_TEMPERATURE: off
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 desired-temp: 4.5
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:54:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.5
2025-02-26 20:54:14 ROOMMATE rr_location_michael durTimerAbsence_cr: 3374
2025-02-26 20:54:14 ROOMMATE rr_location_michael durTimerAbsence: 56:13:53
2025-02-26 20:54:34 ROOMMATE rr_location_tania durTimerAbsence_cr: 2
2025-02-26 20:54:34 ROOMMATE rr_location_tania durTimerAbsence: 00:02:00
2025-02-26 20:54:58 structure Heizung_All 23.5
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 CONTROL_MODE: MANU-MODE
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.5
2025-02-26 20:54:58 structure Heizung_All 23.5
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 FAULT_REPORTING: NO_FAULT
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.5
2025-02-26 20:54:58 structure Heizung_All 23.6
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_YEAR: 0
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 VALVE_STATE: 0
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_TEMPERATURE: 5.0
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 BATTERY_STATE: 3.1
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 control: off
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 SET_TEMPERATURE: off
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 desired-temp: 4.5
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_MONTH: 1
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_MONTH: 1
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_TIME: 00:00
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 BOOST_STATE: 0
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_DAY: 1
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_DAY: 1
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 23.6
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 ACTUAL_TEMPERATURE: 23.6
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 measured-temp: 23.6
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_TIME: 00:00
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_YEAR: 0
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:54:58 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.6
2025-02-26 20:54:59 Twilight Daemmerung azimuth: 298.18
2025-02-26 20:54:59 Twilight Daemmerung elevation: -29.12
2025-02-26 20:54:59 Twilight Daemmerung twilight: 0
2025-02-26 20:54:59 Twilight Daemmerung twilight_weather: 0
2025-02-26 20:54:59 Twilight Daemmerung compasspoint: west-northwest
2025-02-26 20:54:59 structure Heizung_All off
2025-02-26 20:55:01 HMCCUCHN HM_CC_RT_DN_LEQ1207074 off
2025-02-26 20:55:02 structure Heizung_All off
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 off
2025-02-26 20:55:02 RESIDENTS rgr_Bewohner durTimerAbsence_cr: 2
2025-02-26 20:55:02 RESIDENTS rgr_Bewohner durTimerAbsence: 00:02:25
2025-02-26 20:55:02 structure Heizung_All 23.6
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_DAY: 1
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_YEAR: 0
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_TIME: 00:00
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_TIME: 00:00
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 CONTROL_MODE: MANU-MODE
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 BOOST_STATE: 0
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_DAY: 1
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 control: off
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 SET_TEMPERATURE: off
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 desired-temp: 4.5
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_MONTH: 1
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_MONTH: 1
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_TEMPERATURE: 5.0
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_YEAR: 0
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 FAULT_REPORTING: NO_FAULT
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:55:02 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.6
2025-02-26 20:55:14 ROOMMATE rr_location_michael durTimerAbsence_cr: 3375
2025-02-26 20:55:14 ROOMMATE rr_location_michael durTimerAbsence: 56:14:53
2025-02-26 20:55:34 ROOMMATE rr_location_tania durTimerAbsence_cr: 3
2025-02-26 20:55:34 ROOMMATE rr_location_tania durTimerAbsence: 00:03:00
2025-02-26 20:55:59 structure Heizung_All off
2025-02-26 20:55:59 HMCCUCHN HM_CC_RT_DN_LEQ1207074 off
2025-02-26 20:56:00 structure Heizung_All off
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 off
2025-02-26 20:56:00 RESIDENTS rgr_Bewohner durTimerAbsence_cr: 3
2025-02-26 20:56:00 RESIDENTS rgr_Bewohner durTimerAbsence: 00:03:25
2025-02-26 20:56:00 structure Heizung_All 23.6
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_TEMPERATURE: 5.0
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_YEAR: 0
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 FAULT_REPORTING: NO_FAULT
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 control: off
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 SET_TEMPERATURE: off
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 desired-temp: 4.5
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_MONTH: 1
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_MONTH: 1
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 CONTROL_MODE: MANU-MODE
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_TIME: 00:00
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 BOOST_STATE: 0
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_DAY: 1
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_DAY: 1
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_TIME: 00:00
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_YEAR: 0
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:56:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.6
2025-02-26 20:56:14 ROOMMATE rr_location_michael durTimerAbsence_cr: 3376
2025-02-26 20:56:14 ROOMMATE rr_location_michael durTimerAbsence: 56:15:53
2025-02-26 20:56:34 ROOMMATE rr_location_tania durTimerAbsence_cr: 4
2025-02-26 20:56:34 ROOMMATE rr_location_tania durTimerAbsence: 00:04:00
2025-02-26 20:56:59 structure Heizung_All off
2025-02-26 20:56:59 HMCCUCHN HM_CC_RT_DN_LEQ1207074 off
2025-02-26 20:57:00 structure Heizung_All off
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 off
2025-02-26 20:57:00 RESIDENTS rgr_Bewohner durTimerAbsence_cr: 4
2025-02-26 20:57:00 RESIDENTS rgr_Bewohner durTimerAbsence: 00:04:25
2025-02-26 20:57:00 structure Heizung_All 23.6
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 FAULT_REPORTING: NO_FAULT
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_TEMPERATURE: 5.0
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_YEAR: 0
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_MONTH: 1
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_MONTH: 1
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 control: off
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 SET_TEMPERATURE: off
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 desired-temp: 4.5
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 BOOST_STATE: 0
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_DAY: 1
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 CONTROL_MODE: MANU-MODE
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_TIME: 00:00
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_YEAR: 0
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_TIME: 00:00
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_DAY: 1
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:57:00 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.6
2025-02-26 20:57:14 ROOMMATE rr_location_michael durTimerAbsence_cr: 3377
2025-02-26 20:57:14 ROOMMATE rr_location_michael durTimerAbsence: 56:16:53
2025-02-26 20:57:23 structure Heizung_All auto
2025-02-26 20:57:24 HMCCUCHN HM_CC_RT_DN_LEQ1207074 auto
2025-02-26 20:57:24 structure Heizung_All 23.6
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 CONTROL_MODE: AUTO-MODE
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.6
2025-02-26 20:57:25 structure Heizung_All 23.6
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_DAY: 1
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 FAULT_REPORTING: NO_FAULT
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 BOOST_STATE: 0
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_TIME: 00:00
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_TEMPERATURE: 5.0
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_YEAR: 0
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_TIME: 00:00
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_MONTH: 1
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_START_DAY: 1
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 control: 21.0
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 SET_TEMPERATURE: 21.0
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 desired-temp: 21.0
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.6
2025-02-26 20:57:25 structure Heizung_All 23.6
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_YEAR: 0
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 PARTY_STOP_MONTH: 1
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 devstate: ok
2025-02-26 20:57:25 HMCCUCHN HM_CC_RT_DN_LEQ1207074 hmstate: 23.6
2025-02-26 20:57:34 ROOMMATE rr_location_tania durTimerAbsence_cr: 5
2025-02-26 20:57:34 ROOMMATE rr_location_tania durTimerAbsence: 00:05:00

Gruß
Micha
Hardware:
1 x Raspberry Pi Mod. B 512 MB
eq-3 2 x MAX! eTRV Heizungssteller, 1 x MAX! Fensterkontakt, 1 x MAX! Cube - LAN Gateway (ausser Betrieb)
Intertechno 1x ITZ-500, 3x ITT-1500, 9x ITR-1500, 3 x ITDL-1000, 2 x ITL-500
1 x CC1101-USB-Lite 433MHz (CUL433)  V3 1 x CC1101-USB-Lite 868MHz (CUL868)

frober

Zitat von: mfeske am 26 Februar 2025, 19:59:17wäre das die "entklammerte" Variante die gemeint ist ?
Aussentuer_Garten_Alarm:.*|rgr_Bewohner:.* {
  if (ReadingsVal("Aussentuer_Garten_Alarm", "state", "") eq "opened" || ReadingsVal("rgr_Bewohner", "state", "") eq "absent" || ReadingsVal("rgr_Bewohner", "state", "") eq "gone") {fhem("set Heizung_All off");}
  elsif (ReadingsVal("Aussentuer_Garten_Alarm", "state", "") eq "closed" && (ReadingsVal("rgr_Bewohner", "state", "") eq "home" || ReadingsVal("rgr_Bewohner", "state", "") eq "gotosleep")) {fhem("set Heizung_All boost on");fhem("defmod at_Auto at +00:05:00 set Heizung_All auto");}
}
So war das gemeint, das erhöht die Lesbarkeit und vermeidet unnötige Fehler. Es gibt aber auch Situationen, wo die unnötigen Klammer stören.

Da der Readingsname state standardmäßig ausgeblendet ist, musst du mit
Aussentuer_Garten_Alarm:(open|closed).*|rgr_Bewohner:(absent|gone|home|gotosleep).* { ..
einschränken.

Wenn das nicht reicht, kannst du noch
attr <DEVICE> event-on-change-reading .* die Events einschränken, d.h. es wird nur noch bei Änderungen getriggert.

Als Bsp. das sind die Auslöser aus deine Lists:
2025-02-23 15:15:43  triggeredByEvent durTimerAbsence: 00:28:002025-02-24 12:24:20  triggeredByEvent durTimerPresence: 00:11:00

Die Fhem Befehle kannst du auf einmal senden:
fhem("set Heizung_All boost on; defmod at_Auto at +00:05:00 set Heizung_All auto")
Wenn das alles noch nicht reicht, überprüfe den Zustand der Heizung_All bevor du das set sendest.
z.B.
{if ReadingsVal('Heizung_ALL','state', '') ne 'off') {fhem("set Heizung_All off");}}
Mit den vielen Trigger kann es immer vorkommen, dass das notify mehrmals auslöst und entsprechend das set ausführt. 
Raspi 3b mit Raspbian Bullseye und relativ aktuellem Fhem,  FS20, LGW, PCA301, Zigbee, MQTT, MySensors mit RS485(CAN-Receiver) und RFM69, etc.,
einiges umgesetzt, vieles in Planung, smile

********************************************
...man wächst mit der Herausforderung...

mfeske

#9
Hallo frober,
vielen Dank für Deine Unterstützung. Es wird besser ;-). Zu mindest das ständige boosten ist weg, ich vermute die Einschränkung der Readings war ausreichend dazu. Ob es für set Heizung_All off auch funktioniert konnte ich so noch nicht feststellen, ich wollte es um eine push message
set pushmsg msg "Heizung ist aus", set Alarm_Status ergänzen aber scheitere an der Syntax durch die Gänsefüsse. Pushmessage als solches funktioniert in einem DOIF. Auch an der Variante es in die Logdatei testweise zu schreiben bin ich gescheitert.

Wie ich jetzt festgestellt habe unterscheiden sich jetzt die readings der unterschiedlichen Kontakte :-( open und opened sowie close und closed sind vorhanden.
Dafür wäre vermutlich
:(open|opened|close|closed).* eine Teillösung, aber wie muss ich das im Teil
if (ReadingsVal("Aussentuer2_Garten_Alarm", "state", "") eq "opened" || lösen, muss ich wie beim rgr komplett wiederholen mit
if (ReadingsVal("Aussentuer2_Garten_Alarm", "state", "") eq "opened" || if (ReadingsVal("Aussentuer2_Garten_Alarm", "state", "") eq "open" || ?

Sofern alle Garten Kontakte überwacht werden sollen geht das mit
*_Garten_Alarm oder muss ich da eine andere Syntax verwenden ?

Aussentuer_Garten_Alarm:(opened|closed).*|rgr_Bewohner:(absent|gone|home|gotosleep).* {
  if (ReadingsVal("Aussentuer2_Garten_Alarm", "state", "") eq "opened" || ReadingsVal("rgr_Bewohner", "state", "") eq "absent" || ReadingsVal("rgr_Bewohner", "state", "") eq "gone") {fhem("set Heizung_All off");}
  elsif (ReadingsVal("Aussentuer2_Garten_Alarm", "state", "") eq "closed" && (ReadingsVal("rgr_Bewohner", "state", "") eq "home" || ReadingsVal("rgr_Bewohner", "state", "") eq "gotosleep")) {fhem("set Heizung_All boost on; defmod at_Auto at +00:05:00 set Heizung_All auto");}
}

Wobei ich gerade noch ein Fehlverhalten festgestellt habe. rgr war auf home und ich habe Aussentuer_Garten_Alarm auf opened gesetzt, meine Erwartung war das set Heizung_All off gesetzt wird, aber es wurde boost ausgelöst :-(

Gruß
Micha
Hardware:
1 x Raspberry Pi Mod. B 512 MB
eq-3 2 x MAX! eTRV Heizungssteller, 1 x MAX! Fensterkontakt, 1 x MAX! Cube - LAN Gateway (ausser Betrieb)
Intertechno 1x ITZ-500, 3x ITT-1500, 9x ITR-1500, 3 x ITDL-1000, 2 x ITL-500
1 x CC1101-USB-Lite 433MHz (CUL433)  V3 1 x CC1101-USB-Lite 868MHz (CUL868)

frober

#10
Mache Stück für Stück und nicht alles auf einmal.

Pushmsg kenne ich nicht, aber im Wiki/Comref/Hilfe sollten Bsp. zu finden sein.
Du bist im Perl Modus, also musst du auch hier als fhem() die Nachricht senden.
Bsp. aus dem Wiki
fhem("set pushmsg msg 'fhem' 'Erinnerung an: $Eventname' 0 ")

Zu den Gänsefüßchen:
Alles was zw. single quotes ' steht wird ohne Bearbeitung weitergegeben. Bei doppel quotes " werden Variablen usw. aufgelöst, d.h. der Inhalt der Variablen wird weitergegeben.
Das ist aber auch modulabhängig, hier Pushmsg.

Mehrere Fhem Befehle werden mit Semikolon getrennt.

Loggen kannst du mit
Debug($message);
die Meldung wird ins Fhemlog geschrieben.

:(open|opened|close|closed).* das ist ok

Das ReadingsVal musst du entsprechend für jeden Kontakt wiederholen.

.*_Garten_Alarm hier fehlt am Anfang der Punkt.
Regex ist hier als Info zielführend.
. irgend ein Zeichen
* beliebig oft wiederholt

Zum Fehlverhalten kann ich so nichts sagen, evtl. stören hier noch zuviele Events. Das debug sollte helfen.

Allerdings müsstest du den ausführenden Teil umbauen:
{my $a = ReadingsVal(...); my $b = ReadingsVal(...); if($a eq 'opened' || $b eq 'absent') { debug("Tür ist $a, Bewohner ist $b, ..."); fhem(...)}

Ich schreibe am Handy daher nur ein gekürztes Bsp. als Hilfestellung.
Raspi 3b mit Raspbian Bullseye und relativ aktuellem Fhem,  FS20, LGW, PCA301, Zigbee, MQTT, MySensors mit RS485(CAN-Receiver) und RFM69, etc.,
einiges umgesetzt, vieles in Planung, smile

********************************************
...man wächst mit der Herausforderung...

mfeske

#11
Hallo frober,

Danke für die Hinweise. Ich habe jetzt erstmal Aussentuer2_Garten_Alarm event-on-change-reading .* gesetzt, das sollte ja nicht schaden.
Mit dem wiederholen der Readings im if hat nicht funktioniert, ich erhalte immer syntax Fehler. Wenn ich Dich richtig verstehe soll ich aber eh die Readings in Variablen packen ? Mit .*_Alarm und der Unterscheidung open / opened funktioniert aber nicht ?

.*_Alarm:(open|opened|close|closed).*|rgr_Bewohner:(absent|gone|home|gotosleep).* {
  if (ReadingsVal("Aussentuer2_Garten_Alarm", "state", "") eq "opened" || ReadingsVal("rgr_Bewohner", "state", "") eq "absent" || ReadingsVal("rgr_Bewohner", "state", "") eq "gone") {fhem("set Heizung_All off");}
  elsif (ReadingsVal("Aussentuer2_Garten_Alarm", "state", "") eq "closed" && (ReadingsVal("rgr_Bewohner", "state", "") eq "home" || ReadingsVal("rgr_Bewohner", "state", "") eq "gotosleep")) {fhem("set Heizung_All boost on; defmod at_Auto at +00:05:00 set Heizung_All auto");}
}

Grtuß
Micha
Hardware:
1 x Raspberry Pi Mod. B 512 MB
eq-3 2 x MAX! eTRV Heizungssteller, 1 x MAX! Fensterkontakt, 1 x MAX! Cube - LAN Gateway (ausser Betrieb)
Intertechno 1x ITZ-500, 3x ITT-1500, 9x ITR-1500, 3 x ITDL-1000, 2 x ITL-500
1 x CC1101-USB-Lite 433MHz (CUL433)  V3 1 x CC1101-USB-Lite 868MHz (CUL868)

frober

Wenn's dir zu kompliziert wird, packe deine Außentüren auch in eine Structure.
Hier gibt es die Möglichkeit open/opened usw. anzugleichen.

Wenn du Syntaxfehler bekommst, musst du sie halt korrigieren. Die Meldung zeigt ja den Fehler.

Ich weiß nicht genau, ob debug() ein ReadingsVal() auflöst, musst du probieren. Dann kannst du die Variablen sparen.
Raspi 3b mit Raspbian Bullseye und relativ aktuellem Fhem,  FS20, LGW, PCA301, Zigbee, MQTT, MySensors mit RS485(CAN-Receiver) und RFM69, etc.,
einiges umgesetzt, vieles in Planung, smile

********************************************
...man wächst mit der Herausforderung...

mfeske

Hallo frober,

vielen Dank. Werde ich dann ausprobieren (müssen) ;-) Momentan keine doppelten events mehr das ist ja schon mal ein Fortschritt.
Gruß
Micha
Hardware:
1 x Raspberry Pi Mod. B 512 MB
eq-3 2 x MAX! eTRV Heizungssteller, 1 x MAX! Fensterkontakt, 1 x MAX! Cube - LAN Gateway (ausser Betrieb)
Intertechno 1x ITZ-500, 3x ITT-1500, 9x ITR-1500, 3 x ITDL-1000, 2 x ITL-500
1 x CC1101-USB-Lite 433MHz (CUL433)  V3 1 x CC1101-USB-Lite 868MHz (CUL868)