Reminder: this is an English language only forum. Posts not in English have been deleted.
Can someone help what is missing for merging of discovergy Integration?
Hey all!
Good news, last evening the PR for the Discovergy integration was merged. The 2023.7 version of Home Assistant will include this.
Hi,
first of all: Congratulations!
Now my question
Is there an official way/process to move from the custom_component âdiscovergyâ to the core component âdiscovergyâ without loosing history?
Thanks a lot
Joerg
Yes, just delete the custom component The core component and the custom component do not differ in terms of entity IDs.
Edit: If you are using the latest version of the custom component, this should not be a problem.
OK, that sounds great.
Will try it as soon as 2023.7.1 is out
Iâve got a problem: I canât reconfigure the discovergy addon. Steps I did: First I removed the custom component, then I tried to add the new integrated addon. When entering my credentials I get an âunexpexted errorâ. What am I doing wrong?
The log shows this:
Logger: homeassistant.components.discovergy.config_flow
Source: components/discovergy/config_flow.py:82
Integration: Discovergy (documentation, issues)
First occurred: 9:08:58 PM (1 occurrences)
Last logged: 9:08:58 PM
Unexpected error occurred while getting meters
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/anyio/streams/tls.py", line 131, in _call_sslobject_method
result = func(*args)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/ssl.py", line 921, in read
v = self._sslobj.read(len)
^^^^^^^^^^^^^^^^^^^^^^
ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2576)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/httpcore/backends/asyncio.py", line 34, in read
return await self._stream.receive(max_bytes=max_bytes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/streams/tls.py", line 196, in receive
data = await self._call_sslobject_method(self._ssl_object.read, max_bytes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/streams/tls.py", line 138, in _call_sslobject_method
data = await self.transport_stream.receive()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 1203, in receive
await self._protocol.read_event.wait()
File "/usr/local/lib/python3.11/asyncio/locks.py", line 213, in wait
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
yield
File "/usr/local/lib/python3.11/site-packages/httpcore/backends/asyncio.py", line 32, in read
with anyio.fail_after(timeout):
File "/usr/local/lib/python3.11/site-packages/anyio/_core/_tasks.py", line 119, in __exit__
raise TimeoutError
TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 261, in handle_async_request
raise exc
File "/usr/local/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request
response = await connection.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpcore/_async/connection.py", line 96, in handle_async_request
return await self._connection.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpcore/_async/http11.py", line 120, in handle_async_request
raise exc
File "/usr/local/lib/python3.11/site-packages/httpcore/_async/http11.py", line 99, in handle_async_request
) = await self._receive_response_headers(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpcore/_async/http11.py", line 163, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpcore/_async/http11.py", line 199, in _receive_event
data = await self._network_stream.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpcore/backends/asyncio.py", line 31, in read
with map_exceptions(exc_map):
File "/usr/local/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/pydiscovergy/discovergy.py", line 47, in _get
response = await client.get(API_BASE + path, params=params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1757, in get
return await self.request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1617, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1719, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 352, in handle_async_request
with map_httpcore_exceptions():
File "/usr/local/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/discovergy/config_flow.py", line 82, in _validate_and_save
await pydiscovergy.Discovergy(
File "/usr/local/lib/python3.11/site-packages/pydiscovergy/discovergy.py", line 66, in get_meters
response = await self._get("/meters")
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydiscovergy/discovergy.py", line 52, in _get
raise DiscovergyClientError from exc
pydiscovergy.error.DiscovergyClientError
Could by Discovergy, according to their forum they have an outage right now. Iâm unable to reconfigure the integration as well. Try again later (could be a while ).
You are right, retried it now and it worked.
Hi, I have installed the new integration in version 2023.7.1. Thank you for the implementation. I get 3 value. Two values are fine but the value âGesamtproduktionâ is high different.
Did you mean the daily production value??? My current daily value is 4,62 kWh and I received the value 1,3435 kWh in the field âGesamtproduktionâ. Could it be???
Kind regards,
wesseli
Hi,
I have checked the sensor code for the ELECTRICITY_SENSORS sensor.py in the new integration. The voltage values are missing. The following keys for the voltage values are wrong:
phase1Voltage
phase2Voltage
phase3Voltage
The keys must to be renamed to voltate1, voltage2 and voltage 3!!! Please look in the json file.
wesseli
Hi, my Discovergy stopped working. I was asked to reconfigure. Added my username and password but it keeps failing. Checked the Discovergy website and my username and password works there. Am I doing something wrong?
Nope, their API is currently offline. The API is currently returning an error.
Edit: Actually there is pretty much offline. The dashboard says my meter isnât sending data since 11 AM.
Okay, guess it will come back online soon.
I think not According to their community forum, the recovery may take the whole weekend:
Iâm sure weâll survive
So, after the last update my meter is unavailable again. Is this a Home Assistant or Discovery problem?
The problem was my own. I never deleted the HACS integration. I am now on the official integration. Works 100%.