Hi,
I have a Tuya controlled light which I am having a problem with. I can set it to white mode but at certain times I wish to change it to deliver colour. I can use Home Assistant to change between White mode and Color mode if accessing the device on the entity screen but I cannot seem to get it to switch to colour using a script. A copy of the script is shown below:
alias: Bathroom Purple
sequence:
- service: light.turn_on
data:
color_name: purple
effect: color_mode
target:
entity_id: light.bathroom_light
mode: single