I’m rather noob in HA, so I believe I might be just doing something wrong.
Basically what I have is bunch of smart light bulbs and bunch of smart buttons. And what I need is to “connect” button clicks with light toggle actions.
HA UI is kind of straightforward → go the the device, to Automations section, click +
, “Do something when…” → “button is pressed”, then add action “Toggle the light”. Kind of easy. But then it asks you to “name” this “automation”. Okay, “toggle lights bedroom”. And here it goes… Now I have “toggle lights bedroom button 2”, “toggle lights bedroom double click button 3”, “toggle lights bathroom motion sensor” and who knows what, like around 20 “automations” with names like “<device> + <trigger> + <1…N>”. For the smart plag which I need to be turned on only at night I have two automations: “Turning plug on with sunset” and “Turning plug off with sunrise”.
This feels already too much and pure spaghetti-“code”. How am I supposed to do this in a “proper” way? What am I doing wrong?
Initially I was expecting a “simple” connection, trigger+device action, I don’t really need to have a special name for it. But it’s not like this apparently.
P.S. While I’m a software developer and perfectly fine with writing code/yaml, I still like simplicity of UI while it can solve my problems.