Open Sonnenwerk opened 3 weeks ago
Thanks for reporting.
Can you maybe post the output from the get-real-data-new
and get-real-data
commands from the hoymiles-wifi
lib? https://github.com/suaveolent/hoymiles-wifi
Please only keep the first 4 digits of the inverter serial number.
Get-real-data Response: dtu_sn: "4130****" timestamp: 1718219437 device_number: 1 package_number: 1 pv_data { pv_sn: 21451488897285 pv_port: 1 pv_vol: 2293 pv_cur: 2308 pv_power: 2285 pv_energy_total: 3983 grid_vol: 3978 grid_vol_max: 3968 grid_freq: 5000 pv_fault_num: 253 pv_fault_cnt: 3 pv_link_status: 1 pv_send_power: 100 }
Get-real-data-new Response: device_serial_number: "4130" timestamp: 1718219481 active_power: 1 firmware_version: 1 tgs_data { serial_number: 2145 firmware_version: 1 voltage_phase_A: 2300 voltage_phase_B: 2302 voltage_phase_C: 2290 voltage_line_AB: 3988 voltage_line_BC: 3980 voltage_line_CA: 3969 frequency: 4999 temperature: 252 warning_number: 3 link_status: 1 modulation_index_signal: 100 } pv_data { serial_number: 2145 port_number: 1 voltage: 394 power: 2 energy_total: 73438 energy_daily: 1014 error_code: 50331648 } pv_data { serial_number: 2145 port_number: 2 voltage: 394 power: 1 energy_total: 256 energy_daily: 4 error_code: 50331648 } pv_data { serial_number: 2145** port_number: 3 voltage: 403 current: 1 power: 5 energy_total: 115204 energy_daily: 1730 error_code: 50331648 } pv_data { serial_number: 2145*** port_number: 4 voltage: 403 current: 1 power: 5 energy_total: 118009 port_number: 4 voltage: 403 current: 1 power: 5 energy_total: 118009 energy_daily: 1809 error_code: 50331648 } pv_data { serial_number: 2145 port_number: 5 voltage: 402 current: 1 power: 4 energy_total: 137607 energy_daily: 1946 error_code: 50331648 } pv_data { serial_number: 21451 port_number: 6 voltage: 402 current: 1 power: 6 energy_total: 142208 energy_daily: 2059 error_code: 50331648 }
Alright got it.
This is a three phase inverter. I need to refactor the code to suppor these two. Might take some time though.
If you want to manually read them in the mean time you can change line 83
of the sensors.py
from key="sgs_data[<inverter_count>].active_power",
to "active_power",
and line 124
from key="sgs_data[<inverter_count>].temperature",
to tgs_data[<inverter_count>].temperature
.
I guess i am not so sure with that changes - and if it still does an autoupdate update later on, if i change the values now. So i will just wait ..thanks already for replying that fast !
@Sonnenwerk I just pushed support for three phase inverters. You can try it by updating to main
branch.
You need to delete the device config first and then set up the integration again for it to work properly as I did not implement any migration functions.
Please let me know if it works as intended :)
I deleted the devices and the ip-adress. Then i did a restart..but then..i guess i did not the right things. Currently when i install pip install hoymiles-wifi i get version 0.2.1. Github says latest release 0.2.3. So i uninstalled with pip uninstall ... and reinstalled.
Restored my backup from yesterday and tried again. Hoymiles new install shows 0.2.3 in ha, but the inverter still does not show a name. i tried to import the repository with https://github.com/suaveolent/ha-hoymiles-wifi ..is this the right url to input as a repository ?
Yes it seems right, but what you need to do after install is „upgrade“ to main branch since I did not yet release a new version.
So:
Hmm..that update worked..but i just can see one DTU now and no inverter..is this maybe related to "night". I will check tomorrow. --> i re checked the update..was too fast yesterday. i can see "main", and i can select it, but it is not taken into the field value.so my yesterday update was to 2.3 again.
You are right, I experience a similar behavior. I will push a new version tomorrow. Maybe this will help.
@Sonnenwerk I just pushed a new pre-release version 0.2.4-dev
.
To install it proceed as follows:
0.2.4-dev
Now your inverter should show up.
Installation works fine now. Results are as follows:
Thanks for testing.
Alright that’s a bummer. This means I cannot distinguish between 800W and 1000W.
I need to combine them as 800W/1000W
Can you look into those values, please ?
pv_vol: 2293 pv_cur: 2308 pv_power: 2285 pv_energy_total: 3983
I only get one of those values. I guess it is pv_cur.
With my DTU/Device Combo, i get the DC information for each port, but the AC values and the temp and some others are missing. Any input i can give you to add this information ?