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

SI6.0 seems to constantly loose its connection via Speedwire #33

Open
medicus07 opened this issue Jan 17, 2025 · 15 comments
Open

SI6.0 seems to constantly loose its connection via Speedwire #33

medicus07 opened this issue Jan 17, 2025 · 15 comments

Comments

@medicus07
Copy link

medicus07 commented Jan 17, 2025

I use 4 SMA devices (STP25, STP10, SI6 and HM2).
All were recognized as Speedwire devices via the discovery and were also configured as such.
The SI6 is a device from 2018 with an older firmware that I do not want to update (complete reconfiguration).
The entities of the SI6 switch back and forth between “not available” and normal status approx. every 20-30 seconds.

Home Assistant:
Core
2025.1.2
Supervisor
2024.12.3
Operating System
14.1

ha-pysmaplus:
0.4.7

Image

Image

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/pysmaplus/__init__.py", line 129, in async_update_data
    await sma.read(sensor_def, entry.data[CONF_DEVICE])
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 514, in read
    raise e
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 509, in read
    await asyncio.wait_for(fut, timeout=self._protocol._overallTimeout)
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
    async with timeouts.timeout(timeout):
               ~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
    raise TimeoutError from exc_val
TimeoutError
2025-01-17 21:56:27.849 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314223, 0] @ ['62', '66']
2025-01-17 21:56:27.849 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:56:27.849 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6735, 0] @ ['62', '66']
2025-01-17 21:56:30.508 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:56:30.508 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427482, 0] @ ['62', '66']
2025-01-17 21:56:30.781 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:56:35.511 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:56:36.504 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:56:36.504 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427483, 0] @ ['62', '66']
2025-01-17 21:56:36.780 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:56:36.879 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314225, 0] @ ['62', '66']
2025-01-17 21:56:36.879 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:56:36.879 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6737, 0] @ ['62', '66']
2025-01-17 21:56:37.683 WARNING (MainThread) [custom_components.pysmaplus] Update Failed <class 'TimeoutError'> 192.168.1.30/speedwireinv/3006201251
2025-01-17 21:56:37.683 WARNING (MainThread) [custom_components.pysmaplus] 
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/pysmaplus/__init__.py", line 129, in async_update_data
    await sma.read(sensor_def, entry.data[CONF_DEVICE])
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 514, in read
    raise e
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 509, in read
    await asyncio.wait_for(fut, timeout=self._protocol._overallTimeout)
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
    async with timeouts.timeout(timeout):
               ~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
    raise TimeoutError from exc_val
TimeoutError
2025-01-17 21:56:42.510 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:56:42.510 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427485, 0] @ ['62', '66']
2025-01-17 21:56:42.777 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:56:46.674 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:56:47.684 WARNING (MainThread) [custom_components.pysmaplus] Update Failed <class 'TimeoutError'> 192.168.1.30/speedwireinv/3006201251
2025-01-17 21:56:47.684 WARNING (MainThread) [custom_components.pysmaplus] 
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/pysmaplus/__init__.py", line 129, in async_update_data
    await sma.read(sensor_def, entry.data[CONF_DEVICE])
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 514, in read
    raise e
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 509, in read
    await asyncio.wait_for(fut, timeout=self._protocol._overallTimeout)
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
    async with timeouts.timeout(timeout):
               ~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
    raise TimeoutError from exc_val
