From 51170c514d9f2520a07883a35dcced47d9bb6424 Mon Sep 17 00:00:00 2001 From: deejaybeam Date: Tue, 7 Feb 2023 19:33:02 +0100 Subject: [PATCH 1/2] fix: ignore unassigned hw-buttons --- nspanel_blueprint.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index a59509c..56a3984 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -4999,6 +4999,8 @@ action: - conditions: - condition: trigger id: left_button_press + - condition: template + value_template: '{{ left_button_entity |length > 0 }}' sequence: - service: >- {% if left_button_entity is match 'light.' %} @@ -5050,6 +5052,8 @@ action: - conditions: - condition: trigger id: right_button_press + - condition: template + value_template: '{{ right_button_entity |length > 0 }}' sequence: - service: >- {% if right_button_entity is match 'light.' %} From 5ba5d2fb08ee871a35397f093fff9d1ab0bec459 Mon Sep 17 00:00:00 2001 From: deejaybeam Date: Wed, 8 Feb 2023 22:24:17 +0100 Subject: [PATCH 2/2] fix: issue on ha-restart --- nspanel_blueprint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index 56a3984..da58510 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -3271,7 +3271,7 @@ trigger: ############################################################# ##### START - Action ##### ############################################################# - +condition: '{{ states(relay01_entity) != "unavailable" and states(relay02_entity) != "unavailable" }}' action: - variables: ##### Entity - Page Lightsettings #####