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

Feedback for a closed window? #25

Open
metawops opened this issue Mar 30, 2023 · 2 comments
Open

Feedback for a closed window? #25

metawops opened this issue Mar 30, 2023 · 2 comments

Comments

@metawops
Copy link

metawops commented Mar 30, 2023

I'd love to have a Companion button on my Stream Deck have a green background color if a window (technically a window is a cover in HA) is closed and otherwise have it a red background color.
I don't see how this is possible currently six available "Change from ..." Feedback options don't seem to fit.
Am I correct? 😳
So that's an enhancement request then. 😊

The variable $(homeassistant:entity.cover.dachfenster.value) currently reports "closed" or "open" but I can't see how to make a Companion Feedback from that ... 🤔

@istnv
Copy link
Member

istnv commented Mar 30, 2023

Use the internal: Check variable value feedback.
Set the normal button color to the most common state (if it is usually closed, make the background red)
Set the feedback to:
'Variable': $(homeassistant:entity.cover.dachfenster.value)
'Operation': =
'Value': open
'Change style properties': Background, red

@metawops
Copy link
Author

Incredible!! I learned something new today, thanks to you, @istnv! 🙏
It works and I didn't know that I can make value comparisons with variable contents that way! 🎉🍾🥳💃🕺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants