Open jullit31 opened 2 years ago
same issue here
having the issue as well with SG10RT
only 6 sensors with SH10RT...
I see that config_generator.py
is wayy incomplete.
Same here, only 9 Sensors. Only 5 have values.
I have added most of main parameters in the new pull request. Hopefully the owner will merge it. A bunch of other statistical data was left out, like daily and monthly stats. There's something wrong with meter's data, but it's coming from inverter like that.
agree, from my SG12RT I see just 2 :( . Please merge @elektrinis change
@elektrinis I have SG12RT. After merge I have got +4 sensors but still not complete list of scraped modbus registers as you have changed. Debug shows many registers return the state but some not appear as entities?
2022-11-03 22:25:47 INFO Inverter: Successfully scraped in 1.747578 secs
2022-11-03 22:25:47 DEBUG MQTT: Publishing: inverter/sg12rt/registers : {"device_type_code": "sg12rt", "run_state": "ON", "nominal_active_power": 12.0, "output_type": "3P4L", "daily_power_yields": 5.5, "total_power_yields": 93, "internal_temperature": 25.2, "mppt_1_voltage": 0.0, "mppt_1_current": 0.0, "total_dc_power": 0, "phase_a_voltage": 0.0, "phase_b_voltage": 0.0, "phase_c_voltage": 0.0, "total_reactive_power": 0, "power_factor": 0.0, "grid_frequency": 0.0, "daily_running_time": 516, "start_stop": "Start", "power_limitation_switch": "Enable", "power_limitation_setting": 110.0, "power_factor_setting": 0.0, "reactive_power_adjustment_mode": "Enable Q(U)", "reactive_power_percentage_setting": 0.0, "power_limitation_adjustment": 13.2, "reactive_power_adjustment": 0.0, "export_to_grid": 0, "import_from_grid": 0, "timestamp": "2022-11-3 22:25:45"}
2022-11-03 22:25:47 INFO MQTT: Published
2022-11-03 22:25:47 DEBUG Processing Time: 1.75 secs
I don't have time to create sensors from scraped data. Any help will be appreciated.
After the update, all important data is now displayed for me. Many Thanks.
I also just got an additional 4 sensors:
Sorry guys I can't add/test additional entities for SG series, as mine is SH... Feel free to experiment by modifying the file using other entities as example.
How do I get the additional Values? I just added a Battery to my SH6.0RT but nothing changed in the Addon. I see everything in the MQTT messages but they don't get exposed to Home Assistant.
@elektrinis how can I get your updated version into my home assistant installation? Do I need to modify any files? The addon installed is version 0.3.8 @ttvt is 0.3.8 the latest version with the additions from elekrinis? If yes, why am I missing the Sensors? Any way to rediscover the inverter or something?
@elektrinis how can I get your updated version into my home assistant installation? Do I need to modify any files?
In the end I have just installed it as custom addon and experimented with different options. Just copy the files to /addons/ folder and then make the changes you want. Note this folder is only accessible via samba share, and then it appears as available in the store. Google around to get more info how it's done.
However I don't really understand how this works, as some of my entities, like "Battery level" just became unavailable, seemingly without a reason. They are still available in mqtt messages. Also, when added to the file, not all parameters appear as entities. Not sure how to debug this.
Also please note that sungrow SH series can't be trusted, as a lot of data coming from it is fake. For example, ingoing and outgoing power is always equal, however there should be some losses (especially evident due to it running +15C from ambient). Also this, multiplying current*voltage should be 1353W, but is reported as 640W. When checking daily charged energy and comparing that to SOC, 20% of energy is "missing". So it's either SOC being miscalculated or the energy/power. I have raised this issue with sungrow distributor and they ghosted me after we got technical.
@elektrinis thank you for the detailed explanation. Tried to add some sensors for the Batterie by configuring them via MQTT in config.yaml. But I found out that the "Daily Generation" is no longer usable for me. It includes generation from batterie discharging and that doesn't make any sense when using it in the energy dashboard. I just switched to a more simplistic approach via direkt modbus integration. https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant Here you get all the registers exposed as entities and also you can control your inverter from within Home Assistant. It worked for me out of the box.
This looks super cool, will certainly test it. Thank you.
I just installed the add-on and connected to an SH6.0RT inverter with smart meter,
scan_level
is set toDETAIL
. However, MQTT auto-discovered only 9 sensors:The full MQTT message contains a lot more sensors though:
Is there anywhere I can set which sensors are shown?