Again, it would make the compensated entity disconnected from the device. As a user, I would want both device registry and compensation, and this functionality is currently lacking.
I understand what youâre saying, but HA doesnât follow that paradigm anywhere aside from unit conversion which makes use of system wide existing attributes device_class, state_class, and unit_of_measurement. Youâre proposing an offset on values without even proposing how it should be done. At this point, itâs nothing but a feature request, not really a discussion.
Surely its better to do it at device level rather than in HA ?
Yes, you are correct, it is a feature request, and here is the thread for the discussion: Numeric sensor offset ¡ home-assistant/architecture ¡ Discussion #947 ¡ GitHub
I think the solution design I am proposing is obvious - use the same approach as for unit conversion and precision calculation and I am ready to express it with more details, but I think I first need the core developers to share their view in the github architecture discussion (or maybe I just miss the point and donât understand the process).
Itâs not obvious. Itâll be completely different. unit conversions use a library that handles that, which would not handle the offset. Also the system uses the attributes I listed above. Youâre welcome to argue, but when you have to bump that post an additional 9 times over the next 2 years, maybe youâll start to realize that my comments hold merit. Youâre simply regurgitating a feature request which does not belong in discussions. You should be supplying full technical details on how the system should work to get a discussion.
Thank you for the comments, Iâve added the technical details on my suggestion in the architecture discussion thread on github.