Licht (gesteuert über Aqara Bewegungsmelder und DOIF) geht immer wieder aus

Begonnen von Jogi, 18 November 2021, 10:03:24

Vorheriges Thema - Nächstes Thema

Jogi

Hallo,
ich habe in der Küche ein LED-Band, das je nach Helligkeit und Zeit unterschiedliche Farben hat.
Zusätzlich habe ich einen Aqara Bewegungsmelder und möchte, dass das LED-Licht bei Bewegung auf hellweiß schaltet und an bleibt, so lange sich etwas bewegt. Sofern keine Bewegung mehr da ist soll es nach eingestellter Zeit (wait) wieder auf den Ursprungszustand zurückgehen und die vorgegebene Farbe annehmen. Das funktioniert prinzipiell auch alles.
ABER:
Leider kommt es immer wieder vor, dass man länger irgendetwas in der Küche macht und das Licht von hellweiß wieder in den anderen Farbzustand wechselt. Nach ein paar Sekunden geht es dann wieder auf hellweiß.
Ich hatte schon einmal vermutet, dass man vielleicht zu lange still steht und habe daher die wait-Zeit hochgesetzt. Das hat aber auch keine Lösung gebracht.
Ich bin mir jetzt nicht sicher, woran es liegt, am Aquara Bewegungsmelder oder am DOIF.

Hat jemand eine Tipp für mich?

Hier ein list vom Bewegungsmelder
Internals:
   DEF        sensor 11  IODev=deCONZ
   FUUID      5df3444c-f33f-8efe-2c60-6ca5d4d9b4ef9c40
   FVERSION   31_HUEDevice.pm:0.239120/2021-03-08
   ID         S11
   INTERVAL   
   IODev      deCONZ
   NAME       Bewegungsmelder_EG
   NR         2638
   STATE      nomotion
   TYPE       HUEDevice
   lastupdated 2021-11-18 08:47:06
   lastupdated_local 2021-11-18 10:47:06
   manufacturername LUMI
   modelid    lumi.sensor_motion.aq2
   name       Bewegungsmelder
   on         1
   reachable  1
   swversion  20170627
   type       ZHAPresence
   uniqueid   00:15:8d:00:04:21:d2:79-01-0406
   READINGS:
     2021-11-13 10:10:41   IODev           deCONZ
     2021-11-18 09:02:43   battery         100
     2021-11-18 09:02:43   batteryPercent  100
     2021-11-16 19:11:26   lastseen        2021-11-16T17:09:56.012
     2021-11-18 09:02:43   reachable       1
     2021-11-18 10:47:06   state           nomotion
     2021-11-18 09:02:43   temperature     28
   helper:
     devtype    S
     reachable  0
     update_timeout 1
     configList:
       regex:
         HASH(0x4113860)
     json:
       ep         1
       etag       88e585eddb576c085ac2ce303a26d7ea
       lastseen   2021-11-18T08:45:36.032
       manufacturername LUMI
       modelid    lumi.sensor_motion.aq2
       name       Bewegungsmelder
       swversion  20170627
       type       ZHAPresence
       uniqueid   00:15:8d:00:04:21:d2:79-01-0406
       config:
         battery    100
         duration   90
         temperature 2800
       state:
         lastupdated 2021-11-18T08:47:06.166
     setList:
Attributes:
   IODev      deCONZ
   alias      Bewegungsmelder Küche
   comment    Xiaomi Bewegungsmelder 2 Küche
   configList /duration (.*)/:{"duration":"$1"}
   devStateIcon motion:people_sensor@red nomotion:people_sensor@grey
   group      HueBewegungsmelder,Status
   icon       motion_detector
   model      lumi.sensor_motion.aq2
   room       1.Start,4.Technik,HUEDevice
   sortby     91


und vom DOIF
Internals:
   DEF        ## Alarmanlage scharf:
