alexryd / homebridge-shelly

Homebridge plugin for Shelly devices
MIT License
296 stars 44 forks source link

[Feature request] Support "Always Positive" -> Shelly EM #407

Open thechris1992 opened 1 year ago

thechris1992 commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Hello Alex,

i got an Shelly EM for my "Balkonkraftwerk" (600W PV) and use the EM for monitoring. In the shelly app it shows me EM and 3EM and count the whole power.

like House: 1000W PV 600W

= 400W sum.

Describe the solution you'd like A clear and concise description of what you want to happen. Home doesnt like negative values. So you add (2020) a support for stop it less then 0.

Please add an option for "always Positive" so my -600w will show as 600w in Home app // Eve App.

thechris1992 commented 1 year ago

Maybe done with https://github.com/alexryd/homebridge-shelly/pull/378

thechris1992 commented 1 year ago

do it by myself

get consumption() { return Math.min(Math.max(Math.abs(this.device[this._consumptionProperty]), 0) ,65535) }

added @power-meter.js