Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Button state_display #381

Closed
matt8707 opened this issue Feb 16, 2024 · 0 comments
Closed

FR: Button state_display #381

matt8707 opened this issue Feb 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@matt8707
Copy link
Owner

Thanks - yes I see the logic now.
I think it would be useful to allow for decoupling the displayed 'state' on the button - for example I have a power socket which I would like to display the power draw attribute as the state for the button (which I now can thanks to the templates) but if I use that the button no longer goes 'on' since the 'state' is none of the values in the 'onStates' array you linked.

If the displayed state and 'on state' where 2 separate templates it would allow for that extra flexibility, since we could use templates to say for example if the entity_id state is > 10 output 'on' (which then matches against your static list).

Hopefully that makes sense and I'm not talking complete rubbish 😄

Originally posted by @realroywalker in #353 (comment)

@matt8707 matt8707 added the enhancement New feature or request label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant