Hi, Home Assistant newbie here.
When I use the dimmer at home, I sometimes accidentally set the brightness to the lowest instead of turn it off. What I want is an automation that will adjust brightness back to 10% when it’s lower than a threshold.
So I have an automation like this:
- id: '1577165608021'
alias: Restrict Dimmable light to 10% minimum
description: ''
trigger:
- below: '128'
entity_id: light.dining_room_ceiling_light
platform: numeric_state
value_template: '{% if states.light.dining_room_ceiling_light.state == "on" %}{{
states.light.dining_room_ceiling_light.attributes.brightness }}{% else %}0{%
endif %}'
condition: []
action:
- data:
brightness_pct: 10
entity_id: light.dining_room_ceiling_light
service: light.turn_on
This solution seems to have some problem:
- When I decrease brightness from 100% down to the minimum, the automation is correctly triggered and brightness set to 10%.
- At this time, when I try to decrease brightness to the minimum again, the automation is NOT triggered, and the light stay at minimum brightness.
Did I miss anything? Thank you!