I have a dimmer light that does not lit light if its level is under 20%, it usually afte rmanuall operation stays somewhere around 16%, so HA shows light is on. How do i make an automation to turn it to 0% if level is under 20% ?
How about something like this:
description: ""
mode: single
trigger:
- platform: numeric_state
entity_id: light.bedroom_2_ceiling_light_level_on_off
for:
hours: 0
minutes: 20
seconds: 0
attribute: brightness
below: 50
condition: []
action:
- service: light.turn_off
data: {}
target:
entity_id: light.bedroom_2_ceiling_light_level_on_off
This assumes that:
*The brightness of your light is in an attribute
*The brightness goes from 0 to 255. So 20% is about 50
1 Like
Thnks man, works like a treat
1 Like