Home Assistant 12.4
Home Assistant Core 2024.8.1
For 6 months I have been running automations that open and close my “curtains” very reliably. Recently they have become unreliable. These “curtains” are plantation shutters controlled by a motors that are integrated through the Tuya integration. They utilize a tuya Bluetooth gateway.
There are eight of these blinds and now most open and close cycles one, sometimes two do not open or close. It is not the same curtain. There is no pattern to which one fails. I can go to the HA app afterwards and open or close the offending blind without issue. It is automation failure. However I think the automation is fine, but is getting bad information about the position of the curtain. One morning when the curtain labeled TLO did not open and I took these screen shots. On the dashboard, is says the curtain is closed, which it was but when I open this modal by tapping on the curtain it shows that the curtain is open. I don’t know where the state information comes from these prospective elements of the UI but this exact discrepancy exists for whatever curtain fails each time it fails. This information in no longer being updated properly.
I am aware there are MANY other ways to do this automation but it had been working without trouble for many months. What has changed to make this suddenly so flaky? Thank you!
description: Opens TLO with a while loop
trigger:
- platform: sun
event: sunrise
offset: "-00:45:00"
condition:
- condition: device
device_id: 7442a7149e9f6a5399a88ed306947fd1
domain: cover
entity_id: f928165478a51a7d7d6f7213de6cf389
type: is_position
below: 10
action:
- repeat:
sequence:
- metadata: {}
data:
position: 85
target:
entity_id: cover.tlo_curtain
device_id: 7442a7149e9f6a5399a88ed306947fd1
action: cover.set_cover_position
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
while:
- condition: device
device_id: 7442a7149e9f6a5399a88ed306947fd1
domain: cover
entity_id: f928165478a51a7d7d6f7213de6cf389
type: is_position
below: 10
mode: single