schlac / hacs-integration-discovergy Goto Github PK
View Code? Open in Web Editor NEWHACS port of Discovergy integration for Home Assistant
License: Apache License 2.0
HACS port of Discovergy integration for Home Assistant
License: Apache License 2.0
Unfortunately there are no more entities from the plugin. Anyone having the same problem?
Might be related:
https://community.home-assistant.io/t/discovergy-power-meter/73142/30
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: homeassistant.loader
Source: custom_components/discovergy/sensor.py:74
Integration: Discovergy
First occurred: 22:48:49 (1 occurrences)
Last logged: 22:48:49
Unexpected exception importing platform custom_components.discovergy.sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 779, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 796, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/discovergy/sensor.py", line 74, in
DiscovergySensorEntityDescription(
TypeError: DiscovergySensorEntityDescription.init() got an unexpected keyword argument 'native_precision'
Hi,
is it possible to set decimal places for the values in the dashboard of home assistant. At this time there are 6 digits after the comma (f.e. 31234,123456 kWh).
It will better if it is possible to set the number of digits to own values (0, 1, 2, ...).
Regards
Dieter
Unable to prepare setup for platform 'discovergy.sensor': Platform not found (Exception importing custom_components.discovergy.sensor).
Unexpected exception importing platform custom_components.discovergy.sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 842, in get_platform cache[full_name] = self._import_platform(platform_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 859, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/config/custom_components/discovergy/sensor.py", line 63, in <module> DiscovergySensorEntityDescription( TypeError: DiscovergySensorEntityDescription.__init__() missing 2 required positional arguments: 'alternative_keys' and 'scale'
Since Version 04.0. (latest HomeAssistant Core) the discovergy addon doesn‘t work anymore. Restart and complete re-install doesn‘t work. After re-install all entities are lost.
This is the error message in the log:
Logger: homeassistant.setup
Source: setup.py:338
First occurred: 09:23:14 (1 occurrences)
Last logged: 09:23:14
Unable to prepare setup for platform discovergy.sensor: Platform not found (cannot import name 'UnitOfElectricPotential' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)).
Hi,
the discovergy integration is not working any more. The Error Protocoll says:
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: homeassistant.config_entries
Source: custom_components/discovergy/init.py:74
Integration: Discovergy
First occurred: 09:47:27 (2 occurrences)
Last logged: 09:58:04Error setting up entry for discovergy
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/discovergy/init.py", line 74, in async_setup_entry
"""Unload a config entry."""
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'
I am running on
Home Assistant 2023.5.3
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.3 - latest
I just updated to the last version of the integration, but this did not help.
Thanks for your support!
Since yesterday, the integration can no longer be loaded. There are two entries in the log file. A new installation did not help either.
Home Assistant 2023.3.1
Supervisor 2023.01.1
Operating System 9.5
Frontend 20230302.0 - latest
Logger: homeassistant.loader
Source: custom_components/discovergy/sensor.py:74
Integration: Discovergy
First occurred: 07:14:45 (1 occurrences)
Last logged: 07:14:45
Unexpected exception importing platform custom_components.discovergy.sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 779, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 796, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/discovergy/sensor.py", line 74, in
DiscovergySensorEntityDescription(
TypeError: DiscovergySensorEntityDescription.init() got an unexpected keyword argument 'native_precision'
Logger: homeassistant.setup
Source: setup.py:344
First occurred: 07:14:45 (1 occurrences)
Last logged: 07:14:45
Unable to prepare setup for platform discovergy.sensor: Platform not found (Exception importing custom_components.discovergy.sensor).
2023-02-02 10:15:18.690 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up discovergy platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/discovergy/sensor.py", line 228, in async_setup_entry DiscovergySensor( File "/config/custom_components/discovergy/sensor.py", line 256, in __init__ self.precision = precision AttributeError: can't set attribute 'precision' 2023-02-02 10:15:25.082 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up discovergy platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/discovergy/sensor.py", line 228, in async_setup_entry DiscovergySensor( File "/config/custom_components/discovergy/sensor.py", line 256, in __init__ self.precision = precision AttributeError: can't set attribute 'precision'
After the Update the integration stopped working. This is the error I found
During startup following error occurs:
Logger: homeassistant.components.sensor
Source: custom_components/discovergy/sensor.py:256
Integration: Sensor (documentation, issues)
First occurred: 8:13:43 AM (1 occurrences)
Last logged: 8:13:43 AM
Error while setting up discovergy platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/discovergy/sensor.py", line 228, in async_setup_entry
DiscovergySensor(
File "/config/custom_components/discovergy/sensor.py", line 256, in init
self.precision = precision
AttributeError: can't set attribute 'precision'
HA: 2023.2.1
Integration version: 0.4.1
Ich habe das Problem, dass nach einem Neustart die Werte nicht "gezogen" werden. Wenn ich anschließend die Integration deaktiviere und wieder aktiviere sind die Werte wieder da.
Logfile zeigt folgendes:
Source: custom_components/discovergy/__init__.py:56
Integration: Discovergy
First occurred: 20:58:13 (1 occurrences)
Last logged: 20:58:13
Error setting up entry Discovergy Energy Meter for discovergy
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 281, in handle_async_request
) = await self._pool.handle_async_request(
File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 234, in handle_async_request
response = await connection.handle_async_request(
File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection.py", line 136, in handle_async_request
self.socket = await self._open_socket(timeout)
File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection.py", line 163, in _open_socket
return await self._backend.open_tcp_stream(
File "/usr/local/lib/python3.9/site-packages/httpcore/_backends/auto.py", line 44, in open_tcp_stream
return await self.backend.open_tcp_stream(
File "/usr/local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 154, in open_tcp_stream
stream = await TLSStream.wrap(
File "/usr/local/lib/python3.9/contextlib.py", line 137, in __exit__
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.9/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions
raise to_exc(exc) from None
httpcore.ConnectTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pydiscovergy/discovergy.py", line 50, in _get
response = await client.get(API_BASE + path)
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1740, in get
return await self.request(
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1494, in request
response = await self.send(
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1586, in send
response = await self._send_handling_auth(
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1616, in _send_handling_auth
response = await self._send_handling_redirects(
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1655, in _send_handling_redirects
response = await self._send_single_request(request, timeout)
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1699, in _send_single_request
) = await transport.handle_async_request(
File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 276, in handle_async_request
(
File "/usr/local/lib/python3.9/contextlib.py", line 137, in __exit__
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectTimeout
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 304, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/discovergy/__init__.py", line 56, in async_setup_entry
await hass.data[DOMAIN][entry.entry_id].get_meters()
File "/usr/local/lib/python3.9/site-packages/pydiscovergy/discovergy.py", line 204, in get_meters
response = await self._get("/meters")
File "/usr/local/lib/python3.9/site-packages/pydiscovergy/discovergy.py", line 55, in _get
raise DiscovergyClientError from exc
pydiscovergy.error.DiscovergyClientError
Zudem musste ich die Credentials ändern, da mein altes Password mit einer Raute nicht funktionierte.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.