I’ve purchased a 470 Lums dimmable globe and I’d like to sett it to 400 lums. In HA I can only see brightness which is 255 and the slider percentages. Is there a way to work out the lums based on slider percentage or brightness value?
Create a number helper similar to the one below:
Name: Light Brightness Control (or any other name you prefer)
Icon: Choose a relevant icon (optional)
Minimum value: 1 (Based on minimum lum)
Maximum value: 470 (Based on maximum lum)
Step: 1
Unit of measurement: lumen
Then create an automation similar to the following:
alias: Adjust Light Based on Lumens
description: ""
trigger:
- platform: state
entity_id: YOUR HELPER ENTITY_ID'
condition: []
action:
- service: light.turn_on
target:
entity_id: YOUR LIGHT ENTITY_ID'
data:
brightness: "{{ (states('YOUR HELPER ENTITY_ID') | int / 470 * 255) | int }}"
mode: single
Just to avoid future confusion (and out of curiosity): does IKEA sell z-wave devices or should that be zigbee?
It’s Zigbee. I updated the tag.
Thank you kind sir. That is fantastic!
The above is assuming the lumens change in a lineair fashion from 1 to 470 but is very unlikely that it does. So as long as you realize this is an approximation, you are fine. But if you want it to be accurate, you’d need some way to measure it and create a lookup table.
Powercalc has a way to use lookup tables to calculate wattages, unfortunately not lumens.