From 9363ee3b48942ea0e91503d642b0c4bedaa1a51f Mon Sep 17 00:00:00 2001 From: tikismoke Date: Fri, 6 Jan 2023 17:06:47 +0100 Subject: [PATCH] correct icon no update for fan --- nspanel_blueprint.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index f45a789..c318c07 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -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 ##### -############################################################# \ No newline at end of file +#############################################################