unfoldedcircle/feature-and-bug-tracker

[feature request] Home Assistant button states inside activities

Opened this issue · 1 comments

Is there an existing issue for this?

  • I have searched the existing issues

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

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.