joggs / home_assistant_ebeco

Integration for Ebeco thermostats
28 stars 14 forks source link

Inegration shows thermostats but no devices or entities #28

Closed slowtraintodawn closed 1 year ago

slowtraintodawn commented 1 year ago

Hi,

not sure what I've changed but the integration shows no devices or entities. I can authenticate and enumerate the thermostats and can can add the thermostat to HA but the devices or entities never show up.

I had previously succesfully connected to one thermostat but had problems adding the second so I removed the EBECO integration. This is when the problem started. I've tried reloading, reinstalling (a couple of times, manually and via HACS)

Is there a cache file that I need to delete.

Happy to provide logs (and a coffee once I get it working :) )

Cheers, Paul

EBECO
illwillSE commented 1 year ago

Same issue here, I don't know when it stopped working (and I only have one thermostat) but no entities are available anymore.

torbenb89 commented 1 year ago

I have the issue as well. Could be in connection with updating to Home Assistant 2023.8.0 but I am not completely sure. Anyhow my Ebeco integration is not working anymore.

robinostlund commented 1 year ago

Also got this issue while updating today, issue seems that main_temperature_sensor is not supported as an argument anymore. Which is used in entity.py:

class EbecoEntity(CoordinatorEntity):
    """Parent class for Ebeco Entities."""

    def __init__(self, instance, device_key, main_sensor):
        """Initialize common aspects of an Ebeco sensor."""
        super().__init__(instance["coordinator"])
        self.async_change = instance["async_change"]
        self.device_key = device_key
        self._attr_device_info = DeviceInfo(
            identifiers={(DOMAIN, device_key)},
            manufacturer="Ebeco",
            main_temperature_sensor=main_sensor,
            name=self._device["displayName"],
            building=self._device["building"]["name"],
            suggested_area="Bathroom",
        )

Found some more errors:

2023-08-03 08:20:16.318 ERROR (MainThread) [homeassistant.components.climate] Error adding entities for domain climate with platform ebeco
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'building'
2023-08-03 08:20:16.320 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform ebeco
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'building'
2023-08-03 08:20:16.321 ERROR (MainThread) [homeassistant.components.climate] Error while setting up ebeco platform for climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'building'
2023-08-03 08:20:16.322 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up ebeco platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'building'