I have an ESP8266 sensor (LDR) and I wrote this automation to turn the light brightness up when it gets dark.
alias: 'Light Level Office Brightness Increase '
description: ''
trigger:
- platform: state
entity_id: sensor.officelightlevel
for:
hours: 0
minutes: 0
seconds: 1
condition:
- condition: numeric_state
entity_id: sensor.officelightlevel
below: input_number.office_light_target
action:
- device_id: 3d85ad48c7142875bb4b320cdd1ef8b9
domain: light
entity_id: light.office_bulb
type: brightness_increase
mode: single
I have the same automation that turns it down if its above the target however my 2 automations cannot achieve the exact light level so they end up fighting each other putting the brightness up and then down.
Any idea how I could stop that happening as it works well initially but once near to the target (say 100) and it reaches 100.1 dropping the brightness down by 1 step drops it to say 97 and then its incremented back up again.
1 post - 1 participant