Closed TheRealSimon42 closed 4 months ago
Hi @TheRealSimon42 Thanks for the PR. I have seen your video and like it. Since you struggled to add the battery to the energy dashboard like others, I also left a comment on your video for how I would recommend to add it. The battery energy source that you used for the entity creation is not quite accurate. It is a theoretical value, only calculated from the capacity and SOC. So your dashboard will never reflect the ~20% energy loss that occurs for the Solarbank for charging and discharging. Examples to create the charge/discharge power templates from the battery power entity can be found in the discussion #16 That may be something you still can improve in your setup or describe in your forum post.
BTW: The energy entities had to be moved to the system device since they are not granular at device level within the defined power system (e.g. dual solarbanks). This is such a change that would break the history display in the dashboard, if the tracking entity was directly from the integration and needs to be changed.... I also classified all energy stats as TOTAL sensors instead of TOTAL_INCREASING. Therefore they were not usable directly in the dashboard. I fixed that with release 2.0.1. So theoretically they should now be usable, but again I would not recommend it. Even for the Solar Energy I use a template sensor for a simple reason. Last winter I uninstalled the solarbank since it did not gave me any benefit (bad low PV handling, cold temp etc) and just caused trouble. So all integration entities are temporarily not usable, and that is nothing you want in the dashboard. My templates can handle this condition, since the PV power entity is already a template that either uses the PV power from the integration if available, or the PV power from my inverter integration as fallback. And the inverter PV is only usable for PV tracking, when the solarbank is not installed. So neither of them can be used directly in my dashboard. I think that is an important topic to consider when choosing entities for long term energy tracking. Setups can change (also just temporarily). So the best approach in my opinion is to create a solid power template entity that can handle setup changes, and the Riemann integral uses the power template to create the permanent Energy entity that can be used forever in the dashboard.
The further information links is a good idea, I will add more for other resources available.
You may also have a look to the Surplus charge automation for Solarbank E1600 (1st generation) if you want to get some ideas to bring your automation to the next level :-)
Just wanted to say thank you for the Information and your lovely Feedback💙 I already noticed your Comment and am already thinking about a Version 2 of the Video 😉
Hi @thomluther,
I added my own YT-Video as a resource down in the README.md and added a section at the bottom for a better overview of additional Resources and that others may add their Videos and Blog-Posts in the future. Do you like it?
I also corrected some grammar in the README, but not that much 😉. Really love the work and passion you put into your Project & keep on rocking 🚀
Best Regards, Simon