Hanske
(Hanske )
January 24, 2023, 4:44pm
1
Dear forum readers,
I have a short question (possibly overlooked answers).
I have a Xiaomi lux sensor.
I would like to have the right light intensity in my living room at all times.
In other words: when it gets dark, the light has to burn brighter, when it gets brighter in the living room, the light will dim automatically.
Is there blueprint available for this?
Thank you in advance for any answers!
Sir_Goodenough
((SG) WhatAreWeFixing.Today)
January 24, 2023, 6:27pm
2
Put the word lux in the search for this forum, maybe?
Hanske
(Hanske )
January 24, 2023, 7:03pm
3
No, sorry… I hadn’t come up with that idea.
I’m asking this, because a lot of the proposed solutions are not 100% working.
But thanks for this constructive contribution.
Hanske
(Hanske )
January 25, 2023, 5:04pm
4
Not a blueprint, but I think this will help.
From my perspective this topic is solved!
Hi all,
Just wanted to know if it’s possible to have some lights gradually dim as the lumens of a sensor increases?
I don’t mean that I want them to dim every 5/10min or anything. I just want my kitchen lights to change their brightness as the lumens in my kitchen increases or decreases.
Is there a way that I can do this with a template or something?
Create a template sensor that maps your light level to wanted brightness. Then use this sensor to specify the brightness whenever you call the light turn on service.
Using the two points you supplied, and 100% brightness at 0 lux, gives this equation:
bri_pct = -0.3 * lux +98.33
Which you can use in a template sensor like this:
- name: 'Calculated Light Brightness'
unit_of_measurement: "%"
icon: "mdi:brightness-auto"
state: >
{{ ( [0, (-0.3 * states('sensor.your_lux_here')|float(0)…
Marked as solved!!!