I have a ceiling light, I reversed the payload but I would need guidance on writing the device description yaml #1405
Replies: 1 comment
-
Based on the (current documentation)[https://github.com/make-all/tuya-local/blob/main/custom_components/tuya_local/devices/README.md] and the information you've provided, this isn't possible via YAML.
The situation might be different if there was another dps (say dps 1 is a simple on/off switch). In order to represent this:
If you know how to do this in python. It's probably easier to write your own custom integration using tinytuya (the uptodate fork of pytuya) to do the heavy lifting. I'd use the CoordinatorEntity built in to HomeAssistant to coordinate the data push between the two light entities. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My ceiling light is composed of 1 white and 1 colors light that can be controlled separatetly by tuya apps, so in home assistant I would like to represent it as 2 devices.
here is the "Mix light" payload composition in bytes:
The tuya app first send a "Mix Light" DP id:51, and if the light is off send a on on the DP id:20. I know how to implements this directly in python, but I have no Idea on how, or even if it possible, to accomplish this in yaml. Could someone help me ?
Beta Was this translation helpful? Give feedback.
All reactions