TimeoutError
2025-01-17 21:56:47.871 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314227, 0] @ ['62', '66']
2025-01-17 21:56:47.871 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:56:47.872 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6739, 0] @ ['62', '66']
2025-01-17 21:56:48.521 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:56:48.521 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427486, 0] @ ['62', '66']
2025-01-17 21:56:48.786 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:56:54.535 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:56:54.536 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427487, 0] @ ['62', '66']
2025-01-17 21:56:54.803 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:56:55.156 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:56:55.844 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314229, 0] @ ['62', '66']
2025-01-17 21:56:55.844 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:56:55.844 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6741, 0] @ ['62', '66']
2025-01-17 21:57:00.493 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:57:00.494 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427488, 0] @ ['62', '66']
2025-01-17 21:57:00.741 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:03.646 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:04.386 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314231, 0] @ ['62', '66']
2025-01-17 21:57:04.386 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:57:04.387 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6743, 0] @ ['62', '66']
2025-01-17 21:57:06.548 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:57:06.549 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427490, 0] @ ['62', '66']
2025-01-17 21:57:06.817 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:12.536 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:57:12.536 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427491, 0] @ ['62', '66']
2025-01-17 21:57:12.729 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:12.800 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:13.144 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314233, 0] @ ['62', '66']
2025-01-17 21:57:13.144 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:57:13.144 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6745, 0] @ ['62', '66']
2025-01-17 21:57:18.559 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:57:18.559 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427492, 0] @ ['62', '66']
2025-01-17 21:57:18.822 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:21.846 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:22.629 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314235, 0] @ ['62', '66']
2025-01-17 21:57:22.629 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:57:22.629 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6747, 0] @ ['62', '66']
2025-01-17 21:57:24.544 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:57:24.544 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427494, 0] @ ['62', '66']
2025-01-17 21:57:24.813 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:29.688 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:30.155 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00236D00: [1737113721, 1737147450, 3600, 2274, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:30.321 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:57:30.321 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427495, 0] @ ['62', '66']
2025-01-17 21:57:30.419 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:32.194 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314237, 0] @ ['62', '66']
2025-01-17 21:57:32.194 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:57:32.194 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6748, 0] @ ['62', '66']
2025-01-17 21:57:36.508 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:57:36.509 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427496, 0] @ ['62', '66']
2025-01-17 21:57:36.786 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:41.041 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:41.920 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314239, 0] @ ['62', '66']
2025-01-17 21:57:41.920 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:57:41.920 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6750, 0] @ ['62', '66']
2025-01-17 21:57:42.549 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:57:42.549 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427498, 0] @ ['62', '66']
2025-01-17 21:57:42.816 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:48.529 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:57:48.529 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427499, 0] @ ['62', '66']
2025-01-17 21:57:48.784 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:51.434 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:57:52.689 WARNING (MainThread) [custom_components.pysmaplus] Update Failed <class 'TimeoutError'> 192.168.1.30/speedwireinv/3006201251
2025-01-17 21:57:52.689 WARNING (MainThread) [custom_components.pysmaplus] 
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/pysmaplus/__init__.py", line 129, in async_update_data
    await sma.read(sensor_def, entry.data[CONF_DEVICE])
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 514, in read
    raise e
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 509, in read
    await asyncio.wait_for(fut, timeout=self._protocol._overallTimeout)
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
    async with timeouts.timeout(timeout):
               ~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
    raise TimeoutError from exc_val
TimeoutError
2025-01-17 21:57:52.691 ERROR (MainThread) [custom_components.pysmaplus] Error fetching pysmaplus data: 
2025-01-17 21:57:52.804 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314242, 0] @ ['62', '66']
2025-01-17 21:57:52.804 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:57:52.804 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6753, 0] @ ['62', '66']
2025-01-17 21:57:54.557 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:57:54.558 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427500, 0] @ ['62', '66']
2025-01-17 21:57:54.827 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:00.089 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:00.498 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:58:00.498 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427502, 0] @ ['62', '66']
2025-01-17 21:58:00.761 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:00.806 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314244, 0] @ ['62', '66']
2025-01-17 21:58:00.806 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:58:00.807 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6755, 0] @ ['62', '66']
2025-01-17 21:58:06.550 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:58:06.550 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427503, 0] @ ['62', '66']
2025-01-17 21:58:06.826 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:08.227 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:09.264 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314245, 0] @ ['62', '66']
2025-01-17 21:58:09.264 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:58:09.264 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6756, 0] @ ['62', '66']
2025-01-17 21:58:12.546 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:58:12.546 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427504, 0] @ ['62', '66']
2025-01-17 21:58:12.833 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:18.456 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:18.547 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:58:18.547 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427505, 0] @ ['62', '66']
2025-01-17 21:58:18.822 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:20.336 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314248, 0] @ ['62', '66']
2025-01-17 21:58:20.337 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:58:20.337 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6759, 0] @ ['62', '66']
2025-01-17 21:58:24.545 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:58:24.545 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427507, 0] @ ['62', '66']
2025-01-17 21:58:24.809 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:28.189 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:29.696 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314249, 0] @ ['62', '66']
2025-01-17 21:58:29.697 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:58:29.697 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6761, 0] @ ['62', '66']
2025-01-17 21:58:30.512 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:58:30.512 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427508, 0] @ ['62', '66']
2025-01-17 21:58:30.772 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:36.523 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:58:36.523 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427509, 0] @ ['62', '66']
2025-01-17 21:58:36.779 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:37.591 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:37.621 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:39.683 WARNING (MainThread) [custom_components.pysmaplus] Update Failed <class 'TimeoutError'> 192.168.1.30/speedwireinv/3006201251
2025-01-17 21:58:39.683 WARNING (MainThread) [custom_components.pysmaplus] 
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/pysmaplus/__init__.py", line 129, in async_update_data
    await sma.read(sensor_def, entry.data[CONF_DEVICE])
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 514, in read
    raise e
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 509, in read
    await asyncio.wait_for(fut, timeout=self._protocol._overallTimeout)
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
    async with timeouts.timeout(timeout):
               ~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
    raise TimeoutError from exc_val
