Hi all.
I would be very happy if you could help me further.
I have been using Home Assistant for quite a while, but usually with pre-made scripts and blueprints.
e.g. I have four Ikea Tradfri lamps hanging above the dining table, I have grouped them in the “dining room” area.
For these I have created different scenes with different colors:
- All lamps blue
- All lamps green
- etc.
At the moment I switch these lamps via the app on the phone in the different scenes.
Now I got myself a switch: The Ikea Styrbar.
Here I have now found the corresponding Blueprint for this switch:
https://community.home-assistant.io…-remote-styrbar-for-lights-e2001-e2002/384482
This works first as it should: with the two buttons for brightness I can make the brightness of all lamps in the area “dining room” brighter and darker, as well as off.
Now I also want to use the left and right buttons to switch between the different scenes, i.e. colors.
For this someone posted a script in this thread:
https://community.home-assistant.io…mote-styrbar-for-lights-e2001-e2002/384482/16
Now the problems start:
I don’t understand how to integrate this script.
What I have done so far:
Image 1:
Copied the script as it is there into the file “scripts.yaml”. There is nothing else in it.
This file is included in the “configuration.yaml” with: “script: !include scripts.yaml”.
Image 2:
Then the thread says: “You have to create an input_select helper containing all the entity IDs of the desired scenes.”
So I created a “helper”, a “dropdown” with the name “Change light dining room”.
Now this is where the problem starts: How should I correctly include the individual color scenes as options in this dropdown? If I look in the scene “Blue”, then it says there for example at entity ID: “scene.blue”.
So I added “scene.blue” at “add option” in the dropdown and also all other color scenes.
Image 3:
Next I go to the already created automation “You have to create an input_select helper containing all the entity IDs of the desired scenes.” from the Blueprint.
There I go to “Right button - short press” and then comes the next problem: How do I include the created dropdown helper here correctly?
I tried it via “Run service”, then “Selection field: Next”.
And then set the entity “Change light dining room”.
Saved everything and? Nothing. Nothing happens when I press the right button.
I can’t explain it, where is the error?
I must admit, I still lack some basic understanding in Home Assistant, although I have now really many hours of reading up and watching videos.
Thank you very much for your help!