datMaffin / homebridge-tesla-powerwall

Homebridge Plugin for the Tesla Powerwall
ISC License
21 stars 11 forks source link

Improve Homekit "powermeter" fan visualization by moving from percentage to a better unit #25

Closed datMaffin closed 2 years ago

datMaffin commented 3 years ago

Basically upstream https://github.com/leeliu/homebridge-tesla-powerwall/commit/37b1e1a996e09f1d05a25fc4406c08980876353b .

The change was implemented in the past and can therefore be installed via: sudo npm install -g homebridge-tesla-powerwall@2.0.0-Beta7.

Commit that implemented the change in this repo: f144a9c23c87a4d70b8ad79eed3e8d06202b6741

Things missing would be (this were the reasons for the revert before the release of 2.0.0):

kimohi commented 3 years ago

I would vote to use the native powerwall values ( as expressed in watts ).

One interesting sidenote ... it appears you can assign a different unit of measurement in the Powermeter.js .setProps() call for the RotationSpeed characteristic. If you use 'Watts' instead of 'arcdegrees' as the unit parameter value, the native Apple Home app will display no unit of measurement and just the value ( no degree symbol, no percentage symbol ). The eve app honors the unit parameter and does display the value unit as 'Watts'.

Siri announces the values as 'Percentage' regardless of the set unit of measurement.

Of course how all of this changes in the future is unknown.

Screen Shot 2021-05-04 at 9 52 59 AM Screen Shot 2021-05-04 at 9 57 19 AM

leeliu commented 3 years ago

Interesting...I'd rather lose the degree symbol if Watts work. Though with degrees, I get the comma for the thousands separator (ie: 14,493). @kimohi, is that comma missing from your screenshot due to your region settings or is it missing with Watts?

leeliu commented 3 years ago

Seems like it's the nature of using Watts as unit. I still think it looks better than degrees (even with a thousands separator).

datMaffin commented 3 years ago

There is now sudo npm install -g homebridge-tesla-powerwall@2.1.0-Beta that uses "Watts" instead of percentage.

(In addition #3 was implemented.)