I have a set of 3 Ikea Fyrtur blinds setup. I have a couple simple buttons in a lovelace dashboard that simply call cover.open_cover
and cover.close_cover
on a group containing the 3 covers. This works great.
I also have one of the Ikea Tradfri open/close remotes paired with zha
and I’m trying to just accomplish the exact same thing; bind the open/close to the same cover.open/close cover calls. I can see this automation dispatch, but sometimes not all of the covers close, and sometimes a cover will only move part way and then stop.
Looking at the logbook, I don’t see any additional events that could draw suspicion. For example I’ve verified that the button is only sending a single zha_event per press. I’m a bit stumped as to why this would work OK when triggering with lovelace but not when triggered from an automation. I’ve updated the blinds to the latest firmware that zha will offer, connected to supervised Home Assistant on an intel NUC with an HUSBZB-1.
Here’s my automation config:
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: 0b8bed24487a2c752c925ac72095d4e9
action:
- choose:
- conditions:
- '{{ trigger.event.data.command == "up_open" }}'
sequence:
- service: cover.open_cover
target:
entity_id: group.basement_blinds
- conditions:
- '{{ trigger.event.data.command == "down_close" }}'
sequence:
- service: cover.close_cover
target:
entity_id: group.basement_blinds
- conditions:
- >-
{{ trigger.event.data.command in ("stop", "stop_opening",
"stop_closing") }}
sequence:
- service: cover.stop_cover
target:
entity_id: group.basement_blinds
mode: restart
id: '1625607221363'
alias: Basement Blinds Remote
description: ''
Here’s my lovelace buttons (that work fine):
- type: horizontal-stack
cards:
- type: button
tap_action:
action: call-service
service: cover.open_cover
service_data: {}
target:
entity_id: group.basement_blinds
icon: hass:arrow-collapse-up
name: Open Blinds
- type: button
tap_action:
action: call-service
service: cover.close_cover
service_data: {}
target:
entity_id: group.basement_blinds
icon: hass:arrow-collapse-down
name: Close Blinds
show_state: false