I am in the process of migrating from SmartThings to Home Assistant. Until I get a Zigbee stick I will be using the SmartThings integration. I was able to configure in automations.yaml a button that turns on a light on or off depending on the state of the button (value = pushed, or double)
What I haven’t figured out is how to control more than one light with the push of a button. Could I replace the entity with a scene, for example called MezzanineLights? I was able to configure scenes that does this, works great in Lovelace.
Also, how would I go about if I would like to associate more than one entity to the push of a button?
Would it be possible to adjust the code snippet below for both scenarios? Trying to learn, perhaps I didn’t look at the right place, but as a beginner I feel that often the documentation assumes one is past the beginner stage and knows what to do. As others pointed out, the learning curve is very steep for a beginner, every step is a struggle (in my case that included setting up duckdns, getting a smarthings token, figuring out how to edit automations.yaml…).
- id: MezzanineButtonPressedOnce
alias: Mezzanine Button Pressed Once