fix: ignore entities with state unknown

This commit is contained in:
deejaybeam
2022-12-29 17:35:48 +01:00
parent 817aa011cf
commit 34daabcaad

View File

@@ -2268,7 +2268,7 @@ action:
sequence:
- if:
- condition: template
value_template: '{{ repeat.item.entity|length > 0 and states[repeat.item.entity].state != "unavailable" }}'
value_template: '{{ repeat.item.entity|length > 0 and states[repeat.item.entity].state != "unavailable" and states[repeat.item.entity].state != "unknown" }}'
then:
- variables:
component_to_update: "{{ repeat.item.button }}"