mkaiser / Sungrow-SHx-Inverter-Modbus-Home-Assistant

Sungrow SH Integration for Home Assistant for SH3K6, SH4K6, SH5K-20, SH5K-V13, SH3K6-30, SH4K6-30, SH5K-30, SH3.RS, SH3.6RS, SH4.0RS, SH5.0RS, SH6.0RS, SH5.0RT, SH6.0RT, SH8.0RT, SH10RT, SH5.0RT-20, SH6.0RT-20, SH8.0RT-20, SH10RT-20, SH5.0RT-V112, SH6.0RT-V112, SH8.0RT-V112, SH10RT-V112, SH5.0RT-V122, SH6.0RT-V122, SH8.0RT-V122, SH10RT-V122, SH4.6R
374 stars 95 forks source link

Multiple: expected float for dictionary value @ data['value'] in log #401

Open gjsiiger opened 2 weeks ago

gjsiiger commented 2 weeks ago

I'm seeing a lot of errors in the log when reloading YAML config, when restarting Home Assistant or when the external EMS is updating parameters.

2024-11-11 21:19:55.145 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: SungrowSHx: Error: device: 1 address: 5740 -> pymodbus returned isError True 2024-11-11 21:19:57.084 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: SungrowSHx: Error: device: 1 address: 13073 -> Modbus Error: [Connection] Not connected[AsyncModbusTcpClient 192.168.198.174:502] 2024-11-11 21:19:57.127 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_max_soc_input_slider_update] sungrow inverter max SoC input slider update: Error executing script. Invalid data for call_service at pos 1: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.128 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_max_soc_input_slider_update] Error while executing automation automation.sungrow_inverter_max_soc_input_slider_update: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.133 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_min_soc_input_slider_update] sungrow inverter min SoC input slider update: Error executing script. Invalid data for call_service at pos 1: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.134 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_min_soc_input_slider_update] Error while executing automation automation.sungrow_inverter_min_soc_input_slider_update: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.142 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_export_power_limit_update] sungrow inverter export power limit update: Error executing script. Invalid data for call_service at pos 1: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.142 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_export_power_limit_update] Error while executing automation automation.sungrow_inverter_export_power_limit_update: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.159 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_reserved_backup_soc_input_slider_update] sungrow inverter reserved backup SoC input slider update: Error executing script. Invalid data for call_service at pos 1: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.160 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_reserved_backup_soc_input_slider_update] Error while executing automation automation.sungrow_inverter_reserved_backup_soc_input_slider_update: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.163 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_update_battery_max_charge_power_input_slider_update] sungrow inverter update battery max charge power input slider update: Error executing script. Invalid data for call_service at pos 1: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.164 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_update_battery_max_charge_power_input_slider_update] Error while executing automation automation.sungrow_inverter_update_battery_max_charge_power_input_slider_update: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.194 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_update_battery_max_discharge_power_input_slider_update] sungrow inverter update battery max discharge power input slider update: Error executing script. Invalid data for call_service at pos 1: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.195 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_update_battery_max_discharge_power_input_slider_update] Error while executing automation automation.sungrow_inverter_update_battery_max_discharge_power_input_slider_update: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.200 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_update_battery_charging_start_power_input_slider_update] sungrow inverter update battery charging start power input slider update: Error executing script. Invalid data for call_service at pos 1: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.201 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_update_battery_charging_start_power_input_slider_update] Error while executing automation automation.sungrow_inverter_update_battery_charging_start_power_input_slider_update: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.216 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_update_battery_discharging_start_power_input_slider_update] sungrow inverter update battery discharging start power input slider update: Error executing script. Invalid data for call_service at pos 1: expected float for dictionary value @ data['value'] 2024-11-11 21:19:57.217 ERROR (MainThread) [homeassistant.components.automation.sungrow_inverter_update_battery_discharging_start_power_input_slider_update] Error while executing automation automation.sungrow_inverter_update_battery_discharging_start_power_input_slider_update: expected float for dictionary value @ data['value']

Your Sungrow inverter:

Home Assistant version:

modbus_sungrow.yaml:

Inverter Firmware Status:

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Gnarfoz commented 1 week ago

Looks very odd, but the second line already says that there's a communication problem between Home Assistant and your inverter. I think this probably not a problem with this project.