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

Lux controlled brightness not working

$
0
0

@Ticktock wrote:

Hi all!

Up to now I’ve been able to set up all my automations by searching this forum and scouring through the docs. I’m trying to automate my lights so the brightness is adjusted to the natural incoming light. The script below doesn’t give any errors, but the only thing it does is turn the light on. It’s not responding to any input from the lux sensor. Does anyone have a clue about what’s going wrong?

test_variable_light:
  sequence:
    - service: light.turn_on
      data_template:
        entity_id: light.hue_lightstrip_plus_1
        transition: 10
        brightness_pct: >
          {% set lux = states('sensor.downstairs_light_filtered') | float %}
          {% if lux <= 40 %}
            56
          {% else %}
            {{ 56 * (160 - lux) / 160 + 0.09 }}
          {% endif %}

I used Dynamic brightness based on lux reading from a sensor and Help! Light brightness by lux level automation as inspiration.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



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