TimeoutError
2025-01-17 21:58:39.685 ERROR (MainThread) [custom_components.pysmaplus] Error fetching pysmaplus data: 
2025-01-17 21:58:40.394 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314252, 0] @ ['62', '66']
2025-01-17 21:58:40.394 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:58:40.394 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6764, 0] @ ['62', '66']
2025-01-17 21:58:42.530 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:58:42.530 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427511, 0] @ ['62', '66']
2025-01-17 21:58:42.803 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:47.562 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:47.867 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314253, 0] @ ['62', '66']
2025-01-17 21:58:47.867 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:58:47.867 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6765, 0] @ ['62', '66']
2025-01-17 21:58:48.514 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:58:48.514 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427512, 0] @ ['62', '66']
2025-01-17 21:58:48.790 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:54.543 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:58:54.543 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427513, 0] @ ['62', '66']
2025-01-17 21:58:54.803 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:54.831 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [546635294912] Error handling message: Unknown error (unknown_error) Michael Bernius from 192.168.1.97 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.2 Safari/605.1.15)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 537, in handle_manifest_list
    raise int_or_exc
homeassistant.loader.IntegrationNotFound: Integration 'homee' not found.
2025-01-17 21:58:57.174 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:58:58.046 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314255, 0] @ ['62', '66']
2025-01-17 21:58:58.047 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:58:58.047 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6768, 0] @ ['62', '66']
2025-01-17 21:59:00.507 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:59:00.507 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427515, 0] @ ['62', '66']
2025-01-17 21:59:00.767 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [69, 69, 69, 69, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:59:04.491 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:59:05.967 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314257, 0] @ ['62', '66']
2025-01-17 21:59:05.967 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:59:05.967 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6769, 0] @ ['62', '66']
2025-01-17 21:59:06.508 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:59:06.508 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427516, 0] @ ['62', '66']
2025-01-17 21:59:06.758 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:59:12.514 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:59:12.514 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427517, 0] @ ['62', '66']
2025-01-17 21:59:12.785 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:59:15.289 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:59:16.684 WARNING (MainThread) [custom_components.pysmaplus] Update Failed <class 'TimeoutError'> 192.168.1.30/speedwireinv/3006201251
2025-01-17 21:59:16.684 WARNING (MainThread) [custom_components.pysmaplus] 
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/pysmaplus/__init__.py", line 129, in async_update_data
    await sma.read(sensor_def, entry.data[CONF_DEVICE])
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 514, in read
    raise e
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 509, in read
    await asyncio.wait_for(fut, timeout=self._protocol._overallTimeout)
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
    async with timeouts.timeout(timeout):
               ~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
    raise TimeoutError from exc_val
