Hi there,
Hopefully someone can help with this, as I’ve been driving myself mad for a few days now trying to get it to work.
Recently upgraded from an older version of hassio (around 0.9x) to version 0.103.4 and all my scenes that worked perfectly stopped working. Did some research with Google and realised things had changed in the update, and I needed to migrate them to scripts.
I have done this, but they just don’t work as expected, and by that I mean my puny brain can’t get them to work.
test123:
alias: script_test
sequence:
- data:
brightness: 255
color_name: snow
entity_id: group.kitchen_lights
service: homeassistant.turn_on
- data:
brightness: 255
color_name: snow
entity_id: group.kitchen_spotlights
service: homeassistant.turn_on
- data:
brightness: 255
color_name: snow
entity_id: group.kitchen_cooker_lights
service: homeassistant.turn_on
This is how I have one of the scripts setup. In the old scene setup, I changed colors using RGB values, but I tried color_name for this particular example as RGB didn’t seem to work either. They are Tuya lightbulbs (GU10 spotlights) that are setup as groups if that makes any difference.
In this example, I setup 3 different groups of lights in the kitchen as in some scenes I change the color / brightness of individual areas so they each need their own properties.
Problems :
-
If the light is turned off, the light does come on, but there is a long delay. If I have 3 groups to turn on in the script, then they are turned on one after the other, but there is a 3-6 second delay between each group making it seem clumsy and slow
-
The other problem is, the light color is not altered by the script. As an example, if I manually changed the light colour to red, the above script would not change the colour from red to white as expected
I’ve tried creating the scripts in the GUI, as well as in scripts.yaml, as well as different ways of formatting from here, Google and Reddit and I just can’t seem to make progress
Please can someone tell me what I’m doing wrong? This seems way more difficult than before, I setup all of my old scenes in about 20 mins and they all worked reliably until now.
Thanks for taking the time to read, any help or criticism would be welcome and appreciated.