(([?Helligkeit] <100) and [17:00-06:00] and [Alarmanlage] eq "on" and [Wohnzimmer] eq "on") (set LED_Kueche rgb ff0000 5)(set LED_Kueche rgb 000000 300) ## 1
##
DOELSEIF (([?Helligkeit] <450) and ([Bewegungsmelder_EG] eq "motion") and [00:01-23:59] and [?LED_Kueche] eq "opened") (set LED_Kueche rgb FFFFFF) ## 2 Bei Bewegung weiß
DOELSEIF (([Helligkeit] <250) and ([Bewegungsmelder_EG] eq "nomotion") and [18:00-20:15] and [Alarmanlage] eq "off" and [?LED_Kueche] eq "opened" and [Adventsbeleuchtung] eq "off") (set LED_Kueche rgb B2B1AF) ## 3 wenn kein Advent ist
DOELSEIF (([Helligkeit] <250) and ([Bewegungsmelder_EG] eq "nomotion") and [18:00-20:15] and [Alarmanlage] eq "off" and [?LED_Kueche] eq "opened" and [Adventsbeleuchtung] eq "on") (set LED_Kueche rgb 6B1362) ## 4 in der Adventszeit, Freigabe Weihnachtsbeleuchtung eingeschaltet
##
DOELSEIF (([Helligkeit] <250) and ([Bewegungsmelder_EG] eq "nomotion") and [20:15-21:00] and [Alarmanlage] eq "off" and [?LED_Kueche] eq "opened" and [Adventsbeleuchtung] eq "off") (set LED_Kueche rgb 820C27) ## 5 wenn kein Advent ist
DOELSEIF (([Helligkeit] <250) and ([Bewegungsmelder_EG] eq "nomotion") and [20:15-21:00] and [Alarmanlage] eq "off" and [?LED_Kueche] eq "opened" and [Adventsbeleuchtung] eq "on") (set LED_Kueche rgb 871916) ## 6 in der Adventszeit, Freigabe Weihnachtsbeleuchtung eingeschaltet
##
DOELSEIF (([Helligkeit] <250) and ([Bewegungsmelder_EG] eq "nomotion") and [21:00-22:30] and [Wohnzimmer] eq "on" and [Alarmanlage] eq "off" and [?LED_Kueche] eq "opened" and [Adventsbeleuchtung] eq "off") (set LED_Kueche rgb 821A5C) ## 7 wenn kein Advent ist
DOELSEIF (([Helligkeit] <250) and ([Bewegungsmelder_EG] eq "nomotion") and [21:00-22:30] and [Wohnzimmer] eq "on" and [Alarmanlage] eq "off" and [?LED_Kueche] eq "opened" and [Adventsbeleuchtung] eq "on") (set LED_Kueche rgb 871916) ## 8 in der Adventszeit, Freigabe Weihnachtsbeleuchtung eingeschaltet
##
DOELSEIF (([Helligkeit] <250) and ([Bewegungsmelder_EG] eq "nomotion") and [22:30-09:00] and [Wohnzimmer] eq "on" and [Alarmanlage] eq "off" and [?LED_Kueche] eq "opened" and [Adventsbeleuchtung] eq "off") (set LED_Kueche rgb F04FE0) ## 9 wenn kein Advent ist
DOELSEIF (([Helligkeit] <250) and ([Bewegungsmelder_EG] eq "nomotion") and [22:30-09:00] and [Wohnzimmer] eq "on" and [Alarmanlage] eq "off" and [?LED_Kueche] eq "opened" and [Adventsbeleuchtung] eq "on") (set LED_Kueche rgb 6B1362) ## 10 in der Adventszeit, Freigabe Weihnachtsbeleuchtung eingeschaltet
##
DOELSEIF ((([?Helligkeit] >450 and [?Helligkeit] <600) or [?Lux_Kueche:lux] < 20) and ([Bewegungsmelder_EG] eq "motion") and ([?Lux_Kueche:lux]<150 ) and [00:01-23:59] and [?LED_Kueche] eq "opened") (set LED_Kueche rgb FFFFFF) ## 11 Bei Bewegung auf weiß
##
DOELSEIF ([?LED_Kueche] eq "disconnected") (set LED_Kueche rgb 000000) ## 12
##
DOELSE (set LED_Kueche rgb 000000) ## 13
   FUUID      5d56cae1-f33f-8efe-63db-e313d7edb4385c2c
   MODEL      FHEM
   NAME       Contr_Kueched01
   NOTIFYDEV  Helligkeit,global,Adventsbeleuchtung,Wohnzimmer,Bewegungsmelder_EG,Alarmanlage
   NR         2574
   NTFY_ORDER 50-Contr_Kueched01
   STATE      cmd_13
   TYPE       DOIF
   VERSION    24905 2021-09-01 18:35:54
   READINGS:
     2021-11-18 10:00:43   Device          Wohnzimmer
     2021-11-18 09:55:41   cmd             13
     2021-11-18 09:55:41   cmd_event       Wohnzimmer
     2021-11-18 09:55:41   cmd_nr          13
     2021-11-17 19:46:54   e_Adventsbeleuchtung_STATE off
     2021-11-18 06:59:52   e_Alarmanlage_STATE off
     2021-11-18 09:59:32   e_Bewegungsmelder_EG_STATE nomotion
     2021-11-18 10:00:35   e_Helligkeit_STATE 497.695
     2021-11-18 10:00:43   e_Wohnzimmer_STATE off
     2021-09-09 17:02:07   mode            enabled
     2021-11-18 09:55:41   state           cmd_13
     2021-11-18 06:00:00   timer_01_c01    18.11.2021 17:00:00
     2021-11-18 06:00:00   timer_02_c01    19.11.2021 06:00:00
     2021-11-17 23:59:00   timer_03_c02    18.11.2021 00:01:00
     2021-11-17 23:59:00   timer_04_c02    18.11.2021 23:59:00
     2021-11-17 20:15:00   timer_05_c03    18.11.2021 18:00:00
     2021-11-17 20:15:00   timer_06_c03    18.11.2021 20:15:00
     2021-11-17 20:15:00   timer_07_c04    18.11.2021 18:00:00
     2021-11-17 20:15:00   timer_08_c04    18.11.2021 20:15:00
     2021-11-17 21:00:00   timer_09_c05    18.11.2021 20:15:00
     2021-11-17 21:00:00   timer_10_c05    18.11.2021 21:00:00
     2021-11-17 21:00:00   timer_11_c06    18.11.2021 20:15:00
     2021-11-17 21:00:00   timer_12_c06    18.11.2021 21:00:00
     2021-11-17 22:30:00   timer_13_c07    18.11.2021 21:00:00
     2021-11-17 22:30:00   timer_14_c07    18.11.2021 22:30:00
     2021-11-17 22:30:00   timer_15_c08    18.11.2021 21:00:00
     2021-11-17 22:30:00   timer_16_c08    18.11.2021 22:30:00
     2021-11-18 09:00:00   timer_17_c09    18.11.2021 22:30:00
     2021-11-18 09:00:00   timer_18_c09    19.11.2021 09:00:00
     2021-11-18 09:00:00   timer_19_c10    18.11.2021 22:30:00
     2021-11-18 09:00:00   timer_20_c10    19.11.2021 09:00:00
     2021-11-17 23:59:00   timer_21_c11    18.11.2021 00:01:00
     2021-11-17 23:59:00   timer_22_c11    18.11.2021 23:59:00
     2021-11-18 09:55:41   wait_timer      no timer
   Regex:
     accu:
     collect:
     cond:
       Adventsbeleuchtung:
         0:
         1:
         10:
         11:
         2:
           &STATE     ^Adventsbeleuchtung$
         3:
           &STATE     ^Adventsbeleuchtung$
         4:
           &STATE     ^Adventsbeleuchtung$
         5:
           &STATE     ^Adventsbeleuchtung$
         6:
           &STATE     ^Adventsbeleuchtung$
         7:
           &STATE     ^Adventsbeleuchtung$
         8:
           &STATE     ^Adventsbeleuchtung$
         9:
           &STATE     ^Adventsbeleuchtung$
       Alarmanlage:
         0:
           &STATE     ^Alarmanlage$
         1:
         10:
         11:
         2:
           &STATE     ^Alarmanlage$
         3:
           &STATE     ^Alarmanlage$
         4:
           &STATE     ^Alarmanlage$
         5:
           &STATE     ^Alarmanlage$
         6:
           &STATE     ^Alarmanlage$
         7:
           &STATE     ^Alarmanlage$
         8:
           &STATE     ^Alarmanlage$
         9:
           &STATE     ^Alarmanlage$
       Bewegungsmelder_EG:
         0:
         1:
           &STATE     ^Bewegungsmelder_EG$
         10:
           &STATE     ^Bewegungsmelder_EG$
         11:
         2:
           &STATE     ^Bewegungsmelder_EG$
         3:
           &STATE     ^Bewegungsmelder_EG$
         4:
           &STATE     ^Bewegungsmelder_EG$
         5:
           &STATE     ^Bewegungsmelder_EG$
         6:
           &STATE     ^Bewegungsmelder_EG$
         7:
           &STATE     ^Bewegungsmelder_EG$
         8:
           &STATE     ^Bewegungsmelder_EG$
         9:
           &STATE     ^Bewegungsmelder_EG$
       Helligkeit:
         0:
         1:
         10:
         11:
         2:
           &STATE     ^Helligkeit$
         3:
           &STATE     ^Helligkeit$
         4:
           &STATE     ^Helligkeit$
         5:
           &STATE     ^Helligkeit$
         6:
           &STATE     ^Helligkeit$
         7:
           &STATE     ^Helligkeit$
         8:
           &STATE     ^Helligkeit$
         9:
           &STATE     ^Helligkeit$
       Wohnzimmer:
         0:
           &STATE     ^Wohnzimmer$
         1:
         10:
         11:
         2:
         3:
         4:
         5:
         6:
           &STATE     ^Wohnzimmer$
         7:
           &STATE     ^Wohnzimmer$
         8:
           &STATE     ^Wohnzimmer$
         9:
           &STATE     ^Wohnzimmer$
   attr:
     cmdState:
     wait:
       0:
         0
         300
       1:
         0
       10:
         0
       11:
         0
       12:
         600
       2:
         120
       3:
         120
       4:
         120
       5:
         120
       6:
         120
       7:
         120
       8:
         120
       9:
         120
     waitdel:
   condition:
     0          (::InternalDoIf($hash,'Helligkeit','STATE') <100) and ::DOIF_time($hash,0,1,$wday,$hms) and ::InternalDoIf($hash,'Alarmanlage','STATE') eq "on" and ::InternalDoIf($hash,'Wohnzimmer','STATE') eq "on"
     1          (::InternalDoIf($hash,'Helligkeit','STATE') <450) and (::InternalDoIf($hash,'Bewegungsmelder_EG','STATE') eq "motion") and ::DOIF_time($hash,2,3,$wday,$hms) and ::InternalDoIf($hash,'LED_Kueche','STATE') eq "opened"
     10         ((::InternalDoIf($hash,'Helligkeit','STATE') >450 and ::InternalDoIf($hash,'Helligkeit','STATE') <600) or ::ReadingValDoIf($hash,'Lux_Kueche','lux') < 20) and (::InternalDoIf($hash,'Bewegungsmelder_EG','STATE') eq "motion") and (::ReadingValDoIf($hash,'Lux_Kueche','lux')<150 ) and ::DOIF_time($hash,20,21,$wday,$hms) and ::InternalDoIf($hash,'LED_Kueche','STATE') eq "opened"
     11         ::InternalDoIf($hash,'LED_Kueche','STATE') eq "disconnected"
     2          (::InternalDoIf($hash,'Helligkeit','STATE') <250) and (::InternalDoIf($hash,'Bewegungsmelder_EG','STATE') eq "nomotion") and ::DOIF_time($hash,4,5,$wday,$hms) and ::InternalDoIf($hash,'Alarmanlage','STATE') eq "off" and ::InternalDoIf($hash,'LED_Kueche','STATE') eq "opened" and ::InternalDoIf($hash,'Adventsbeleuchtung','STATE') eq "off"
     3          (::InternalDoIf($hash,'Helligkeit','STATE') <250) and (::InternalDoIf($hash,'Bewegungsmelder_EG','STATE') eq "nomotion") and ::DOIF_time($hash,6,7,$wday,$hms) and ::InternalDoIf($hash,'Alarmanlage','STATE') eq "off" and ::InternalDoIf($hash,'LED_Kueche','STATE') eq "opened" and ::InternalDoIf($hash,'Adventsbeleuchtung','STATE') eq "on"
     4          (::InternalDoIf($hash,'Helligkeit','STATE') <250) and (::InternalDoIf($hash,'Bewegungsmelder_EG','STATE') eq "nomotion") and ::DOIF_time($hash,8,9,$wday,$hms) and ::InternalDoIf($hash,'Alarmanlage','STATE') eq "off" and ::InternalDoIf($hash,'LED_Kueche','STATE') eq "opened" and ::InternalDoIf($hash,'Adventsbeleuchtung','STATE') eq "off"
     5          (::InternalDoIf($hash,'Helligkeit','STATE') <250) and (::InternalDoIf($hash,'Bewegungsmelder_EG','STATE') eq "nomotion") and ::DOIF_time($hash,10,11,$wday,$hms) and ::InternalDoIf($hash,'Alarmanlage','STATE') eq "off" and ::InternalDoIf($hash,'LED_Kueche','STATE') eq "opened" and ::InternalDoIf($hash,'Adventsbeleuchtung','STATE') eq "on"
     6          (::InternalDoIf($hash,'Helligkeit','STATE') <250) and (::InternalDoIf($hash,'Bewegungsmelder_EG','STATE') eq "nomotion") and ::DOIF_time($hash,12,13,$wday,$hms) and ::InternalDoIf($hash,'Wohnzimmer','STATE') eq "on" and ::InternalDoIf($hash,'Alarmanlage','STATE') eq "off" and ::InternalDoIf($hash,'LED_Kueche','STATE') eq "opened" and ::InternalDoIf($hash,'Adventsbeleuchtung','STATE') eq "off"
     7          (::InternalDoIf($hash,'Helligkeit','STATE') <250) and (::InternalDoIf($hash,'Bewegungsmelder_EG','STATE') eq "nomotion") and ::DOIF_time($hash,14,15,$wday,$hms) and ::InternalDoIf($hash,'Wohnzimmer','STATE') eq "on" and ::InternalDoIf($hash,'Alarmanlage','STATE') eq "off" and ::InternalDoIf($hash,'LED_Kueche','STATE') eq "opened" and ::InternalDoIf($hash,'Adventsbeleuchtung','STATE') eq "on"
     8          (::InternalDoIf($hash,'Helligkeit','STATE') <250) and (::InternalDoIf($hash,'Bewegungsmelder_EG','STATE') eq "nomotion") and ::DOIF_time($hash,16,17,$wday,$hms) and ::InternalDoIf($hash,'Wohnzimmer','STATE') eq "on" and ::InternalDoIf($hash,'Alarmanlage','STATE') eq "off" and ::InternalDoIf($hash,'LED_Kueche','STATE') eq "opened" and ::InternalDoIf($hash,'Adventsbeleuchtung','STATE') eq "off"
     9          (::InternalDoIf($hash,'Helligkeit','STATE') <250) and (::InternalDoIf($hash,'Bewegungsmelder_EG','STATE') eq "nomotion") and ::DOIF_time($hash,18,19,$wday,$hms) and ::InternalDoIf($hash,'Wohnzimmer','STATE') eq "on" and ::InternalDoIf($hash,'Alarmanlage','STATE') eq "off" and ::InternalDoIf($hash,'LED_Kueche','STATE') eq "opened" and ::InternalDoIf($hash,'Adventsbeleuchtung','STATE') eq "on"
   days:
   do:
     0:
       0          set LED_Kueche rgb ff0000 5
       1          set LED_Kueche rgb 000000 300
     1:
       0          set LED_Kueche rgb FFFFFF
     10:
       0          set LED_Kueche rgb FFFFFF
     11:
       0          set LED_Kueche rgb 000000
     12:
       0          set LED_Kueche rgb 000000
     2:
       0          set LED_Kueche rgb B2B1AF
     3:
       0          set LED_Kueche rgb 6B1362
     4:
       0          set LED_Kueche rgb 820C27
     5:
       0          set LED_Kueche rgb 871916
     6:
       0          set LED_Kueche rgb 821A5C
     7:
       0          set LED_Kueche rgb 871916
     8:
       0          set LED_Kueche rgb F04FE0
     9:
       0          set LED_Kueche rgb 6B1362
   helper:
     DEVFILTER  ^global$|^Bewegungsmelder_EG$|^Helligkeit$|^Wohnzimmer$|^Alarmanlage$|^Adventsbeleuchtung$
     NOTIFYDEV  global|Bewegungsmelder_EG|Helligkeit|Wohnzimmer|Alarmanlage|Adventsbeleuchtung
     event      lastseen: 2021-11-18T09:00:08Z
     globalinit 1
     last_timer 22
     sleepdevice Wohnzimmer
     sleepsubtimer -1
     sleeptimer -1
     timerdev   Wohnzimmer
     timerevent lastseen: 2021-11-18T09:00:08Z
     triggerDev Wohnzimmer
     timerevents:
       lastseen: 2021-11-18T09:00:08Z
     timereventsState:
       lastseen: 2021-11-18T09:00:08Z
     triggerEvents:
       lastseen: 2021-11-18T09:00:08Z
     triggerEventsState:
       lastseen: 2021-11-18T09:00:08Z
   internals:
     all         Helligkeit:STATE Alarmanlage:STATE Wohnzimmer:STATE Bewegungsmelder_EG:STATE LED_Kueche:STATE Adventsbeleuchtung:STATE
   interval:
     0          -1
     1          0
     10         -1
     11         10
     12         -1
     13         12
     14         -1
     15         14
     16         -1
     17         16
     18         -1
     19         18
     2          -1
     20         -1
     21         20
     3          2
     4          -1
     5          4
     6          -1
     7          6
     8          -1
     9          8
   intervalfunc:
   intervaltimer:
   localtime:
     0          1637251200
     1          1637298000
     10         1637262900
     11         1637265600
     12         1637265600
     13         1637271000
     14         1637265600
     15         1637271000
     16         1637271000
     17         1637308800
     18         1637271000
     19         1637308800
     2          1637190060
     20         1637190060
     21         1637276340
     3          1637276340
     4          1637254800
     5          1637262900
     6          1637254800
     7          1637262900
     8          1637262900
     9          1637265600
   perlblock:
   readings:
   realtime:
     0          17:00:00
     1          06:00:00
     10         20:15:00
     11         21:00:00
     12         21:00:00
     13         22:30:00
     14         21:00:00
     15         22:30:00
     16         22:30:00
     17         09:00:00
     18         22:30:00
     19         09:00:00
     2          00:01:00
     20         00:01:00
     21         23:59:00
     3          23:59:00
     4          18:00:00
     5          20:15:00
     6          18:00:00
     7          20:15:00
     8          20:15:00
     9          21:00:00
   time:
     0          17:00:00
     1          06:00:00
     10         20:15:00
     11         21:00:00
     12         21:00:00
     13         22:30:00
     14         21:00:00
     15         22:30:00
     16         22:30:00
     17         09:00:00
     18         22:30:00
     19         09:00:00
     2          00:01:00
     20         00:01:00
     21         23:59:00
     3          23:59:00
     4          18:00:00
     5          20:15:00
     6          18:00:00
     7          20:15:00
     8          20:15:00
     9          21:00:00
   timeCond:
     0          0
     1          0
     10         5
     11         5
     12         6
     13         6
     14         7
     15         7
     16         8
     17         8
     18         9
     19         9
     2          1
     20         10
     21         10
     3          1
     4          2
     5          2
     6          3
     7          3
     8          4
     9          4
   timer:
     0          0
     1          0
     10         0
     11         0
     12         0
     13         0
     14         0
     15         0
     16         0
     17         0
     18         0
     19         0
     2          0
     20         0
     21         0
     3          0
     4          0
     5          0
     6          0
     7          0
     8          0
     9          0
   timers:
     0           0  1
     1           2  3
     10          20  21
     2           4  5
     3           6  7
     4           8  9
     5           10  11
     6           12  13
     7           14  15
     8           16  17
     9           18  19
   trigger:
   triggertime:
     1637251200:
       localtime  1637251200
       hash:
     1637254800:
       localtime  1637254800
       hash:
     1637262900:
       localtime  1637262900
       hash:
     1637265600:
       localtime  1637265600
       hash:
     1637271000:
       localtime  1637271000
       hash:
     1637276340:
       localtime  1637276340
       hash:
     1637298000:
       localtime  1637298000
       hash:
     1637308800:
       localtime  1637308800
       hash:
   uiState:
   uiTable:
