ArjanKranenburg / virtual-devices

Homey-app to add Virtual Devices that can trigger your flows.
Other
25 stars 17 forks source link

Cumulative energy device option #110

Open MagnusPer opened 5 years ago

MagnusPer commented 5 years ago

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

ArjanKranenburg commented 4 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.

k4mrat commented 4 years ago

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 😂 A93F2F82-2617-4798-9EDD-AA530C17A0C3

k4mrat commented 4 years ago

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.

Allram commented 3 years ago

Added a suggestion here: https://github.com/ArjanKranenburg/virtual-devices/pull/135