Has there been any progress with this? As others here I can control the top half with the standard light.turn_on function but not bottom:
service: light.turn_on
data:
color_name: cyan
brightness_pct: 100
device_id:
- 741680f7bbf68b70d7b9d737a1fb1c6d
If somebody more versed in delving into the function behind light.turn_on could provide some pointers with how we can control the bottom half progmatically (i.e. what’s happening under the hood) I’m happy to provide some debug info?
I’ve logged into the Tuya IOT debug platform as the following is available:
Standard Instruction Set
switch_led Boolean
"{true,false}"
work_mode Enum
{
"range": [
"colour",
"scene",
"music"
]
}
colour_data Json
{
"h": {
"min": 0,
"scale": 0,
"unit": "",
"max": 360,
"step": 1
},
"s": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"v": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
}
}
countdown Integer
{
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
music_data Json
{
"change_mode": {
"range": [
"direct",
"gradient"
]
},
"bright": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"temperature": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"h": {
"min": 0,
"scale": 0,
"unit": "",
"max": 360,
"step": 1
},
"s": {
"min": 0,
"scale": 0,
"unit": "",
"max": 255,
"step": 1
},
"v": {
"min": 0,
"scale": 0,
"unit": "",
"max": 255,
"step": 1
}
}
scene_data Json
{
"scene_num": {
"min": 1,
"scale": 0,
"max": 8,
"step": 1
},
"scene_units": {
"unit_change_mode": {
"range": [
"static",
"jump",
"gradient"
]
},
"unit_switch_duration": {
"min": 0,
"scale": 0,
"max": 100,
"step": 1
},
"unit_gradient_duration": {
"min": 0,
"scale": 0,
"max": 100,
"step": 1
},
"bright": {
"min": 0,
"scale": 0,
"max": 1000,
"step": 1
},
"temperature": {
"min": 0,
"scale": 0,
"max": 1000,
"step": 1
},
"h": {
"min": 0,
"scale": 0,
"unit": "",
"max": 360,
"step": 1
},
"s": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"v": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
}
}
}
looking at the device logs I get this when I change the colour via the Tuya app (which can control the top and bottom of the light)
Time|Device Event|DP ID|Event Details|Source|Source Details
2024-02-10 11:27:21|Report|Paint Colour|AQEdAXgD6AEdAXgD6A==|device itself
2024-02-10 11:27:21|Report|Color|011d017803e8|device itself
2024-02-10 11:27:21|Publish|Paint Colour|AQEdAXgD6AEdAXgD6A==|app client appName:Tuya Smart,ios-packageName:com.tuya.smart,android-packageName:com.tuya.smart,model:VOG-L29,os_system:10,app_version:5.9.2. App uid: ***
and when via home assistant:
|2024-02-10 11:26:05|publish by cloud api|publish by cloud api|success|open api|cloud2cloud|
|2024-02-10 11:26:05|Publish|ON/OFF|ON|cloud2cloud||
|2024-02-10 11:26:05|Publish|Mode|Color|cloud2cloud||
|2024-02-10 11:26:05|Publish|Color|005002f403e8|cloud2cloud|
Is there a standard way to have this looked into?