Open MagnusPer opened 5 years ago
Thank for the suggestion! To make this optional, I would have to add it at pair-time (i.e. when the device is added). If that is possible it would also require changes in the pairing screens, which is more difficult. I'll keep this open for a while, perhaps I stumble upon an easy solution, but don't count on it.
I’ve been messing around with trying to add cumulative property. This brilliant app is kinda hard to get the hang of for a noob like me though 😁
I took the approach of adding it as a separate “smart meter” next to “Device” and “mode”.
Not the cleanest of approaches, since it probably would be best as an option along with the other capabilities, but one that should be doable. If I could only get it to pair at the last step 😂
Another thought I had was taking the approach we're talking about in #97 and making a sub-capability and giving that Cumulative ability, like "measure_power.cumulative", but haven't pursued it at all so no idea if it's even possible.
Added a suggestion here: https://github.com/ArjanKranenburg/virtual-devices/pull/135
In version 3.0.0 when Home Energy is included Its of importance when a smart meter is used to set the cumalative measurement option to true.
I believe this should be possible to do for the measure_power, measure_current, meter_power capabilities
https://apps.developer.athom.com/tutorial-Drivers-Energy.html