I am trying to add my device to Tuya. It's a rgb light.
I have figured out how to get the light to add, but I can't get the colour_data to work.
Below is my temporary code I was using. I tried adding other fields like color_data but that did nothing.
"bzyd": (
TuyaLightEntityDescription(
key=DPCode.SWITCH_LED,
name="Light",
),
),```
Below is the configuration from diagnostics...
in function section:
"switch_led": {
"type": "Boolean",
"value": {}
},
"colour_data": {
"type": "Json",
"value": {}
},```
In status_range section
"type": "Boolean",
"value": {}
},
"colour_data": {
"type": "String",
"value": {}
},```
In status section:
``` "status": {
...
"colour_data": {
"h": 60,
"s": 1000,
"v": 170
},
...