Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Help with light automation - trigger on brightness_pct change while already on

$
0
0

@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 not from: 'off' to: 'on'.

TIA

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>