TimeoutError
2025-01-17 21:59:16.686 ERROR (MainThread) [custom_components.pysmaplus] Error fetching pysmaplus data: 
2025-01-17 21:59:17.201 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314260, 0] @ ['62', '66']
2025-01-17 21:59:17.202 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:59:17.202 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6772, 0] @ ['62', '66']
2025-01-17 21:59:18.530 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:59:18.531 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427518, 0] @ ['62', '66']
2025-01-17 21:59:18.802 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:59:24.041 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00493307: [5550, 5550, 5550, 5550, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:59:24.554 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469101: [110380021, 0] @ ['62', '66']
2025-01-17 21:59:24.554 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00469201: [5427520, 0] @ ['62', '66']
2025-01-17 21:59:24.823 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00464E01: [70, 70, 70, 70, 1] @ ['62', '66', '70', '74', '78']
2025-01-17 21:59:24.866 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462607: [19314261, 0] @ ['62', '66']
2025-01-17 21:59:24.867 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462707: [113, 0] @ ['62', '66']
2025-01-17 21:59:24.867 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00462807: [6773, 0] @ ['62', '66']
2025-01-17 21:59:25.567 INFO (MainThread) [custom_components.pysmaplus] Fetching pysmaplus data recovered
2025-01-17 21:59:26.441 INFO (MainThread) [custom_components.pysmaplus] Update pysma 192.168.1.31/speedwireinv/1901348931
2025-01-17 21:59:28.394 INFO (MainThread) [custom_components.pysmaplus] Update pysma localhost/speedwireem/3004905827
2025-01-17 21:59:28.436 DEBUG (MainThread) [custom_components.pysmaplus] Finished fetching pysmaplus data in 1.996 seconds (success: True)

Image
@medicus07 medicus07 changed the title SI6.0 seems to constantly lose its connection via Speedwire SI6.0 seems to constantly loose its connection via Speedwire Jan 17, 2025
@medicus07
Copy link
Author

After restarting HA, the device can no longer be set up...

Logger: homeassistant.config_entries
Quelle: config_entries.py:640
Erstmals aufgetreten: 19:33:18 (2 Vorkommnisse)
Zuletzt protokolliert: 19:34:00

Error setting up entry SI 6.0H-12 (Sunny Island 6.0H) (sw3006201251) for pysmaplus
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/pysmaplus/__init__.py", line 103, in async_setup_entry
    sensor_def = await sma.get_sensors(entry.data[CONF_DEVICE])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 497, in get_sensors
    raise e
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 492, in get_sensors
    await asyncio.wait_for(fut, timeout=self._protocol._overallTimeout)
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
    async with timeouts.timeout(timeout):
               ~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

and

Logger: homeassistant.config_entries
Quelle: config_entries.py:640
Erstmals aufgetreten: 19:33:40 (2 Vorkommnisse)
Zuletzt protokolliert: 19:33:49

Error setting up entry SI 6.0H-12 (Sunny Island 6.0H) (sw3006201251) for pysmaplus
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/pysmaplus/__init__.py", line 95, in async_setup_entry
    sma = await getPysmaInstance(hass, entry.data)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/pysmaplus/__init__.py", line 88, in getPysmaInstance
    await sma.new_session()
  File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 434, in new_session
    raise SmaConnectionException(
        f"No connection to device: {self._host}:9522  ({self._protocol._failedCounter}/{self._protocol._sendCounter})"
    )
pysmaplus.exceptions.SmaConnectionException: No connection to device: 192.168.1.30:9522  (3/3)

@medicus07
Copy link
Author

`Logger: pysmaplus.device_speedwire
Quelle: runner.py:154
Erstmals aufgetreten: 21. Januar 2025 um 21:36:13 ### (19853 Vorkommnisse)
Zuletzt protokolliert: 08:38:23

No Handler for 00469201: [5445576, 0] @ ['62', '66']
No Handler for 00464E01: [41, 41, 41, 41, 1] @ ['62', '66', '70', '74', '78']
No Handler for 00469101: [110431377, 0] @ ['62', '66']
No Handler for 00464E01: [42, 42, 42, 42, 1] @ ['62', '66', '70', '74', '78']
No Handler for 00469201: [5445577, 0] @ ['62', '66']
`

@littleyoda
Copy link
Owner

1.) Speedwire funktioniert leider nicht in allen Fällen und ich habe bislang den Grund noch nicht gefunden:
siehe #18

