Carlo, thank you! I had been pulling my hair out trying to guess the correct slave id, but I think this maybe the answer to my problems.
I have two inverters, with a battery attached to the primary, I’ve been able to poll data from the primary inverter with no problems, but whatever value for slave id I try I’ve been unable to get it to work.
I’m connecting via the WLAN on the primary inverter, so I believe this is the cause of my problem - can anyone confirm if they’ve been able to access data from both inverters, using only the WLAN on a single inverter (ie: rather than a dongle?)
This is something which would be useful to add to the docs as it’s not obvious there!
I have created a new sensor for the percentage of energy produced compared to “estimated energy production” for your system based on solar forecast integration. Forecast.Solar - Home Assistant
The code used is as follows, just add it to your configuration.yaml file.
#percentage of enrgy produced
template:
- sensor:
- name: "Percentage of energy produced"
unit_of_measurement: "°%"
state: >
{% set daily_yield = states('sensor.daily_yield') | float(0) %}
{% set Estimated_production_today = states('sensor.energy_production_today') | float(1) %}
{{ ((daily_yield /Estimated_production_today ) * 100) | round(1, default=0) }}
availability: >
{{ states('sensor.daily_yield') not in [ unknown, unavailable, none ] and
states('sensor.energy_production_today') not in [ unknown, unavailable, none ] }}
it will create a percentage of energy produced sensor. Which can used to gauge your system performance for that day.
It is not possible to read data from the second inverter if connected via Wifi to the first. In a RS485 network there can only be one master and this is the dongle. Slaves cannot read data from other slaves. Only the master can. So the dongle can read from all inverters, but if you connect to one of the inverters (via Wifi), then this inverter is a slave in the RS485 and cannot read data from the other inverter. You need two Wifi bridges to connect to each of the inverters (that’s how I have setup my connection right now).
Sorry for interrupting the discussion, but I encountered two issues.
1.) The Grid Charge Cutoff SOC can not be set in Home Assistant. These settings are double password protected in my Huawei Inverter. Is this maybe the issue behind? I have a regular installer access.
2.) This might be a stupid question but how can I manipuate the Maximum Charging Power under automation? Shall I do it via a template script? Can someone give me a short code snippet?
I am using inverter SUN2000-3KTL-L1 connected Energy Storage Battery LUNA2000. I intend to dynamically change your battery settings
I communicate successfully with the inverter over Modbus TCP/IP without dongle. I have using the Software version SPC115. I have successfully reading data from the registers such as Battery day charge, Battery day discharge, Battery total charge, Battery total discharge, Battery state of capacity etc.
However, we cannot write to any registers, we have always these errors
• Exception Response (134, 6, None) when I try to write to one holding register.
• Exception Response (144, 16, IllegalAddress) when I try to write to two holding registers.
Please have you any idea how to modify the battery parameters and write to some holding registers over Modus TCP/IP. I am not sure if maybe we should add the credentials used to connect to the inverter in order to write to registers or there is another problem. Please can you confirm?
Thanks you
I need some help from the community (you guys!) to fix an issue with the time-values being reported. In my installation, the inverter reports incorrect values, probably related to DST issues.
Can a few of you take screenshots of the following things:
Home Assistant > History. Select ‘Startup Time’ for the time period ‘Today’. Does the moment when the value changes match with the value itself? In my case there it doesn’t: the startup time changes around 06:22 CEST, which is 04:22 UTC and not 05:22 UTC as reported by the integration.
I went through after posting. So next question is there any way to do it with a simple esp32 in replacement to the tplink router running Openwrt? Currently I am using a Asus 68U running tomato to do this job but I do face signal issue with that setup
Hello, I’m following those variables in the historical graph. This gives you a visibility on the progression. Also the forecast is updated through the day.