Hallo zusammen,
auch ich habe erfolgreich einige Action-Leuchtmittel über Tuya-MQTT laufen. Ich habe allerdings noch das Problem dass ich leider Farbwerte im Color-Mode der RGB Leuchtmittel nicht steuern kann (Ich stelle mir einen Colourpicker vor). Sämtliche Versuche meinerseits sind bisher kläglich gescheitert. Hier mein bisheriger Code für die Leuchte im White-Modus:
#
# --------------------------------------------------------------------------------------------------------------------
# Action RGB Birne
# --------------------------------------------------------------------------------------------------------------------
#
define TuyaLampe MQTT_DEVICE
setuuid TuyaLampe 6182947b-f33f-8aeb-721c-91ba75c6f0d8f6e4
attr TuyaLampe devStateIcon on:light_light_dim_100@yellow off:light_light_dim_100@black
attr TuyaLampe eventMap true:on false:off
attr TuyaLampe group Tuya
attr TuyaLampe icon light_pendant_light
attr TuyaLampe publishSet true false tuya/ledsmart/dps/1/command
attr TuyaLampe room Spielwiese
attr TuyaLampe sortby 3B
attr TuyaLampe subscribeReading_state tuya/ledsmart/dps/1/state
attr TuyaLampe webCmd on:off
#
define TuyaLampe_Modus MQTT_DEVICE
setuuid TuyaLampe_Modus 6182989d-f33f-8aeb-db10-2242a71979201275
attr TuyaLampe_Modus eventMap colour:colour weiss:weiss
attr TuyaLampe_Modus group Tuya
attr TuyaLampe_Modus icon light_pendant_light
attr TuyaLampe_Modus publishSet true false tuya/ledsmart/dps/2/command
attr TuyaLampe_Modus room Spielwiese
attr TuyaLampe_Modus sortby 3B
attr TuyaLampe_Modus subscribeReading_state tuya/ledsmart/dps/2/state
attr TuyaLampe_Modus webCmd colour:white
#
define TuyaLampe_Weiss_Helligkeit MQTT_DEVICE
setuuid TuyaLampe_Weiss_Helligkeit 6183b41f-f33f-8aeb-5f85-62f4a3387a46e70e
attr TuyaLampe_Weiss_Helligkeit group Tuya
attr TuyaLampe_Weiss_Helligkeit icon light_pendant_light
attr TuyaLampe_Weiss_Helligkeit publishSet state tuya/ledsmart/dps/3/command
attr TuyaLampe_Weiss_Helligkeit room Spielwiese
attr TuyaLampe_Weiss_Helligkeit subscribeReading_state tuya/ledsmart/dps/3/state
attr TuyaLampe_Weiss_Helligkeit webCmd state
attr TuyaLampe_Weiss_Helligkeit widgetOverride state:slider,3,1,255
#
define TuyaLampe_Weiss_Farbe MQTT_DEVICE
setuuid TuyaLampe_Weiss_Farbe 6183b6e8-f33f-8aeb-26b7-c0398465d8ce7b07
attr TuyaLampe_Weiss_Farbe group Tuya
attr TuyaLampe_Weiss_Farbe icon light_pendant_light
attr TuyaLampe_Weiss_Farbe publishSet state tuya/ledsmart/dps/4/command
attr TuyaLampe_Weiss_Farbe room Spielwiese
attr TuyaLampe_Weiss_Farbe subscribeReading_state tuya/ledsmart/dps/4/state
attr TuyaLampe_Weiss_Farbe webCmd state
attr TuyaLampe_Weiss_Farbe widgetOverride state:slider,0,1,255
Kann mir jemand mit einem Colorpicker weiterhelfen?
Vielen Dank im Vorraus.