longzheng / homebridge-fronius-inverter-lights

Homebridge plugin for Fronius inverter with smart meter as a lightbulb accessory
MIT License
10 stars 2 forks source link

Lightbulb brightness percentage as % of max energy #4

Closed hjuhlin closed 2 years ago

hjuhlin commented 3 years ago

Would be possible to add an option to show Lightbulb brightness percentage as percentage of max energy instead of the import/export relative to the solar generation. I can't fix the max value in the API, but as I know it my self it could be at setting where you type in 9600 W in my case. So when 1600 W is created at the moment I would like the Lightbulb brightness percentage 17%.

longzheng commented 2 years ago

Interesting idea, but that would only work for the "Export" lightbulb. I'll look into making that an option.

longzheng commented 2 years ago

Actually I can make the "PV" lightbulb show the brightness as a % of the max energy, which makes more sense.

longzheng commented 2 years ago

Released version 1.4.0 with pvMaxPower config option

hjuhlin commented 2 years ago

Nice work!