Ich warte noch auf jemanden, der folgende Integration ausprobiert und mir berichtet, ob diese Integration auch das Problem hat oder ob es in diesem Fall ohne Probleme geht:
https://github.com/Wired-Square/homeassistant-sma-sw

2.) siehe #20
Ab einer der nächsten Vesionen werden die Hinweise nur noch einmal am Tag(oder so) kommen.

@medicus07
Copy link
Author

Versuche spätestens am Wochenende die Integration homeassistant-sma-sw zu testen... melde mich. Danke.

@michaelkrause-SAP
Copy link

Ich nutze EVCC als Addon zu HA und hole mir die summierten Werte über die Mqtt schnittstellle und bin mega zufrieden: https://docs.evcc.io/docs/reference/configuration/mqtt

@medicus07
Copy link
Author

Kenne EVCC, ist für meine Zwecke nicht brauchbar, weil mir die min polling time mit 30 sec zu lang ist. Trotzdem danke!

@medicus07
Copy link
Author

medicus07 commented Jan 23, 2025

Versuche spätestens am Wochenende die Integration homeassistant-sma-sw zu testen... melde mich. Danke.

Integration habe ich installiert, Devices funktionieren aber nicht, Entitäten sind nicht verfügbar.

Dependencies

This integration relies on the library at https://github.com/Wired-Square/sma-query

The sma-query library should first be installed into Home Assistants virtual environment.

Hab keine Ahnung, wie ich das machen soll...

@littleyoda
Copy link
Owner

ok. den Punkt habe ich überlesen. Schade, doch nicht so einfach zu testen.

Leider kann ich dir aktuell nicht helfen.

@littleyoda
Copy link
Owner

Merke gerade, dass ich den falschen Link eingefügt habe. Sorry.

https://github.com/eddso/ha_sma_speedwire

@michaelkrause-SAP
Copy link

@medicus07 : bei mir steht das interval auf 10s # control cycle interval, läuft sehr stabil.
Ich hatte es (als es noch auf separater Hardware war) schon auf 5 Sekunden ... ging auch gut.
Der Riesen Vorteil ist halt, dass Du Dir die Werte nicht selbst zusammenrechnen musst ... aber wenn du kein EVCC brauchst, dann wäre es wohl auch "oversized". .. lg Michael

@ghe6hs3
Copy link

ghe6hs3 commented Jan 26, 2025

Hallo,
ggf. hat uns SMA hier einen Bärendienst erwiesen. Vor einigen Tagen stellte meine VM, die mir die Daten vom Home Manager einsammelt und in den MQTT Broker schiebt, mit dem gleichen Verhalten den Dienst eingestellt. Ich konnte feststellen, dass die Last anstieg und keine Daten abgerufen wurden.
Da ich gerade den Umstieg von openHAB auf HA evaluiere, habe ich geschaut ob eine Umsetzung mit HA besser funktioniert - bin aber auf das gleiche Verhalten gestoßen und dann hier gelandet. Da ich im Debugging in HA noch nicht ganz fit bin, habe ich mir die Kommunikation angeschaut. Mir ist im Log aufgefallen, dass SMA mir vor einigen Tagen ein Update in den Home Manager eingespielt hat. Die Verbindung scheint jetzt nach einiger Zeit geschlossen zu werden. Ich vermute, dass die Implementierung meiner SMAtoMQTT-Lösung und ggf. auch dieses Addon von einer offenen Verbindung ausgehen.

Ich habe mir ein Python oder Bash Script gesucht, um die Verbindung zu testen bzw. meine Vermutung zu bestätigen. https://github.com/datenschuft/SMA-EM stellt ein einfaches Python Script bereit, was den Zweck erfüllt. Ich habe sma-em-measurement.py so umgeschrieben, dass es nicht in einer Endlosschleife läuft - mir reicht der einmalige Abruf um die Verbindung zu öffnen. Damit ließ sich das Problem in HA direkt beheben, alle Daten wurden sofort wieder ausgelesen und angezeigt. Ein Cronjob alle 2 min, der das Script mit dem einmaligen Abruf ausführt, sorgt jetzt dafür dass HA permanent seine Daten erhält.

