Allow inverting the state of a cover entity #983
Replies: 3 comments
-
I am just noting here that in Shelly Gen2 (Gen1 is based on closed=0) we report the state from the device, not based on position: While this is not common and may happen due to a problem, I have already seen that, the device lost position, reported that the position is unknown but the cover is closed (since the last direction moved until consumption was 0), you can claim that the device also knows that the position is 0, I don't know the reasons to report closed without a percentage but they may be logic behind that. I think that a default |
Beta Was this translation helpful? Give feedback.
-
I think this would be a neat addition to the cover entity. My use case would be a projector screen, which is closed when retracted while open when pulled out. Totally opposite the behaviour of the cover entity. |
Beta Was this translation helpful? Give feedback.
-
Slightly related, I have an awning which has correct states (closed means not deployed, open means deployed) and correct positions (0 means not deployed and 100 means fully deployed), but the slider to set a specific condition shows what I interpret as a deployed cover when the position is 0 and what I interpret as a closed cover when the position is 100. So a method to invert that behavior would be awesome. |
Beta Was this translation helpful? Give feedback.
-
Proposal
Add an entity option to invert the state of a cover; an
open
cover will beclosed
and aclosed
cover will beopen
. Also, the cover's position should be inverted.Complications
Covers have two properties corresponding to their open/closed state:
is_closed
- Returns a boolcurrent_cover_position
- Returns an integer 0..100 where where 0 means closed and 1..100 means openJust inverting
is_closed
won't work because position 0 will then mean open and 1..100 will mean closed.Possible way forward could be to:
is_closed
based on thecurrent_cover_position
is_closed
, covers with a binary state would instead implementcurrent_cover_position
to return either 0 or 100Beta Was this translation helpful? Give feedback.
All reactions