Need both multiplier and precision options in config to convert unit and keep precision in check from float issues.
Also took added state_class to discovery message for consumption sensors so they quality for Long-Term Statistics. For IDM interval consumption we're now using TransmitTimeOffset to calculate last_reset which I'm not 100% sure about but will test.
Need both multiplier and precision options in config to convert unit and keep precision in check from float issues.
Also took added
state_class
to discovery message for consumption sensors so they quality for Long-Term Statistics. For IDM interval consumption we're now usingTransmitTimeOffset
to calculatelast_reset
which I'm not 100% sure about but will test.Besides that some refactoring into constants.