correct icon no update for fan

This commit is contained in:
tikismoke
2023-01-06 17:06:47 +01:00
committed by GitHub
parent ec67e93af0
commit 9363ee3b48

View File

@@ -3137,8 +3137,8 @@ action:
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state != 'home' -%} {{ button_person_off }}
{%- elif trigger.to_state.entity_id is match "binary_sensor." and trigger.to_state.state == 'on' -%} {{ button_binary_sensor_on }}
{%- elif trigger.to_state.entity_id is match "binary_sensor." and trigger.to_state.state == 'off' -%} {{ button_binary_sensor_off }}
{%- elif repeat.item.entity is match "fan." and states[repeat.item.entity].state == 'on' -%} {{ button_fan_on }}
{%- elif repeat.item.entity is match "fan." and states[repeat.item.entity].state == 'off' -%} {{ button_fan_off }}
{%- elif trigger.to_state.entity_id is match "fan." and trigger.to_state.state == 'on' -%} {{ button_fan_on }}
{%- elif trigger.to_state.entity_id is match "fan." and trigger.to_state.state == 'off' -%} {{ button_fan_off }}
{%- endif -%}
# TEXT and BRIGHTNESS Background
btn_bg: >-
@@ -6111,4 +6111,4 @@ action:
#############################################################
##### CLOSE - Action #####
#############################################################
#############################################################