sfstar / hass-victron

Integration for Home Assistant to fetch data from the victron gx device via modbusTCP
Apache License 2.0
178 stars 26 forks source link

Add calculated sensors in multi-phase system #94

Open exciler opened 1 year ago

exciler commented 1 year ago

About a year ago I started building my own victron integration. Now I switched to your component because it covers nearly everything. I have a three phase system and I had no problems with your component yet.

But for multi-phase systems it would be great to have totals/sums over all phases for visualisations and automations. I could create template sensors but I thought that this is probably useful for anybody with a multi-phase system and would offer to add it to the component if there is interest.

I already did a quick POC and it should be very easy to implement because you already have a "value_fn" callable that makes it easy to use a calculation instead of a modbus query. Are you open for this or do you have other plans/ideas?

randyoo commented 1 year ago

I created a helper, but agree that this would nice. That’s what’s shown in VRM in large font, after all, with the individual phases broken down in small font underneath.

Would actually be amazing to eventually have a Lovelace card/view that’s a clone of the VRM visual. I guess this would be a step towards that possibility…