Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Growatt SPH - modbus connection (values not updated) #854

Open
Erisvaenget27 opened this issue Apr 9, 2024 · 0 comments
Open

Growatt SPH - modbus connection (values not updated) #854

Erisvaenget27 opened this issue Apr 9, 2024 · 0 comments
Labels
bug Something isn't working non solax non solax

Comments

@Erisvaenget27
Copy link

Describe the bug

The values after a given time period does not get updated.

I would either need to re-load the integration or reboot the system to get the correct values. After a given time period, I need to follow the same procedure.

Integration Version

2024.4.2

Homeassistant core version

2024.4.2

Inverter brand

Growatt SPH

Plugin used

plugin_growatt.py

Serial prefix

NA

Connection Method

RS485-USB

Detailed Error Log

2024-04-09 12:00:02.236 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/101'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:00:02.297 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/201'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:00:02.357 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/301'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:00:02.449 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/401'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:02:04.135 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/101'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:02:04.219 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/201'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:02:04.280 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/301'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:02:04.344 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/401'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:04:06.125 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/101'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:04:06.186 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/201'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:04:06.244 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/301'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:04:06.305 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/401'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:06:08.116 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/101'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:06:08.173 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/201'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:06:08.234 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/301'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:06:08.315 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/401'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:08:10.170 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/101'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:08:10.228 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/201'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:08:10.286 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/301'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:08:10.344 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/401'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:09:49.107 WARNING (Recorder) [homeassistant.components.recorder.db_schema] Event data for call_service exceed maximum size of 32768 bytes. This can cause database performance issues; Event data will not be stored
2024-04-09 12:09:49.116 WARNING (MainThread) [homeassistant.helpers.state] Integration sensor does not support reproduce state
2024-04-09 12:09:49.121 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_charger_end_time_1: unavailable
2024-04-09 12:09:49.121 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_charger_end_time_2: unavailable
2024-04-09 12:09:49.121 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_charger_end_time_3: unavailable
2024-04-09 12:09:49.121 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_charger_start_time_1: unavailable
2024-04-09 12:09:49.122 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_charger_start_time_2: unavailable
2024-04-09 12:09:49.122 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_charger_start_time_3: unavailable
2024-04-09 12:09:49.122 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_charger_switch: unavailable
2024-04-09 12:09:49.122 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_charger_time_1: unavailable
2024-04-09 12:09:49.123 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_charger_time_2: unavailable
2024-04-09 12:09:49.123 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_charger_time_3: unavailable
2024-04-09 12:09:49.123 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_grid_end_time_1: unavailable
2024-04-09 12:09:49.123 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_grid_end_time_2: unavailable
2024-04-09 12:09:49.123 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_grid_end_time_3: unavailable
2024-04-09 12:09:49.124 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_grid_start_time_1: unavailable
2024-04-09 12:09:49.124 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_grid_start_time_2: unavailable
2024-04-09 12:09:49.124 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_grid_start_time_3: unavailable
2024-04-09 12:09:49.124 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_grid_time_1: unavailable
2024-04-09 12:09:49.124 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_grid_time_2: unavailable
2024-04-09 12:09:49.125 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_grid_time_3: unavailable
2024-04-09 12:09:49.127 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_load_end_time_1: unavailable
2024-04-09 12:09:49.127 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_load_end_time_2: unavailable
2024-04-09 12:09:49.127 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_load_end_time_3: unavailable
2024-04-09 12:09:49.128 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_load_start_time_1: unavailable
2024-04-09 12:09:49.128 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_load_start_time_2: unavailable
2024-04-09 12:09:49.128 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_load_start_time_3: unavailable
2024-04-09 12:09:49.128 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_load_time_1: unavailable
2024-04-09 12:09:49.128 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_load_time_2: unavailable
2024-04-09 12:09:49.129 WARNING (MainThread) [homeassistant.components.select.reproduce_state] Invalid state specified for select.growatt6_load_time_3: unavailable
2024-04-09 12:09:49.129 WARNING (MainThread) [homeassistant.components.number.reproduce_state] Invalid state specified for number.growatt6_battery_minimum_capacity: unavailable
2024-04-09 12:09:49.129 WARNING (MainThread) [homeassistant.components.number.reproduce_state] Invalid state specified for number.growatt6_charger_upper_soc: unavailable
2024-04-09 12:09:49.135 WARNING (MainThread) [homeassistant.helpers.state] Integration button does not support reproduce state
2024-04-09 12:10:05.637 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [546708612288] Modbus Error: [Input/Output] ERROR: No response received after 3 retries
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2543, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2580, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 971, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1043, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/button/init.py", line 138, in _async_press_action
await self.async_press()
File "/config/custom_components/solax_modbus/button.py", line 92, in async_press
await self._hub.async_write_registers_multi(
File "/config/custom_components/solax_modbus/init.py", line 603, in async_write_registers_multi
resp = await self._client.write_registers(address, payload, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pymodbus/client/base.py", line 180, in async_execute
raise ModbusIOException(
pymodbus.exceptions.ModbusIOException: Modbus Error: [Input/Output] ERROR: No response received after 3 retries
2024-04-09 12:10:12.090 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/101'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:10:12.148 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/201'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:10:12.205 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/301'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:10:12.261 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/401'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:12:13.121 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/101'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:12:13.205 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/201'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:12:13.265 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/301'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2024-04-09 12:12:13.324 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://192.168.1.60/ISAPI/System/IO/inputs/401'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403

Additional context

No response

@Erisvaenget27 Erisvaenget27 added bug Something isn't working non solax non solax labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non solax non solax
Projects
None yet
Development

No branches or pull requests

1 participant