vincentwolsink / home_assistant_micronova_agua_iot

Home Assistant integration controlling heating devices connected via the Agua IOT platform of Micronova
Apache License 2.0
25 stars 15 forks source link

Climate entity error: this entity is unavailable #72

Closed saragrigolin closed 9 months ago

saragrigolin commented 9 months ago

Hi everyone, In the last days I'm having some problems with this integration. The climate entity is unavailable but the new sensors seems to work fine. I have a Ravelli stove, I'm running v0.2.4 of Micronova Agua IOT integration and I tried to remove and add the pellet stove again and again a lot of times.

Could the cause of the problem be that the stove is off and I haven't turned it on yet since I reinstalled the integration a few days ago? It seems strange to me because the climate entity has always been available even during the summer when the stove was off.

Here's the logs:

2023-10-19 00:35:38.171 ERROR (MainThread) [homeassistant.components.climate] Error adding entities for domain climate with platform aguaiot
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1057, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 779, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 879, in _async_write_ha_state
    state, attr = self._async_generate_attributes()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 822, in _async_generate_attributes
    attr.update(self.state_attributes or {})
                ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 316, in state_attributes
    hass, self.current_temperature, temperature_unit, precision
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/aguaiot/climate.py", line 208, in current_temperature
    return self._device.get_register_value(self._temperature_get_key)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'AguaIOTHeatingDevice' object has no attribute '_temperature_get_key'
2023-10-19 00:35:38.192 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Screenshot 2023-10-19 at 00 40 47 Screenshot 2023-10-19 at 00 40 56
vincentwolsink commented 9 months ago

Hi @saragrigolin, can you please attach the diagnostics file for the integration?

saragrigolin commented 9 months ago

@vincentwolsink here's the diagnostic file: Home Assistant Config Entry.json.txt. Honestly I don't know why in the file the aguaiot version is 0.2.1 when on HACS I see that I don't have updates and the last installed version is 0.2.4.

vincentwolsink commented 9 months ago

It seems your stove is configured to measure the room temperature via the sensor on the remote, but that doesn't return any temperature. Does it show current room temperature in your Ravelli app?

saragrigolin commented 9 months ago

Thanks a lot, I found the issue. I thought it was an integration problem, since it came up after updating HA, but instead I just found out that at the same time my remote died - I still have to use the stove after last summer so I didn't notice it.