Add compensation integration#15192
Conversation
Adds the compensation integration
Co-authored-by: Klaas Schoute <klaas_schoute@hotmail.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Updated yaml example to account for ADR-0007. Added quotes.
|
I think it is worth clearly stating that this integration does not interpolate. It fits a single line (or higher order polynomial) to all the data points. I think this will cause confusion as it does with the similar esphome usage. For example: # Example configuration.yaml entry
compensation:
media_player_db_volume:
entity_id: media_player.yamaha_receiver
data_points:
- 0.2 -> -80.0
- 0.5 -> -20.0
- 1.0 -> -10.0A value of 0.75 will not transform to -15.0. In fact a value of 0.5 won't transform to -20 in this case either! |
@MatthewFlamm It's funny you should mention that. I was planning on adding non-linear interpolation at some point down the road. Does the ESPHome version do interpolation? |
|
I am only aware of the |
I'm not the greatest tech writer, mind if I use that line? |
You can use it. |
frenck
left a comment
There was a problem hiding this comment.
✅ Approved. Can be merged as soon as the parent PR gets merged.
Clarify that this is a polyfit, not any other type of fits.
Adds the compensation integration
Proposed change
Adds the compensation integration documentation
Type of change
currentbranch).currentbranch).nextbranch).nextbranch).Additional information
Checklist
currentbranch.nextbranch.