Attributes:
   alias      LED-Band Küche
  startup    set $SELF checkall
   wait       0,300:0:120:120:120:120:120:120:120:120:0:0:600



alanblack

Hallo Jogi,

es wäre einfacher, Dir zu helfen, wenn Dein DOIF weniger komplex wäre, und ich bin auch kein DOIF-User.
Aber ich glaube zu sehen, worin Dein Problem begründet ist:
Du testest im DOIF auf "motion" und "nomotion" vom Bewegungsmelder. Fast alle Bewegungsmelder, die
ich bisher in den Fingern hatte, haben nach einer Bewegung x Sekunden später auf "Keine Bewegung"
geschaltet, wenn nicht gerade in dem Moment eine Bewegung detektiert wurde. Also:
- x sei 30
- Bewegung 2:58 lang
- 4 Sekunden Stillstand
- ab 3:02 wieder Bewegung
=> dann hast Du von 3:00 bis 3:02 kein hellweißes Licht

Vielleicht hilft Dir dieser Ansatz weiter.

Grüße
FHEM 6.0 auf raspi3&ODROID XU4 mit HMLAN und HM-MOD-RPI-PCB, LaCrosse via JeeLink, COC868 und CUL433, Xiaomi Aqara+div. Zigbee via deCONZ, Dooya via SIGNALDuino, ZWave mit Danalock
Jeder Witz kann ein Einzeiler sein mit genügend Semikolons

