Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow scaling of illuminance values #203

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iay
Copy link

@iay iay commented Oct 9, 2024

Following up on the discussion about luminance calibration from a few weeks back, this PR presents the modification I've been using in my own deployment (rebased against the current HEAD, which no longer includes the calibration table).

This adds a (default disabled) entity containing a scaling value for the luminance sensor, which multiplies the luminance value from the hardware sensor in the same way as the other configuration entity adds to it to provide an offset. This means that you can scale the hardware sensor up or down to match an external reference or to compensate for variation between sensors.

In practice, I've found that the sensor value is in any case quite dependent on the exact placement of the EPL, because the sensor is inside the case but just under a slot in the top. So if the light is mainly coming from above, you don't need much compensation but the same light coming from a different direction (or if the EPL faces in a different direction) might need a tweak.

So this is probably largely cosmetic, but I thought some people might find it useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant