Hello!
I have got Home assistant playing relly well with ESPHome on my narrowboat. it’s going really well using the app to control my lighting, but I’m starting to install some momentary buttons (that show up as binary sensors in Hass) so people without the app can also turn lights on and off, and now I need to build some automations, and I’m having a hard time getting started, it’s probably just me not looking from the right perspective at the logic, pointers greatly appreciated, not expecting anyone to solve this for me
So, in the master bedroom, I have two sets of high level LED tape, “Starboard white LED’s” and “Port White LEDs” and I have Hass scenes for “Bedroom while light on” and “Bedroom all off”. In that room, I have two momentary buttons, that show up as binary sensors in Hass.
The behaviour I would like is that a press of either of the momentary buttons, to toggle a “something”, say let’s call it “Bedroom White light demand” and have that “something” call the scenes, typing this out I have uncovered my first gap in knowledge, what should that “something” be Im assuming a switch?
So I have had a little look at switch.template
but I can’t seem to see how I would ingress an if_pressed
for the binary sensors into the template?
And hints and tips would be greatly appreciated, be they down the switch.template
path, or something I have missed entirely.
1 post - 1 participant