Allow scaling of illuminance values #203
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.