ollo69 / ha_tuya_custom

Tuya Custom Component for testing
Apache License 2.0
39 stars 18 forks source link

Problem scripts with brightness and color setting #13

Open SmartM-ui opened 4 years ago

SmartM-ui commented 4 years ago

Hi, I have found that the Scripts that I use to set the brightness and color on Home Assistant, even if I immediately turn on the bulbs with the chosen intensity and color, but the change of state is displayed on Home Assistant after many seconds of waiting.

Another curiosity, if the brightness and color are set by script, for example by setting to 75, after a few seconds from switching on, the brightness in the bulb control panel is set to 255, while in reality the brightness of the bulb remains unchanged (75).

The code, very simple, is the following:

light_salon_red_on: alias: Red Salon Lights ON sequence:

If you do not set the brightness or color in the script, the status change display is shown immediately by Home Assistant.

Is it possible to speed up the status change also leaving the possibility to set brightness and color from Home Assistant?