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

Auto adjusting brightness

$
0
0

@Noto wrote:

I’m trying to get my hallway lights to adjust to the sun and weather conditions. Using the Buienradar integration there is a sensor for solar strength. I’m hopeing to use this value to calculate an approptiate brightness level. With the calculation below I would have a 50 brightness nightlight and as long as the irradiation doesn’t go over 1000kW I should be fine (255 is max brightness).

- id: '1581631610216'
  alias: Lampen - Gang movement
  description: ''
  trigger:
  - entity_id: binary_sensor.motion_sensor_158d0001b19074
    platform: state
    to: 'on'
  - data:
      brightness: '{{ ((states.sensor.br_irradiance.state | int) / 5) + 50 }}'
    entity_id: light.gang_lamp
    service: light.turn_on

Can someone help me find the error in this formula?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 99102

Trending Articles



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