Hello all,
After a few weeks amusing myself with HA on my new home, I encountered a weird “bug” with my HA automation, I hope that you can give me some light on what might be happening here.
I have automated all of my blinds with some Moes smart switches (ZTS-EUR-C), that works really well and I haven’t had any problems until today.
I was trying to create an automation that closes one of my blinds if another one is already closed (condition):
condition: state
entity_id: cover.cuisine_volet
state: closed
Witch seems really simple, but for some reason it didn’t work, I mean, even if the blind was closed, the condition returned always false…
After a few analysis, I found that there was a discrepancy on the blind position (and buttons) and the actual state
Look at these screenshots, that shows all the blinds states on different screens on my HA:
-
zigbee2mqtt state:
-
HA dashboard buttons:
-
HA entity modal:
-
Entity history
As you can see, both (1) and (2) are OK, as I have my blind “position: 0” and on my dashboard I can open it.
But on (3): even if the bar shows that the blind is closed, the state title is “Open” (“Ouvert”);
And on (4), the journal clearly shows that the blind was opened just after it was closed, even if this is not the case…
And when I was investigating, I found out that if I press the “stop” button on my HA dashboard, the blind position automatically goes to the correct position of “Closed”:
(“was closed triggered by the cover service: Stop”)
Can anyone help me to figure out why does this happens? For this time I manage to override by change my condition to:
condition: numeric_state
entity_id: cover.cuisine_volet
attribute: current_position
below: 1
But I don’t think it’s the proper way of doing it, it’s just a workaround…
Anyway, I hope I was clear enough, and thanks all in advance for your help
Best regards,
Marc