In order not to use unnecessary power, all lights outdoors are controlled by LUX. That is, how much light there is. When it gets dark enough, we turn on the outdoor light, and as soon as there is enough light, we turn it off again.
The advantage of measuring the brightness is that then you do not need to adjust for sunset/sunrise or other times of the day.
To measure the brightness outside, we have set up a HUE motion sensor. This sensor gives it several things. Brightness, movement, and temperature. Thus, we can make a lot of different automation based on this.
We can e.g. control when the light turns on / off.
We can adjust the brightness automatically based on movement.
The first thing we need to do is create simple automation that turns on the light when it gets dark outside.
Here we have set that as long as it is below 56 LUX (measured with the HUE motion sensor), it will trigger the automation (turn on the light).
Or in YAML code
type: illuminance
platform: device
device_id: a2ee6c374d933151b3865ed63f3893d5
entity_id: sensor.0x0017880106488ed2_illuminance_lux
domain: sensor
below: 56
Based on this, just turn on the light.
service: light.turn_on
data:
brightness_pct: 80
transition: 15
target:
device_id: 5fd645bf3adc61c9c008209c18f2d097
When it gets bright enough again, ie over 56 LUX, we turn off the light outside.
Simple and elegant – now you save some electricity by not having to have the light on the outside when it is bright enough.