@pittini said in [Vorlage] LightControl:
@tratonis
Ist logisch, dauert aber eine knappe Minute bis die Helligkeit angepasst wird, kann man direkt nach dem Einschalten die Helligkeit prüfen?
Probier mal die aktuelle dev Version, ob das besser geworden ist.
Das klappt noch nicht, das Licht wird zwischendurch wieder auf 100% geregelt. Das mit dem motion timeout kommt mir komisch vor. Zeilen 1-6 -> kein neues einschalten, Licht bleibt an, Zeile 7-25 wird neu eingeschaltet.
2021-10-24 18:29:04.847 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered linked Sensor alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder.ACTUAL new value is false
2021-10-24 18:29:04.847 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching SummarizeSensors, Group=2
2021-10-24 18:29:04.847 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Gruppe=2 Sensor 1 with target alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder_2.ACTUAL has value true
2021-10-24 18:29:04.847 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Summarized IsMotion for Group 2 = true
2021-10-24 18:29:05.226 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: AutoOffTimed: Motion detected, restarting Timeout for Group 2 set time=300
2021-10-24 18:29:05.227 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching AutoOffTimed for Group 2 set time=300 LightGroups[Group].isMotion=true LightGroups[Group].autoOffTimed.noAutoOffWhenMotion=true
2021-10-24 18:29:05.227 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Timeout for Group=2 deleted.
2021-10-24 18:29:29.254 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered linked Sensor alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder_2.ACTUAL new value is false
2021-10-24 18:29:29.255 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching SummarizeSensors, Group=2
2021-10-24 18:29:29.255 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Summarized IsMotion for Group 2 = false
2021-10-24 18:29:35.415 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered linked Sensor alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder.ACTUAL new value is true
2021-10-24 18:29:35.415 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching SummarizeSensors, Group=2
2021-10-24 18:29:35.417 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Gruppe=2 Sensor 0 with target alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder.ACTUAL has value true
2021-10-24 18:29:35.417 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Summarized IsMotion for Group 2 = true
2021-10-24 18:29:35.417 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Controller: Motion detected, restarting AutoOff Timer for Group 2
2021-10-24 18:29:35.417 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching AutoOffTimed for Group 2 set time=300 LightGroups[Group].isMotion=true LightGroups[Group].autoOffTimed.noAutoOffWhenMotion=true
2021-10-24 18:29:35.418 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Timeout for Group=2 deleted.
2021-10-24 18:29:35.418 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Motion for Group 2 detected, switching on
2021-10-24 18:29:35.418 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching GroupPowerOnOff for Group 2, OnOff=true rampOn=false - {"enabled":false,"time":10,"switchOutletsLast":true} rampOff=false - {"enabled":false,"time":10,"switchOutletsLast":false}
2021-10-24 18:29:35.418 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Normales anschalten ohne Ramping für Esszimmer
2021-10-24 18:29:35.501 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: A Switching 0 hm-rpc.1.OEQ0106192.1.LEVEL to: true
2021-10-24 18:29:35.550 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: A Switching 1 hm-rpc.1.OEQ0570794.1.LEVEL to: true
2021-10-24 18:29:35.561 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: A Switching 2 hm-rpc.1.OEQ0106243.1.LEVEL to: true
2021-10-24 18:29:35.566 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: A Switching 3 hm-rpc.1.OEQ0570695.1.LEVEL to: true
2021-10-24 18:29:35.566 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching AutoOffTimed for Group 2 set time=300 LightGroups[Group].isMotion=true LightGroups[Group].autoOffTimed.noAutoOffWhenMotion=true
2021-10-24 18:29:35.566 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Timeout for Group=2 deleted.
2021-10-24 18:29:35.566 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching WhiteSubstituteColor for Group2 = Esszimmer LightGroups[Group].power=true LightGroups[Group].color =#FFFFFF
2021-10-24 18:29:35.567 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Warmweiss - ct=2700 (maxCt - minCt) / 4 + minCt=3650 (maxCt - minCt) / 4 * 3 + minCt=5550
2021-10-24 18:29:38.308 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: adaptiveCtLinear=0 adaptiveCtSolar=0 adaptiveCtSolarInterpolated=0
2021-10-24 18:29:38.344 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching WhiteSubstituteColor for Group0 = Flur OG. LightGroups[Group].power=false LightGroups[Group].color =#FFFFFF
2021-10-24 18:29:38.347 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching WhiteSubstituteColor for Group1 = Badezimmer OG LightGroups[Group].power=false LightGroups[Group].color =#FFFFFF
2021-10-24 18:29:48.199 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered linked Sensor alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder.ACTUAL new value is true
2021-10-24 18:29:48.200 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching SummarizeSensors, Group=2
2021-10-24 18:29:48.200 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Gruppe=2 Sensor 0 with target alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder.ACTUAL has value true
2021-10-24 18:29:48.200 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Summarized IsMotion for Group 2 = true
2021-10-24 18:30:14.045 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered linked Sensor alias.0.Bewegungsmelder.HWR_Bewegungsmelder.ACTUAL new value is false
2021-10-24 18:30:38.309 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: adaptiveCtLinear=0 adaptiveCtSolar=0 adaptiveCtSolarInterpolated=0
2021-10-24 18:30:38.357 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching WhiteSubstituteColor for Group0 = Flur OG. LightGroups[Group].power=false LightGroups[Group].color =#FFFFFF
2021-10-24 18:30:38.360 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching WhiteSubstituteColor for Group1 = Badezimmer OG LightGroups[Group].power=false LightGroups[Group].color =#FFFFFF
2021-10-24 18:30:48.191 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered linked Sensor alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder.ACTUAL new value is false
2021-10-24 18:30:48.191 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching SummarizeSensors, Group=2
2021-10-24 18:30:48.191 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Summarized IsMotion for Group 2 = false
2021-10-24 18:31:15.125 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered linked Sensor alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder.ACTUAL new value is true
2021-10-24 18:31:15.125 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching SummarizeSensors, Group=2
2021-10-24 18:31:15.125 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Gruppe=2 Sensor 0 with target alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder.ACTUAL has value true
2021-10-24 18:31:15.125 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Summarized IsMotion for Group 2 = true
2021-10-24 18:31:15.125 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Controller: Motion detected, restarting AutoOff Timer for Group 2
2021-10-24 18:31:15.125 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching AutoOffTimed for Group 2 set time=300 LightGroups[Group].isMotion=true LightGroups[Group].autoOffTimed.noAutoOffWhenMotion=true
2021-10-24 18:31:15.125 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Timeout for Group=2 deleted.
2021-10-24 18:31:15.125 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Motion for Group 2 detected, switching on
2021-10-24 18:31:15.125 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching GroupPowerOnOff for Group 2, OnOff=true rampOn=false - {"enabled":false,"time":10,"switchOutletsLast":true} rampOff=false - {"enabled":false,"time":10,"switchOutletsLast":false}
2021-10-24 18:31:15.125 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Normales anschalten ohne Ramping für Esszimmer
2021-10-24 18:31:15.221 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: A Switching 0 hm-rpc.1.OEQ0106192.1.LEVEL to: true
2021-10-24 18:31:15.232 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: A Switching 1 hm-rpc.1.OEQ0570794.1.LEVEL to: true
2021-10-24 18:31:15.238 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: A Switching 2 hm-rpc.1.OEQ0106243.1.LEVEL to: true
2021-10-24 18:31:15.244 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: A Switching 3 hm-rpc.1.OEQ0570695.1.LEVEL to: true
2021-10-24 18:31:15.245 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching AutoOffTimed for Group 2 set time=300 LightGroups[Group].isMotion=true LightGroups[Group].autoOffTimed.noAutoOffWhenMotion=true
2021-10-24 18:31:15.245 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Timeout for Group=2 deleted.
2021-10-24 18:31:15.245 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching WhiteSubstituteColor for Group2 = Esszimmer LightGroups[Group].power=true LightGroups[Group].color =#FFFFFF
2021-10-24 18:31:15.245 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Warmweiss - ct=2700 (maxCt - minCt) / 4 + minCt=3650 (maxCt - minCt) / 4 * 3 + minCt=5550
2021-10-24 18:31:28.494 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered linked Sensor alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder.ACTUAL new value is true
2021-10-24 18:31:28.494 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching SummarizeSensors, Group=2
2021-10-24 18:31:28.494 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Gruppe=2 Sensor 0 with target alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder.ACTUAL has value true
2021-10-24 18:31:28.494 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Summarized IsMotion for Group 2 = true
2021-10-24 18:31:33.551 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered linked Sensor alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder.ACTUAL new value is true
2021-10-24 18:31:33.551 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching SummarizeSensors, Group=2
2021-10-24 18:31:33.551 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Gruppe=2 Sensor 0 with target alias.0.Bewegungsmelder.Esszimmer_Bewegungsmelder.ACTUAL has value true
2021-10-24 18:31:33.551 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Summarized IsMotion for Group 2 = true
2021-10-24 18:31:38.308 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: adaptiveCtLinear=0 adaptiveCtSolar=0 adaptiveCtSolarInterpolated=0
2021-10-24 18:31:38.317 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching WhiteSubstituteColor for Group0 = Flur OG. LightGroups[Group].power=false LightGroups[Group].color =#FFFFFF
2021-10-24 18:31:38.321 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching WhiteSubstituteColor for Group1 = Badezimmer OG LightGroups[Group].power=false LightGroups[Group].color =#FFFFFF
2021-10-24 18:32:05.452 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered linked Sensor alias.0.Bewegungsmelder.HWR_Bewegungsmelder.ACTUAL new value is false
2021-10-24 18:32:07.618 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered alias.0.Helligkeiten.Helligkeit_Einfahrt.LUX new value is 125
2021-10-24 18:32:07.618 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching AutoOnLux for Group:,0 enabled=false ,actuallux=125 ,minLux=50 LightGroups[Group].autoOnLux.dailyLock=false
2021-10-24 18:32:07.619 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered alias.0.Helligkeiten.Helligkeit_Einfahrt.LUX new value is 125
2021-10-24 18:32:07.619 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching AutoOnLux for Group:,1 enabled=false ,actuallux=125 ,minLux=50 LightGroups[Group].autoOnLux.dailyLock=false
2021-10-24 18:32:07.621 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Triggered Luxsensor alias.0.Helligkeiten.Helligkeit_Aussen.ACTUAL new value is 42
2021-10-24 18:32:07.621 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching RefreshGenericLuxValues
2021-10-24 18:32:07.621 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching AutoOnLux for Group:,2 enabled=false ,actuallux=42 ,minLux=50 LightGroups[Group].autoOnLux.dailyLock=false
2021-10-24 18:32:07.621 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching AutoOffLux, for Group=2 =Esszimmer
2021-10-24 18:32:07.621 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching AdaptiveBri for Group 2 actual Lux=42 generic lux=42
2021-10-24 18:32:07.621 - info: javascript.0 (1758245) script.js.Haus_allgemein.LightControl2: Reaching SetBrightness, Group=2 Brightness=10