I’ve noticed that the powerMeter capability reports “Out of Range” except for negative values in the detail view.
On the dashboard view, they were correctly shown as a negative value.
Is this something that your team can reproduce?
I’m playing around with the Aeotec HEM Gen5 right now and when I change the clamping direction, the HEM reports negative values. It would be great to fix this somehow - maybe it’s just a presentation configuration that can be done in the driver?
Yes, there’s already a request to change the range in the presentation by default, but there’s no ETA for that.
However, if you’re developing an integration, you can create a custom device configuration to overwrite the range of the capability presentation. For example, this is a part of the configuration for the thermostatCoolingSetpoint capability, the properties that make the trick are key and range. In key, you need to put the attributeName.value, otherwise, it won’t work:
@nayelyz
sorry to bump an old thread, but I was wondering if the request to fix the default range limitation for powerMeters is still pending and if not can it be resurrected? It has not been implemented as far as I can tell.
Hi, @georgeh
Let me check the case of the detail view. What I see is that we can create routines using negative numbers and they work correctly, in case it helps while we check the “out of range” message.
For me it is only a minor annoyance when using the app to view current readings, since I can find the negative value on the “devices” page or in the history. But I think you’d want to clean it up eventually.
Hi, @georgeh
Following up on the “out of range” message, the team mentioned this was discussed in the past and you can override the default range in the device presentation to avoid getting that message.
In the case of Edge drivers, remember you can add embedded device-configurations in the device profile, for example:
Thanks, I used the range values in the profile and that worked.
Was wondering - does that have any other side effect, such as not recording “out of range” values in the history/platform itself, or does it only affect what is shown on the app’s detail page?
No, this configuration only affects the UI, as the capability doesn’t have a range set on its definition, it can accept any numeric value and that will be shown in the history unless you define the event’s visibility=false.
When you have a range set in the capability’s definition, commands with “out of range” values to that capability will be rejected.