@namachieli wrote:
Also posted on reddit, posting here for parity.
I’m trying to figure out how to trigger an automation when a dimmer light changes from any non-zero value for ‘brightness_pct’ to any value.
I have all the normal light automations working; trigger when motion detected, turn it off 5m after last motion, different brightnesses based on luminance and sun positioning, etc.
I’m using an ‘input_boolean’ to track whether a light was engaged via automation (true) or manually so that the auto-off automation can check if it should fire or not. The desire is if a light was turned on manually it shouldn’t auto off so quickly.
I have it working so that if a light triggers via automation, and you turn it off manually, it resets the input_boolean to false, but I need to find a way to also set the input_boolean to false if you change the brightness_pct.
Current Automation example: https://pastebin.com/vVDwn2i0
TL;DR trigger automation when brightness_pct changes from any non-zero to anything. Something like
from: 'on' to: 'on'
, but notfrom: 'off' to: 'on'
.TIA
Posts: 3
Participants: 2