I recently installed a SoFar ME3000MP and 2x PylonTech batteries for home storage. I want to integrate that in to Home Assistant and found the integration by Stephan Joubert home_assistant_solarman/README.md at main · StephanJoubert/home_assistant_solarman · GitHub I have installed the integration but not able to get any data recovered. 40 Entities are there but all have an “unknown” status:
I cant find any topic on the forum that covers this integration so thought I would start one to ask for any help in getting this to work on my HA instance.
First step is to request for API access from SoFar. I sent e-mail on Friday and they replied today with AppID and API Key. Then follow the instructions from above post and further link…Not too difficult if I managed to complete it Yaml file also quotes to make it easier for the Restful and Sensor set ups…
Hello, I have a Sofar KTLM-G3 and like the original posters, the data returned is not working right.
I don’t want to use the API as angusc mentioned because I want all data come from my own network, not their servers.
Is there a debug mode or some other means of seeing what the local inverter server returns? I wonder if this is just a mapping problem for newer Sofar inverters?
Hi, Solarman have wrong definition for some Sofar inverters like HYD 4-10KTL…
Seems that I was able to find some .xls with correct definitions at this page https://www.elektroda.pl/rtvforum/topic3698233-150.html
You can edit your sofar.yaml
till now I identify those:
0x04AF - total power consumption
0x0605 - battery %
0x0606 - charge / discharge kW of battery
but of course with that xls it will be easy to find what you need
i too have this and i can see its working in the MQTT broker, but how do you get the information to display in a dashboard? i have install node-red, but im just lost im very new to HA and struggling
i did make a few adjustments to correct some values so that they read in KW rather than W but thats way easier when all the code is sat in front of you.
one thing i have noticed if Grid power is 0W the reading shows 65534w which is not a huge concern but would be nice to removed that any ideas?
Yeah I saw that same issue but didn’t get around to looking. Sometimes it’s 0 but then goes to that number, there are two other sensors that also do that.
Some learning that I made for the charging and discharging switches:
I’m normal operation you only need the “saver/auto mode” stitch ON and the “stand by switch” OFF.
You only use the “charge switches” to FORCE the Sofar to charge.
You only use the “discharge switches” to FORCE the Sofar to discharge.
at the moment im just using it as read only no control over the inverter, but once i get my smartmeter fixed and on cheap electric over night ill be moving to charge over night so will be playing with that.
how did you get the slide switchs for the modes? i can only find this
Hi,
i try to use this integration with my Sofar HYD-5000ES with wifi logger (S/N: 23XXXXXX). I put on all the parameters and restart HA but all the sensor stay in status “unknown”.
I don’t have any error message in log.
I also try autodiscover mode but without success
If someone have an idea…
Thanks
PS : i have an integration with solarman API which works fine but i would try to get datas directly from the data logger
Well according to the documentation you should have full support:
Supported models:
ME3000SP - Full support
HYD-xx00-ES - Full support
I made some notes to test the API at Solarman website, can you try and see if you get the output directly from the website, then at least you know the values are available for your MQTT server to extract in JSON format:
If Solarman stops working then try updating the token using below API by following these instructions :
My Information:
#How to refresh the Solarman Token Code if sensors stop getting data:
If the SOFAR sensor data stops working try to refresh the token by following these steps:
Thank you,
as i said i already use the integration using Solarman API and it works fine but i would try to get datas directly from the data logger directly with local access
Hi Guys, that 65534 that you’re seeing is the equivalent of - 1 when represented as an unsigned integer - I’m not sure how you would fix it, but I think you can declare the datatype as a signed integer and the issue will be sorted.
I use Solcast for my Solar predictions. I have a ‘input_number’ helper set up for the “overnight charge powerwall max charge” and then here are my automation (the Chooses part) that I use to set the different SOC levels required. Obviously I have a power wall but the principle should still be the same. Then using your sofar2mqtt you can turn on charging and turn off once the corresponding Sofar Battery SOC matches the input_number.overnight_charge_powerwall_max_charge