blueprints/automation/motion-light.yaml aktualisiert

This commit is contained in:
2025-08-29 15:05:57 +00:00
parent 4431662d24
commit cd92e4e21c

View File

@@ -58,12 +58,13 @@ condition:
- alias: "Optional lux check" - alias: "Optional lux check"
condition: template condition: template
value_template: > value_template: >
{% if lux_entity %} {% if lux_entity and states(lux_entity) not in ['unknown','unavailable'] %}
{{ states(lux_entity) | float(0) < lux_threshold }} {{ states(lux_entity) | float(0) < lux_threshold }}
{% else %} {% else %}
true true
{% endif %} {% endif %}
action: action:
- alias: "Set dynamic brightness" - alias: "Set dynamic brightness"
variables: variables: