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
if I understand it correctly you can change the settings like charge / discharge of battery from HA. So this way for example you can build logic in HA to trigger when battery should charge?
As you know with home assistant, there are always many ways of doing the same thing. I just went the way I did, invested money and time in building the module add setting everything up. It all works for me and I can control charging and discharging of the SoFar and Pylontech batteries in HA…so I’m happy.
I don’t know if anyone can give me a clue here, I am trying to build an estimate for how much power I have avialable based on the load on the system
So something like:
So Inverter Load - (Solar Production + Battery Storage)
The one thing I am struggling to figure out is which metric is the current battery capacity in watts, I see percentage but no watts. Am I missing something.
I don’t use Solarman (I opted for Solar Assistant, but in the end the fundamentals are the same), but you are confusing some terminology. Capacity relates to energy (kWh or then kJ). Power is a rate (kW or then kJ/s). Capacity would be like the distance you can cover. Power would then be your speed in this analogy.
If you don’t have energy sensors, you need to integrate the power sensor’s and then sum them, or calculate the net power and integrate that.
Otherwise, if what you’re trying to calculate is whether you can switch on the kettle or washing machine now, given your solar potential and battery (all of this in W or kW), then it’s probably more complicated if you want to include the battery. It’s fairly easy just to calculate the difference between your solar forecast and current solar PV power (this is what I do), but your battery will have a max rating (W) and total capacity (kWh), so technically you can hit it as hard as your battery can deliver in combination with your inverter’s rating. Thus, it becomes a question of need over ability.
The reason I only look at the PV, is because that’s the free energy. The battery really is just a big buffer on will either be topped up by solar for free or the grid. Since the grid costs money, I leave it out of the calculation. It’s also much simpler.
You can have a look at all my sensors and stuff. I just recently completed it, but it covers some of the things above.
I can add a screenshot of my dashboard later when I’m at my computer.
Thank Pieter, makes sense and exactly what I needed. Solarman is kak, I don’t know what shenegans they are pulling with the ESP chip in the damn thing, but it’s wifi connectivity is so bad, irrespective of what you do. I have tons of other ESP devices that have no issues. I should probably migrate to Solar Assistant or a Solarman unit with RJ45