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.
I dont see how that is going “toggle” my lights, tap either of the buttons and the scene is called, but how do I get the lights to go off again, with the same action?
Having a closer look at the Automations UI, of the back of the trigger you have suggested, could I have a call service toggle a switch? then have the “lights on” scene activate when the switch comes on, and “lights off” activate when it’s off in another automation?
Thanks for the direction, Im very good at missing the simple route
That’s the right direction thanks so much! back on the boat next weekend, it’s annoying, I’m going to build the automation now. But won’t actually be able to press the button in question for a week and ill be sure to mark your message as “solved” if that’s me sorted.
Thanks Fedot, the logical mistake i was making was to try and do everything with “scenes” I used to install big-boy Lutron and in that, scenes where king. Using lighting groups to make logical lighting entities out of discreet “lights” is exactly what i was after.