31_LightScene.pm - Warnung und fehlende Funktion

Begonnen von P.A.Trick, 29 Oktober 2020, 10:36:14

Vorheriges Thema - Nächstes Thema

P.A.Trick

Meine Lichtszene muckt herum, nachdem ich gestern eine neue Ikea Lampe mit hinzugenommen habe.

Definition der Lampe:
defmod UG.AZ.Schreibtischleuchte HUEDevice 26  IODev=deCONZ
attr UG.AZ.Schreibtischleuchte userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
attr UG.AZ.Schreibtischleuchte IODev deCONZ
attr UG.AZ.Schreibtischleuchte alias Arbeitszimmer Schreibtischleuchte
attr UG.AZ.Schreibtischleuchte color-icons 2
attr UG.AZ.Schreibtischleuchte devStateIcon {(HUEDevice_devStateIcon($name),"toggle")}
attr UG.AZ.Schreibtischleuchte event-on-change-reading (?!(^(lastseen))).*
attr UG.AZ.Schreibtischleuchte group Schalter
attr UG.AZ.Schreibtischleuchte icon light_office_desk@grey
attr UG.AZ.Schreibtischleuchte model TRADFRI bulb E14 CWS opal 600lm
attr UG.AZ.Schreibtischleuchte room UG.Arbeitszimmer
attr UG.AZ.Schreibtischleuchte subType colordimmer
attr UG.AZ.Schreibtischleuchte webCmd on:off

setstate UG.AZ.Schreibtischleuchte dim93%
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:29:28 alert none
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:29:28 bri 253
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:29:28 colormode ct
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:29:28 effect none
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:29:28 hue 32091
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:32:08 lastseen 2020-10-29T09:30Z
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:29:28 onoff 1
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:29:28 pct 99
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:29:28 reachable 1
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:29:28 rgb 000000
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:29:28 sat 0
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:29:28 state dim93%
setstate UG.AZ.Schreibtischleuchte 2020-10-29 10:29:28 xy 0.3136,0.3238




Hier die def der Szene:

defmod ls_Arbeitszimmer LightScene UG.AZ.Schreibtischleuchte UG.AZ.PC UG.AZ.LED.Decke UG.AZ.Leuchtstofflampen UG.AZ.Monitorleuchte UG.AZ.Playbar
attr ls_Arbeitszimmer alias Arbeitszimmer
attr ls_Arbeitszimmer genericDeviceType ignore
attr ls_Arbeitszimmer group LightScene
attr ls_Arbeitszimmer icon hue_filled_storylight@grey
attr ls_Arbeitszimmer lightSceneRestoreOnlyIfChanged 1
attr ls_Arbeitszimmer room System->House
attr ls_Arbeitszimmer showDeviceCurrentState 0
attr ls_Arbeitszimmer verbose 3
attr ls_Arbeitszimmer webCmd scene

setstate ls_Arbeitszimmer Arbeiten
setstate ls_Arbeitszimmer 2020-10-29 10:30:06 state Arbeiten


Szene "Arbeiten" als Config:

UG.AZ.LED.Decke: on
UG.AZ.Leuchtstofflampen: off
UG.AZ.Monitorleuchte: bri 254 : ct 154
UG.AZ.PC: on
UG.AZ.Playbar: bri 254 : ct 154
UG.AZ.Schreibtischleuchte: bri 253 : ct 154
UG.AZ.Schreibtlischleuchte: bri 254 : ct 154


OK


Hier nun der Fehler. Mir ist weiterhin aufgefallen, dass teilweise die RGB Werte der Ikea Lampe
sehr merkwürdig aussehen. Ich habe vergessen dieses Format zu sichern.
Insgesamt funktioniert die Lampe nicht mit den einzelnen Szenen.

