Replies: 9 comments 3 replies
|
That won't work. As cover considers 1-99% open and 100% closed, flipping that, will result in 1-99% closed and 100% to be open. That behavior is odd. |
Then just use the templates already available? 🤷 ../Frenck |
|
Hi Frenck, for me it would be useful too. Just invert 100 to 0 and 0 to 100. Means - for the command "open cover livingroom", currently it will close because they are false mounted but I cannot get an electrician to fix it - that is the reason why I like to inverse them. The original cover entity still exists where I can work with percentage. Just the "virtual" inversed cover will close or open inversed. |
|
Hi, may I kindly ask to continue the discussion here? I'm also interested in inverting the open/close logic for my awning. Thanks! |
|
Hi Frenck, hope you're well! With @meiser79 bringing this up again, I thought it might be worth a quick recap. Just a small note on your earlier reply. You mentioned "1-99% open and 100% closed," but the dev docs and user experience actually define it as 0% = closed and 1-100% = open (referring to how open is the window). Wanted to clarify in case that changes how you see the feasibility. What many of us would love: An inverse helper for covers that flips the position (0 and 100) and correctly maps the open/closed state accordingly. So that we'd get: 0% = open (window is not covered) and 1-100% = closed (window is covered or partially covered). The existing template cover workaround could also help, but unfortunately falls short, because value_template and position_template can't be set independently. Inverting position causes HA to derive the wrong state. This has been a long-standing wish across the community (the 2020 WTH thread, 10+ forum posts, affecting KNX, Z-Wave, Somfy, MQTT, Tuya, ESPHome users and more). Interestingly, the WTH thread also revealed that opinions split along cultural and professional lines: engineers and native English speakers tend to read 100% as "100% open" (like a valve), while many European users read it as "100% covered." Neither side is wrong, which is exactly why a configurable inversion is the only fair solution. Spook's inverse helper feels like it could be the most elegant path forward in the absence of a HA core solution. Thank you for all the amazing work on Spook and HA! 🙏 |
|
Hi @frenck, I noticed that #1327 (Add inverse cover helper support) was closed today without being merged, and I wanted to follow up here rather than on the PR itself, since this thread is where the request originally came from. I'll be honest, I was quietly hopeful when that PR appeared back in June. From the outside it looked like it did exactly what this thread has been asking for since 2024: inverted position, a correctly derived open/closed state, and the commands mapped accordingly. It also seemed to line up with your earlier reply here, where you said you'd be happy to accept a PR that adds working inverse logic for covers. Of course it's your project and entirely your call what goes in, and I fully respect that. But if you have a moment, would you mind sharing what the blocker was? Whether it was the semantics, the maintenance burden, edge cases like tilt, covers without position support or stop behaviour, or simply that this isn't a direction you want Spook to go in. Even a single line would genuinely help, because this is still one of the most requested ideas in the repo and people keep landing here looking for an answer. If it's more a question of validation than direction, I'm very happy to test the branch on my own setup (Somfy shutters via the VELUX gateway and HomeKit, plus Zigbee covers) and report back with real-world results. And if the honest answer is that it's not going to happen, that's completely fine too. Knowing it would at least let those of us following this thread stop waiting and invest in our own workarounds instead. Either way, thank you for everything you do for Spook and for Home Assistant. 🙏 |
|
Thanks for clearing that up 😄 One thing worth knowing before you spend time on it, from trying to build this for myself... I was able to make the backend helper half working: inverting position, deriving closed from the helper's own position (0% = open, 1-100% = closed), leaving the commands alone. A fully lowered shutter then reads 100% and closed. However, I wasn't able to solve the visual half: So: is the slider direction settled for good, or is there a path? That one answer decides whether the visual side is worth anyone's time, or stays a custom card forever.
|



Uh oh!
There was an error while loading. Please reload this page.
Would it be possible by any chance to extend to inverse helper feature to support cover entity type as well?
This discussion is popping up from time to time, one of the better threads about the topic is here: https://community.home-assistant.io/t/cover-entities-that-are-0-open-and-100-closed/581979
In summary, it would be more than helpful for many of us to see an inverse logical interpretation of “open” and “closed” for a cover, meaning 0% = open and 100% = closed.
All reactions