I wanna share my small project with you.
I have following goals:
maximum self-consumption of solar power
a punctual message when wood must be added
a message when to charge the car.
These are small wishes, but there are major challenges. The smaller issues are not a problem: messages when children leave the skylight open, and so on.
Currently, I am still stuck on the integration of various devices:
Leda wood stove with Ledatronic LT3: The integration does not work at this moment.
Wolf heat pump CHA10: So far, access is via the web portal. Here I have frequent disconnections and would like to fall back on a local solution.
The SMA EV Charger wallbox does not yet have a Modbus interface and is also not yet integrated.
What works well so far is the collection of SMA data via Modbus.
This is an SMA Tripower STP15000 and an SMA Sunny Boy Storage 3.7.
I created these files, and sensors are shown. This part is OK now I think.
The sensors do not get valid values, so I think there is another problem on LEDA-side. Maybe they’ve changed their communication:
I have a lot of vertical steps within my integral calculations. As result, the calculations is sending back too big values. I see the same steps within other entities.
Hey nick,
yes that jump at 9:10. I checked the signal “Leistungsaufnahme” which is integrated to “Energieverbrauch”. I do not see any spikes etc, so I guess there is an error in calculating “Riemann sum integration”.
Is it possible to check native values of “Leistungsaufnahme” by exporting a CSV-file?
This seems to be the right direction, but i have to admit to be lost how to implement it in HA (as there are scripts with curl (which i dont know) and Homematic).
Are there any specific instructions/help for HA? Would you mind to share some of your knowledge?
Thanks a lot!
As some others posted before - I just wanted to add I tried implementing this in Home Assistant as well - but failed. I was able to query the information on the command line, but automating this in Home Assistant was a real nightmare.
@tmeringer: if you could post the configuration you used for the EV charger and maybe a few sentences with a short explanation maybe this should be enough to help all of us
Sure, but keep in mind that I am no php expert at all, so the script provided might not be the best in the universe, plus I am only reading data from the SMA EV Charger (for now) using an Apache webserver that is running on my Home Assistant server, so YMMV.
IOW: my Apache webserver is returning a JSON string that can be consumed by Home Assistant then.
This gave me a working setup, so I could save your script in /var/www/html and open it in a browser. By the way, since the debugging gave me a warning: I changed the line
Sorry, it took a while.
I decided to go for a Home Assistant only route so that there is no need for an external dependency (using Apache).That caused my some headache, but I finally came up with a solution.
Thanks a lot! That worked for me, too!
It might also be possible to change values with this method, extending the script a bit - but this version is a beginning and should be enough for what I want to do at the moment.
And even though they announced it quite a while ago and nothing happened until now, maybe SMA will update the wallbox to support modbus in the near future so all will be easier…