I have these two garage doors that include availability templates:
- platform: template
covers:
lhs_garage_door:
friendly_name: "LHS Garage Door"
device_class: garage
open_cover:
service: switch.turn_on
data:
entity_id: switch.lhs_garage_door_remote
close_cover:
service: switch.turn_on
data:
entity_id: switch.lhs_garage_door_remote
stop_cover:
service: switch.turn_on
data:
entity_id: switch.lhs_garage_door_remote
value_template: "{{ is_state('binary_sensor.lhs_garage_door_status', 'on') }}"
icon_template: >-
{% if is_state('binary_sensor.lhs_garage_door_status', 'on') %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}
availability_template: "{{ not is_state('binary_sensor.lhs_garage_door_status', 'unavailable') }}"
- platform: template
covers:
rhs_garage_door:
friendly_name: "RHS Garage Door"
device_class: garage
open_cover:
service: switch.turn_on
data:
entity_id: switch.rhs_garage_door_remote
close_cover:
service: switch.turn_on
data:
entity_id: switch.rhs_garage_door_remote
stop_cover:
service: switch.turn_on
data:
entity_id: switch.rhs_garage_door_remote
value_template: "{{ is_state('binary_sensor.rhs_garage_door_status', 'on') }}"
icon_template: >-
{% if is_state('binary_sensor.rhs_garage_door_status', 'on') %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}
availability_template: "{{ not is_state('binary_sensor.rhs_garage_door_status', 'unavailable') }}"
I also have this cover group:
- platform: group
name: "Garage Doors"
entities:
- cover.lhs_garage_door
- cover.rhs_garage_door
The docs says:
Otherwise, the group state is
unavailable
if all group members areunavailable
.
But I see this:
Both individual covers are unavailable
but the group shows unknown
.
What am I missing?