ha_tuya_custom icon indicating copy to clipboard operation
ha_tuya_custom copied to clipboard

Problem scripts with brightness and color setting

Open SmartM-ui opened this issue 4 years ago • 0 comments

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:

  • date: brightness: 75 RGB_COLOR:
    • 255
    • 0
    • 0 entity_id: light.lampade_salone service: light.turn_on

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?

SmartM-ui avatar Jul 06 '20 23:07 SmartM-ui