2020.10.29 10:30:06.527 1:     main::CallFn                        called by fhem.pl (755)
2020.10.29 10:30:06.527 1:     main::telnet_Read                   called by fhem.pl (3809)
2020.10.29 10:30:06.527 1:     main::AnalyzeCommandChain           called by ./FHEM/98_telnet.pm (255)
2020.10.29 10:30:06.527 1:     main::AnalyzeCommand                called by fhem.pl (1098)
2020.10.29 10:30:06.527 1:     main::CommandSet                    called by fhem.pl (1247)
2020.10.29 10:30:06.527 1:     main::DoSet                         called by fhem.pl (1947)
2020.10.29 10:30:06.527 1:     main::CallFn                        called by fhem.pl (1915)
2020.10.29 10:30:06.527 1:     main::LightScene_Set                called by fhem.pl (3804)
2020.10.29 10:30:06.526 1:     main::LightScene_RestoreDevice      called by ./FHEM/31_LightScene.pm (743)
2020.10.29 10:30:06.526 1:     main::LightScene_SaveDevice         called by ./FHEM/31_LightScene.pm (567)
2020.10.29 10:30:06.526 1:     main::__ANON__                      called by ./FHEM/31_LightScene.pm (534)
2020.10.29 10:30:06.526 1: stacktrace:
2020.10.29 10:30:06.526 1: PERL WARNING: Use of uninitialized value $1 in concatenation (.) or string at ./FHEM/31_LightScene.pm line 534.


Andre kannst du evtl. helfen?
Vielen lieben Dank im Voraus!
Cubietruck,RPI,QNAP Ts-419p+, FS20, FRITZ!DECT200, 7 MAX! Thermostate, 3 MAX! Fensterkontakte, Kodi, CUL V3.3, EM1000S, LW12, LD382, HUE, HM-CFG-USB-2, 1x HM-LC-SW1-FM, 2x HM-LC-SW2-FM, 2x HM-LC-Sw1PBU-FM, 3xHM-LC-Bl1PBU-FM,HM-SEC-RHS, 2xHM-SEC-SD,HM-WDS30-T-O, 3x HM-LC-Dim1TPBU-FM, RPI+AddOn

amenomade

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

P.A.Trick

Zitat von: amenomade am 30 Oktober 2020, 00:31:47
Was ist UG.AZ.Schreibtlischleuchte in der Config?

Danke das war ein Vertipperlie. Ich hab's entfernt.
Cubietruck,RPI,QNAP Ts-419p+, FS20, FRITZ!DECT200, 7 MAX! Thermostate, 3 MAX! Fensterkontakte, Kodi, CUL V3.3, EM1000S, LW12, LD382, HUE, HM-CFG-USB-2, 1x HM-LC-SW1-FM, 2x HM-LC-SW2-FM, 2x HM-LC-Sw1PBU-FM, 3xHM-LC-Bl1PBU-FM,HM-SEC-RHS, 2xHM-SEC-SD,HM-WDS30-T-O, 3x HM-LC-Dim1TPBU-FM, RPI+AddOn

amenomade

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

P.A.Trick

Cubietruck,RPI,QNAP Ts-419p+, FS20, FRITZ!DECT200, 7 MAX! Thermostate, 3 MAX! Fensterkontakte, Kodi, CUL V3.3, EM1000S, LW12, LD382, HUE, HM-CFG-USB-2, 1x HM-LC-SW1-FM, 2x HM-LC-SW2-FM, 2x HM-LC-Sw1PBU-FM, 3xHM-LC-Bl1PBU-FM,HM-SEC-RHS, 2xHM-SEC-SD,HM-WDS30-T-O, 3x HM-LC-Dim1TPBU-FM, RPI+AddOn

amenomade

Was passiert, wenn Du ein
set UG.AZ.Schreibtischleuchte bri 253 : ct 154machst?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

P.A.Trick

Das Kommando wird (manchmal) ausgeführt. Ich bin mir nicht sicher, ob es an deCONZ liegt oder an FHEM.
Wenn ich zum Beispiel:

set UG.AZ.Schreibtischleuchte bri 53 : ct 154

setze, flackert die Lampe nur kurz.
Aber das ist noch ein weiteres Thema. Ansonsten gibt es keine Fehlermeldung o.ä. im Log.
Cubietruck,RPI,QNAP Ts-419p+, FS20, FRITZ!DECT200, 7 MAX! Thermostate, 3 MAX! Fensterkontakte, Kodi, CUL V3.3, EM1000S, LW12, LD382, HUE, HM-CFG-USB-2, 1x HM-LC-SW1-FM, 2x HM-LC-SW2-FM, 2x HM-LC-Sw1PBU-FM, 3xHM-LC-Bl1PBU-FM,HM-SEC-RHS, 2xHM-SEC-SD,HM-WDS30-T-O, 3x HM-LC-Dim1TPBU-FM, RPI+AddOn

amenomade

Wenn das Device auf Farbmodus ist, und Du nur ct (Color Temperature) setzt, ändert sich colormode?

Das Problem in der Log ist eigentlich, dass dein Licht kein Reading "ct" im Weismodus hat.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus