Hallo,
möchte bei der Lampe von Ikea TRADFRI bulb E27 WS opal 980lm zwei Schaltzustände haben.
Einmal "Warmlicht" mit einen bestimmten Farbton und einer bestimmten Helligkeit und einmal "Kaltlicht" mit einer bestimmten Helligkeit.
Diese möchte ich mit einen Homematic Wippschalter schalten, wenn ich länger auf der Taste (oben oder unten) bleibe.
Hierfür habe ich je ein Notify.
Leider funktioniert es nicht richtig. Es schaltet zwar zwischen Warm- und Kaltlicht um, die Helligkeit ändert sich aber nicht.
Rawdefinition zeigt folgendes an:
defmod WOH_Tradfri_SCHALTER_1_Notify_warm notify WOH_SCHALTER_1_Btn_02:Long.* set HUEDevice4 ct 360 ;;;; set HUEDevice4 bri 40
defmod WOH_Tradfri_SCHALTER_1_Notify_kalt notify WOH_SCHALTER_1_Btn_01:Long.* set HUEDevice4 ct 154 ;;;; set HUEDevice4 bri 254
Seltsamerweise sind zwischen den set Befehlen ;;;; (4x) obwohl ich in der DEF nur ;; (2x) geschrieben habe.
Wenn ich folgenden Befehl in der Befehlszeile einzeln ausführe, wird die Helligkeit geändert
set HUEDevice4 bri 40
Habe es auch schon versucht mit nur ; (1x) und mal mit und mal ohne Leerzeichen.
Was ist hier nicht richtig?
Vielen Dank
Grüße
Ruggy
ZitatWas ist hier nicht richtig?
Die Verwendung von zwei Semikolon, in der DEF ist es einfach nur eins.
edit:
nicht weit genug gelesen ;D, dann weiss ich auch nicht wenns mit nur einem nicht klappt.
Habe es jetzt nochmal geändert auf ein Semikolon.
Es funktioniert trotzdem nicht.
Aber in der "Raw definition" sind jedoch zwei Semikolon
Hier das List vom Notify für Warm:
Internals:
CFGFN
DEF WOH_SCHALTER_1_Btn_02:Long.* set HUEDevice4 ct 360 ; set HUEDevice4 bri 40
FUUID 635176e6-f33f-194f-b799-4f40251728b37b54
NAME WOH_Tradfri_SCHALTER_1_Notify_warm
NOTIFYDEV WOH_SCHALTER_1_Btn_02
NR 26385
NTFY_ORDER 50-WOH_Tradfri_SCHALTER_1_Notify_warm
REGEXP WOH_SCHALTER_1_Btn_02:Long.*
STATE 2022-10-25 18:55:13
TRIGGERTIME 1666716913.57872
TYPE notify
eventCount 9
Helper:
DBLOG:
state:
DbLog:
TIME 1666716834.58639
VALUE active
READINGS:
2022-10-25 18:53:54 state active
2022-10-25 18:55:13 triggeredByDev WOH_SCHALTER_1_Btn_02
2022-10-25 18:55:13 triggeredByEvent LongRelease 4_251 (to VCCU)
helper:
bm:
notify_Attr:
cnt 1
dmx -1000
dtot 0
dtotcnt 0
mTS 20.10. 18:27:41
max 4.10079956054688e-05
tot 4.10079956054688e-05
mAr:
set
WOH_Tradfri_SCHALTER_1_Notify_warm
room
Wohnzimmer
notify_Define:
cnt 9
dmx -1000
dtot 0
dtotcnt 0
mTS 22.10. 22:16:16
max 0.0862970352172852
tot 0.507627964019775
mAr:
HASH(0xa92ae98)
WOH_Tradfri_SCHALTER_1_Notify_warm notify WOH_SCHALTER_1_Btn_02:Long.* set HUEDevice4 ct 360 ;; set HUEDevice4 bri 180
notify_Exec:
cnt 221
dmx -1000
dtot 0
dtotcnt 0
mTS 23.10. 22:50:06
max 0.0110678672790527
tot 0.918282747268677
mAr:
HASH(0xa92ae98)
HASH(0x480c060)
notify_Set:
cnt 54
dmx -1000
dtot 0
dtotcnt 0
mTS 23.10. 22:49:47
max 0.000220060348510742
tot 0.00589966773986816
mAr:
HASH(0xa92ae98)
WOH_Tradfri_SCHALTER_1_Notify_warm
?
Attributes:
room Wohnzimmer
HUEDevice erlaubt das kombinieren mehrere parameter mit :
also: set HUEDevice4 ct 360 : bri 40
Funktioniert auch nicht.
Aber mir ist jetzt erst aufgefallen, dass sich im Device (DeviceOverview und in den Readings) die Werte richtigerweise ändern, aber das Licht (die Helligkeit) in Wirklichkeit nicht.
Wenn ich im Device den "Schieberegler" im "DeviceOverview" ändere, ändert sich auch die Helligkeit.
Im Eventmonitor wird folgendes angezeigt:
habe erst Kalt (Farbton 250, Helligkeit 254) geschalten.
2022-10-25 19:49:39 HUEDevice HUEDevice4 bri: 254
2022-10-25 19:49:39 HUEDevice HUEDevice4 ct: 250 (4000K)
2022-10-25 19:49:39 HUEDevice HUEDevice4 pct: 100
2022-10-25 19:49:39 HUEDevice HUEDevice4 on
2022-10-25 19:49:39 HUEDevice HUEDevice4 rgb: ffe4ce
2022-10-25 19:49:42 HUEDevice HUEDevice4 reachable: 1
2022-10-25 19:49:42 HUEDevice HUEDevice4 lastseen: 2022-10-25T17:49Z
und dann Warm (Farbton 360, Helligkeit 40)
2022-10-25 19:49:46 HUEDevice HUEDevice4 lastseen: 2022-10-25T17:49Z
2022-10-25 19:50:28 HUEDevice HUEDevice4 bri: 40
2022-10-25 19:50:28 HUEDevice HUEDevice4 ct: 360 (2777K)
2022-10-25 19:50:28 HUEDevice HUEDevice4 pct: 16
2022-10-25 19:50:28 HUEDevice HUEDevice4 dim18%
2022-10-25 19:50:28 HUEDevice HUEDevice4 rgb: ffc89b
2022-10-25 19:50:30 HUEDevice HUEDevice4 reachable: 1
2022-10-25 19:50:30 HUEDevice HUEDevice4 lastseen: 2022-10-25T17:50Z
Hey.
Hast du es mal versucht anders herum zu schalten?
Ich verwende in meiner myUtils:
fhem("set 01_led brightness $LightDimLevel");
fhem("set 01_led ct $LightTemperatur");
Das funktioniert. Hat aber den Effekt, das man den Farbwechsel sieht. Die Lampe hat den "alten" Farbwert beim Einschalten und wechselt dann.