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

Hide stuffs that is not relevant. #3

Closed hjuhlin closed 2 years ago

hjuhlin commented 3 years ago

Would it be possible to hide stuff that is not relevant? If i call the API i get this data.

"Data" : { "Inverters" : { "1" : { "DT" : 232, "E_Day" : 508, "E_Total" : 20628.001953125, "E_Year" : 20628.099609375, "P" : 832 } }, "Site" : { "E_Day" : 508, "E_Total" : 20628.001953125, "E_Year" : 20628.099609375, "Meter_Location" : "unknown", "Mode" : "produce-only", "P_Akku" : null, "P_Grid" : null, "P_Load" : null, "P_PV" : 832, "rel_Autonomy" : null, "rel_SelfConsumption" : null }, "Version" : "12" }

So P_Akku, P_Grid and P_Load is null but still the plugin shows 4 lightbulbs. For me the PV one is the only one that cotains any data. So would it be possible to hide them if they are null or in a setting?

longzheng commented 2 years ago

It's not that practical to show/hide accessories dynamically. I put the accessories I don't need in a separate room. Is that practical for you?

hjuhlin commented 2 years ago

If its possible to controll from the settings then its not dynamically.

But as I only need PV option and wanted to add Eve stats to, I made my own plugin that only handles PV with Eve stats. :P

longzheng commented 2 years ago

Ah I see.

Your plugin looks good too. Nice job with the Eve stats.