Jogi

Zitat von: alanblack am 18 November 2021, 21:11:11
Also:
- x sei 30
- Bewegung 2:58 lang
- 4 Sekunden Stillstand
- ab 3:02 wieder Bewegung
=> dann hast Du von 3:00 bis 3:02 kein hellweißes Licht

Genau für den Fall habe ich das wait im DOIF.
Dürfte als -soweit ich es richtig verstanden habe- nicht passieren.

Dracolein

Ich blicke auch nicht vollständig durch, aber schau Dir doch zur Sicherheit mal die genaue Syntax des Attributs "wait" an, speziell die Unterscheidung der Bedeutung von Komma und Doppelpunkten.
Möglicherweise ist dein wait-Attribut inkorrekt definiert und funktioniert deshalb nicht wie gedacht?

https://fhem.de/commandref_DE.html#DOIF_wait
Raspberry Pi 4 mit FHEM; FTUI Dashboard auf Asus 15,6" VT168H Touchscreen; ZigBee mit ConBee2 USB-Stick; div. Shelly 2.5; integr. Gaszähler mit ESP8266 & ESPEasy;

kjmEjfu

Ich würde das DOIF umbauen und stattdessen den DOIF-Perl Modus nutzen. Dann kannst du das mit den diversen Unterscheidungen übersichtlicher gestalten und auch die Timer so anlegen (und löschen) wie du magst: https://fhem.de/commandref_DE.html#DOIF_Ausf%C3%BChrungstimer
Migriere derzeit zu Home Assistant