Klar - das ist keine Lösung. Aber es zeigt vielleicht, an welcher Stelle das Problem schlummern könnte.

@littleyoda
Copy link
Owner

@ghe6hs3
Das Problem hat aber nichts mit dem oben beschriebenen Problem zu tun.
Wenn ich dich richtig verstanden habe, hast du Probleme mit dem Sunny Home Manager 2 oder einem Energymeter.
Auf diese wird ganz anders zugegriffen, als auf die Wechselrichter.

=> https://github.com/littleyoda/pysma/blob/master/doc/faq_DE.md#die-verschiedenen-zugriffsmethoden

@CSolero
Copy link

CSolero commented Jan 29, 2025

Hallo!

Habe leider auch das Problem, dass bei meinem
"STP 5000TL-20"
ständig die Verbindung verloren geht:

Meldung 1:

Logger: custom_components.pysmaplus
Quelle: helpers/update_coordinator.py:411
Integration: SMA Devices Plus (Dokumentation, Probleme)
Erstmals aufgetreten: 28. Januar 2025 um 09:15:26 (719 Vorkommnisse)
Zuletzt protokolliert: 08:46:00

Error fetching pysmaplus data:

Meldung 2:

Logger: custom_components.pysmaplus
Quelle: custom_components/pysmaplus/init.py:135
Integration: SMA Devices Plus (Dokumentation, Probleme)
Erstmals aufgetreten: 28. Januar 2025 um 09:15:26 (884 Vorkommnisse)
Zuletzt protokolliert: 08:46:10

Update Failed <class 'TimeoutError'> 192.168.5.42/speedwireinv/304600738

Meldung3:

Logger: custom_components.pysmaplus
Quelle: custom_components/pysmaplus/init.py:129
Integration: SMA Devices Plus (Dokumentation, Probleme)
Erstmals aufgetreten: 28. Januar 2025 um 09:15:26 (884 Vorkommnisse)
Zuletzt protokolliert: 08:46:10

Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
return await fut
^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/pysmaplus/init.py", line 129, in async_update_data
await sma.read(sensor_def, entry.data[CONF_DEVICE])
File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 514, in read
raise e
File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 509, in read
await asyncio.wait_for(fut, timeout=self._protocol._overallTimeout)
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
async with timeouts.timeout(timeout):
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in aexit
raise TimeoutError from exc_val
TimeoutError

Außerdem habe ich das Problem, dass nach einem Neustart keine Verbindung zustande kommt und ich jedesmal die Integration neu laden muss, damit sie funktioniert!

Logger: homeassistant.config_entries
Quelle: config_entries.py:640
Erstmals aufgetreten: 28. Januar 2025 um 09:08:40 (1 Vorkommnisse)
Zuletzt protokolliert: 28. Januar 2025 um 09:08:40

Error setting up entry STP 5000TL-20 (sw304600738) for pysmaplus
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
return await fut
^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/pysmaplus/init.py", line 103, in async_setup_entry
sensor_def = await sma.get_sensors(entry.data[CONF_DEVICE])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 497, in get_sensors
raise e
File "/usr/local/lib/python3.13/site-packages/pysmaplus/device_speedwire.py", line 492, in get_sensors
await asyncio.wait_for(fut, timeout=self._protocol._overallTimeout)
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
async with timeouts.timeout(timeout):
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in aexit
raise TimeoutError from exc_val
TimeoutError

Vielleicht kann jemand damit was anfangen und mir Helfen.

Auf jeden Fall mal Danke im Vorraus.

Lg

@NightlyStar
Copy link

also diese ha_sma_speedwire-Implementierung läuft da besser.
Kein Ausfall
Ich besitze ein STP20000TL-30 und nutze da auch Speedwire

@littleyoda
Copy link
Owner

Danke für die Rückmeldung. Gibst du in einer Woche oder so nochmal Rückmeldung, ob es immer noch problemlos läuft?
Ich würde mir dann mal die Unterschiede anschauen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants