mirror of
https://github.com/Threnklyn/NSPanel_HA_Blueprint.git
synced 2026-06-07 13:43:32 +02:00
Merge pull request #129 from deejaybeam/dev
fix: ignore entities with state unknown
This commit is contained in:
@@ -2268,7 +2268,7 @@ action:
|
|||||||
sequence:
|
sequence:
|
||||||
- if:
|
- if:
|
||||||
- condition: template
|
- 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:
|
then:
|
||||||
- variables:
|
- variables:
|
||||||
component_to_update: "{{ repeat.item.button }}"
|
component_to_update: "{{ repeat.item.button }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user