Closed purcell-lab closed 1 year ago
Hmm bugger - not sure when I'm going to get a chance to have a look either
This issue seems to be around the default_mode argument here: https://github.com/bacco007/sensor.opennem/blame/a8e3e987e4ded27ae20ec2f6ec2d5efcd2a641ae/custom_components/opennem/sensor.py#L64
Which isn't allowed in a DeviceRegistry call: https://dev-docs.home-assistant.io/en/dev/api/helpers.html#homeassistant.helpers.device_registry.DeviceRegistry
I am unsure what this is trying to achieve, but deleting L64 seems to have brought the integration back to life, but I am unsure about other potential side effects.
I've made the change in my setup and I'll run it for a few days to see what the impacts are
Just installed, any word on this bug. Is it worth me pulling L64 from my install or is there a new release soon?
Broken for me as well, Do we know if we will see up update to resolve ?
Just FYI - I have removed L64 and it has been working fine for me so far.
On Tue, Sep 5, 2023 at 3:24 PM Ralphy140 @.***> wrote:
Broken for me as well, Do we know if we will see up update to resolve ?
— Reply to this email directly, view it on GitHub https://github.com/bacco007/sensor.opennem/issues/24#issuecomment-1705962251, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP72I6NSNXQQCCTJMUDFUT3XY2ZQJANCNFSM6AAAAAA24K2QGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Just upgraded to HA 2023.9 beta and the problems compound.
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:621
Integration: Sensor (documentation, issues)
First occurred: 3:59:19 PM (5 occurrences)
Last logged: 3:59:20 PM
opennem: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://opennem.org.au/', 'default_name': 'OpenNEM AU', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('opennem', 'a7ee906f3b8d7aec3092671872d4b716')}, 'manufacturer': 'OpenNEM', 'model': 'AU', 'name': 'OpenNEM AU'} for 'opennem' config entry: device info needs to either describe a device, link to existing device or provide extra information.
opennem: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://opennem.org.au/', 'default_name': 'OpenNEM NSW', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('opennem', 'a6530deacb28acd41c69b6bdee087f11')}, 'manufacturer': 'OpenNEM', 'model': 'NSW', 'name': 'OpenNEM NSW'} for 'opennem' config entry: device info needs to either describe a device, link to existing device or provide extra information.
opennem: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://opennem.org.au/', 'default_name': 'OpenNEM NEM', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('opennem', 'bd873550f63738f793cff632dd953fc8')}, 'manufacturer': 'OpenNEM', 'model': 'NEM', 'name': 'OpenNEM NEM'} for 'opennem' config entry: device info needs to either describe a device, link to existing device or provide extra information.
opennem: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://opennem.org.au/', 'default_name': 'OpenNEM SA', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('opennem', 'af278bf2ad16f99be4205756d81c45b1')}, 'manufacturer': 'OpenNEM', 'model': 'SA', 'name': 'OpenNEM SA'} for 'opennem' config entry: device info needs to either describe a device, link to existing device or provide extra information.
opennem: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://opennem.org.au/', 'default_name': 'OpenNEM QLD', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('opennem', 'aa67ae4b2192771ddb23243808cbf298')}, 'manufacturer': 'OpenNEM', 'model': 'QLD', 'name': 'OpenNEM QLD'} for 'opennem' config entry: device info needs to either describe a device, link to existing device or provide extra information.
Just upgraded to HA 2023.9 beta and the problems compound.
Logger: homeassistant.components.sensor Source: helpers/entity_platform.py:621 Integration: Sensor (documentation, issues) First occurred: 3:59:19 PM (5 occurrences) Last logged: 3:59:20 PM opennem: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://opennem.org.au/', 'default_name': 'OpenNEM AU', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('opennem', 'a7ee906f3b8d7aec3092671872d4b716')}, 'manufacturer': 'OpenNEM', 'model': 'AU', 'name': 'OpenNEM AU'} for 'opennem' config entry: device info needs to either describe a device, link to existing device or provide extra information. opennem: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://opennem.org.au/', 'default_name': 'OpenNEM NSW', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('opennem', 'a6530deacb28acd41c69b6bdee087f11')}, 'manufacturer': 'OpenNEM', 'model': 'NSW', 'name': 'OpenNEM NSW'} for 'opennem' config entry: device info needs to either describe a device, link to existing device or provide extra information. opennem: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://opennem.org.au/', 'default_name': 'OpenNEM NEM', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('opennem', 'bd873550f63738f793cff632dd953fc8')}, 'manufacturer': 'OpenNEM', 'model': 'NEM', 'name': 'OpenNEM NEM'} for 'opennem' config entry: device info needs to either describe a device, link to existing device or provide extra information. opennem: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://opennem.org.au/', 'default_name': 'OpenNEM SA', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('opennem', 'af278bf2ad16f99be4205756d81c45b1')}, 'manufacturer': 'OpenNEM', 'model': 'SA', 'name': 'OpenNEM SA'} for 'opennem' config entry: device info needs to either describe a device, link to existing device or provide extra information. opennem: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://opennem.org.au/', 'default_name': 'OpenNEM QLD', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('opennem', 'aa67ae4b2192771ddb23243808cbf298')}, 'manufacturer': 'OpenNEM', 'model': 'QLD', 'name': 'OpenNEM QLD'} for 'opennem' config entry: device info needs to either describe a device, link to existing device or provide extra information.
I deleted L63 default_name and it started working again. It appears that default_name and default_mode are resulting in invalid device info which results in the entities being rejected by this fix in 2023.9 https://github.com/home-assistant/core/pull/98150
I've published a release with both changes - https://github.com/bacco007/sensor.opennem/releases/tag/2023.09.1
Thanks that has reduced the breaking charges with .8 & .9 for me.
Version of the custom_component
OpenNEM: Version 2023.02.1 is starting
Configuration
Describe the bug
With the upload of Home Assistant 2023.8.beta it would appear that OpenNem custom integration is no longer functional as entites are no longer loaded:
Debug log