You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have changed the line for the IP address in the example as follows:
ip_address = await goodwe.search_inverters()
and now I receive the following error message:
python3 /etc/openhab/scripts/solargo_test.py
Traceback (most recent call last):
File "/etc/openhab/scripts/solargo_test.py", line 33, in
asyncio.run(get_runtime_data())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/etc/openhab/scripts/solargo_test.py", line 7, in get_runtime_data
ip_address = await goodwe.search_inverters()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/goodwe/init.py", line 127, in search_inverters
result = await command.execute(UdpInverterProtocol("255.255.255.255", 48899, 1, 0))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/goodwe/protocol.py", line 456, in execute
response_future = await protocol.send_request(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/goodwe/protocol.py", line 182, in send_request
await self._connect()
File "/usr/local/lib/python3.11/dist-packages/goodwe/protocol.py", line 124, in _connect
self._transport, self.protocol = await asyncio.get_running_loop().create_datagram_endpoint(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 1386, in create_datagram_endpoint
raise exceptions[0]
File "/usr/lib/python3.11/asyncio/base_events.py", line 1373, in create_datagram_endpoint
await self.sock_connect(sock, remote_address)
File "/usr/lib/python3.11/asyncio/selector_events.py", line 634, in sock_connect
return await fut
^^^^^^^^^
File "/usr/lib/python3.11/asyncio/selector_events.py", line 642, in _sock_connect
sock.connect(address)
PermissionError: [Errno 13] Permission denied
What can I do to search and use the IP address of the inverter.
Thank you very much
The text was updated successfully, but these errors were encountered:
Hi,
I have changed the line for the IP address in the example as follows:
ip_address = await goodwe.search_inverters()
and now I receive the following error message:
python3 /etc/openhab/scripts/solargo_test.py
Traceback (most recent call last):
File "/etc/openhab/scripts/solargo_test.py", line 33, in
asyncio.run(get_runtime_data())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/etc/openhab/scripts/solargo_test.py", line 7, in get_runtime_data
ip_address = await goodwe.search_inverters()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/goodwe/init.py", line 127, in search_inverters
result = await command.execute(UdpInverterProtocol("255.255.255.255", 48899, 1, 0))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/goodwe/protocol.py", line 456, in execute
response_future = await protocol.send_request(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/goodwe/protocol.py", line 182, in send_request
await self._connect()
File "/usr/local/lib/python3.11/dist-packages/goodwe/protocol.py", line 124, in _connect
self._transport, self.protocol = await asyncio.get_running_loop().create_datagram_endpoint(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 1386, in create_datagram_endpoint
raise exceptions[0]
File "/usr/lib/python3.11/asyncio/base_events.py", line 1373, in create_datagram_endpoint
await self.sock_connect(sock, remote_address)
File "/usr/lib/python3.11/asyncio/selector_events.py", line 634, in sock_connect
return await fut
^^^^^^^^^
File "/usr/lib/python3.11/asyncio/selector_events.py", line 642, in _sock_connect
sock.connect(address)
PermissionError: [Errno 13] Permission denied
What can I do to search and use the IP address of the inverter.
Thank you very much
The text was updated successfully, but these errors were encountered: