From cd92e4e21cb3d42ff279905af7be43e323d00c12 Mon Sep 17 00:00:00 2001 From: thomas Date: Fri, 29 Aug 2025 15:05:57 +0000 Subject: [PATCH] blueprints/automation/motion-light.yaml aktualisiert --- blueprints/automation/motion-light.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blueprints/automation/motion-light.yaml b/blueprints/automation/motion-light.yaml index 7916a08..829873f 100644 --- a/blueprints/automation/motion-light.yaml +++ b/blueprints/automation/motion-light.yaml @@ -58,12 +58,13 @@ condition: - alias: "Optional lux check" condition: template value_template: > - {% if lux_entity %} + {% if lux_entity and states(lux_entity) not in ['unknown','unavailable'] %} {{ states(lux_entity) | float(0) < lux_threshold }} {% else %} true {% endif %} + action: - alias: "Set dynamic brightness" variables: