From 51170c514d9f2520a07883a35dcced47d9bb6424 Mon Sep 17 00:00:00 2001 From: deejaybeam Date: Tue, 7 Feb 2023 19:33:02 +0100 Subject: [PATCH] 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.' %}