tizzen33 / domoticz-tuyacloud-plugin

Connects Domoticz to the Tuya Cloud
4 stars 2 forks source link

RGBWW support #13

Closed Xenomes closed 4 years ago

Xenomes commented 4 years ago

Hi tizzen33,

I notice the update on tuya plugin for dimming, great job! is it possible to add RGBWW support?

Log Domoticz:

2020-08-19 14:18:59.995 Status: (Tuya Cloud) Started.
2020-08-19 14:19:02.154 (Tuya Cloud) Debug logging mask set to: PYTHON PLUGIN DEVICE CONNECTION MESSAGE
2020-08-19 14:19:02.154 (Tuya Cloud) onStart called
2020-08-19 14:19:02.154 (Tuya Cloud) Starting connection to Tuya Cloud
2020-08-19 14:19:02.390 (Tuya Cloud) Connection established.
2020-08-19 14:19:02.390 (Tuya Cloud) Getting devices ...
2020-08-19 14:19:02.618 (Tuya Cloud) Devices found:[{"data": {"brightness": "255", "color_mode": "white", "online": true, "state": "false", "color_temp": 10000}, "name": "LED SMART", "icon": "https://images.tuyaeu.com/smart/icon/ay1541056239985fDGjj/15620318474c719f1c5cf.png", "id": "bfa81b880e00ff2253o66a", "dev_type": "light", "ha_type": "light"}]
2020-08-19 14:19:02.618 (Tuya Cloud) Looping through tuya devices
2020-08-19 14:19:02.618 (Tuya Cloud) Creating device 'LED SMART'.
2020-08-19 14:19:02.619 (Tuya Cloud) Creating a light device with identifier bfa81b880e00ff2253o66a
2020-08-19 14:19:02.851 (Tuya Cloud) Tuya Cloud devices initialized.
2020-08-19 14:19:02.852 (Tuya Cloud) Heartbeat interval set to: 30.
2020-08-19 14:19:02.150 Status: (Tuya Cloud) Entering work loop.
2020-08-19 14:19:02.151 Status: (Tuya Cloud) Initialized version 0.1, author 'tizzen33'

Greetings Xenomes

tizzen33 commented 4 years ago

Hi

That should be doable.

I started developing the plugin for my power plug only but since it seems to be used for more and more devices, it might be better to rework the plugin and make use of the tuyaha package. That way, the plugin can support all devices available in the API: RGBWW lights, fans, power plugs, curtains, heater, air conditioners, ...

It will not be an easy job, but it will be more future proof than implementing the devices and actions one by one.

I'll look into it.

Xenomes commented 4 years ago

Perfect! Not a big issue, dimming is most used. If you need testing in the future please contact.

tizzen33 commented 4 years ago

Opened this issue for the plugin re-write: #14