#in this case I would advice to add an
1 messages · Page 1 of 1 (latest)
Hope it is ok I created a thread - please tell me if not.
I would like to make sure that I understand well this point of yours:
"...but I would except the cover.close_cover action under open_cover and vice versa"
Did you want to say you would expect :
open_cover:
service: cover.close_cover
...
close_cover:
service: cover.open_cover
Right?
yep
I think I understand your surprise.
I can't find now the original source of the code, but initially I had it the way you would expect, let's say discordantly.
But then my cover reacted to arrow up by going down and vice versa. So I swapped it. I've just tested it again.
If it does that, the original cover will work fine (arrow wise)
The thing is, when your original cover is fully open, your inverted cover will be fully closed
If you then issue an cover.open_cover action on your inverted cover, nothing will happen, as you are then opening the original cover which is already opened
I think I see what you mean. Well maybe there is something unusual about my cover control, but it reacted arrow wise even before my code.
What was inverted was the slider (slider down to move cover up i.e. open and vice versa) and the closing/opening states. But If I remember well, the states closed/open were ok as well before my code.
your inverted one will invert open/closed as well
closed = cover_position: 0
open = any other cover_postion
I have to correct myself concerning the initial behaviour and the behaviour after my current template.
A cover of mine, to which the template is not apllied (yet):
- arrow symbols concordant with movement
- arrow up available at all positions except when physically completely closed, i.e. available even when physically completely open
- vice versa for arrow down
- slider discordant with movement
- states opening/closing concordant with movement up/down
- states open/closed
-- open when physically completely closed or partially closed
-- closed when physically completely open
The inverted cover entity created by the template applied on another cover:
- arrow symbols concordant with movement
- arrow up available at all positions except when physically completely open
- vice versa for arrow down
- slider concordant with movement
- states opening/closing concordant with movement up/down
- states open/closed
-- open when physically completely open or partially open
-- closed when physically completely closed