@anthosz wrote:
Hello,
Due to this issue (https://github.com/home-assistant/home-assistant/issues/30112), I cannot use the aqara switch to close/open the cover with the push on the button.
Example:
- id: '123' alias: Ouverture volets rdc description: '' trigger: - event_data: click_type: single entity_id: binary_sensor.switch_XXXX event_type: xiaomi_aqara.click platform: event condition: - condition: or conditions: - condition: state entity_id: cover.XXXX state: closed - condition: state entity_id: cover.XXXX state: closed - condition: state entity_id: cover.XXXX state: closed - condition: state entity_id: cover.XXXX state: closed action: - data: entity_id: cover.volets_rdc service: cover.open_cover
So before this issue, was no issue because states works (if one of the covers was close => open all the covers with a single push). Once, done, a new single push close all the covers.
Now I have an issue The status of entity move to unknow after one minute… Due to that, I cannot use anymore the single push.
My questions:
- If I try to duplicate this automation, will generate a loop no?
Example:
- Open:
- id: '123' alias: Ouverture volets rdc description: '' trigger: - event_data: click_type: single entity_id: binary_sensor.switch_XXXX event_type: xiaomi_aqara.click platform: event action: - data: entity_id: cover.volets_rdc service: cover.open_cover
- Close
- id: '1234' alias: Fermeture volets rdc description: '' trigger: - event_data: click_type: single entity_id: binary_sensor.switch_XXXX event_type: xiaomi_aqara.click platform: event action: - data: entity_id: cover.volets_rdc service: cover.close_cover
Due to the fact that there are no conditions for both (because no status anymore), how HA will manage it? Segfault?
- It’s possible to use a condition on a previous “not unknow” state of the switch.
Example:
The current hour is 20h and the switch (cover) is in unknow status, the last good condition was good at 16h30 (cover closed). Based on the fact the last good status was close for this cover, can we use it in a condition to allow to open the cover when we push a single on the button?
This is like if I want to tell in the condition "so, take the last good status (ignoring unavailable/unknow status & whitelist only open/close) for this entity, if the the last status is closed -> so open the cover.I hope that it’s clear for you
Doesn’t hesitate if you need more informations ^ ^
Posts: 2
Participants: 2