unfoldedcircle / feature-and-bug-tracker

Feature and bug tracker repository for Unfolded Circle products
21 stars 0 forks source link

[feature request] Home Assistant button states inside activities #384

Open rob-cohen opened 1 week ago

rob-cohen commented 1 week ago

Is there an existing issue for this?

Description

It would be very nice to be able to see button states inside activities that work similar to HA remote buttons. The state could be controlled by binary sensors or it could use entities built with switch templates and/or button templates. It would be very nice to be able to see button states inside activities that work similar to HA remote buttons. The state could be controlled by binary sensors or it could use entities built with switch templates and/or button templates.

Here is an example of my HA remote with buttons showing states: ha-home

Thanks!

Additional context

No response

rob-cohen commented 1 week ago

Expanding a bit... With the button states, I can think of 2 ideas. 1) Allowing a binary_sensor to be specified to control the displayed state of HA script buttons. 2) Allowing buttons for HA switches, which have a state property and toggle action. That could work for existing switches and allow user customization using HA's template switches.

I don't really have a preference, since both are highly flexible and solve the problem. #1 would save the step of creating template switches for every button. #2 would immediately work for switches people have without any text file editing. I notice that some HA entities also have on/off settings, so it might be possible to generalize beyond switches to support more entities. Not sure how that works.