bitfocus / companion-module-homeassistant-server

MIT License
12 stars 7 forks source link

Feedback for a closed window? #25

Open metawops opened 1 year ago

metawops commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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! πŸŽ‰πŸΎπŸ₯³πŸ’ƒπŸ•Ί