explosivo22 / rinnaicontrolr-ha

Rinnai Control-R integration for Home Assistant
Apache License 2.0
50 stars 3 forks source link

Which entity id is needed to call service? #39

Closed chrismcneil closed 1 year ago

chrismcneil commented 1 year ago

A recent update removed the water heater entity from home assistant so I no longer know which entity to call the service against to trigger recirculation.

I have tried reinstalling the integration but no luck in getting the entity back.

explosivo22 commented 1 year ago

You should have an entity that begins with water_heater as the type. You don't have a water heater under controls when you click on the device of the integration?

chrismcneil commented 1 year ago

I used to but it is no longer there. When setting up an automation the call service to "Rinnai Control-R Water Heater: Start Recirculation" under Entity I get "No matching entities found".

Under the device I only have sensors.

Where I used to have the hotwater heater on one of my dashboards I have

image
explosivo22 commented 1 year ago

Very interesting. You said you have removed the integration and added it back in? I wonder if removing it and removing all references to the water heater might help. I have seen where references have caused entities to get stuck. I am not sure why it would of removed in the first place or why it isn't adding back.

chrismcneil commented 1 year ago
  1. Removed integration from Devices/Integrations
  2. Removed integration from HACS
  3. Removed any references on dashboards
  4. Removed any references in automations
  5. Restarted HA
  6. Added integration in HACS and restarted
  7. Configured integration image
explosivo22 commented 1 year ago

Very interesting. Did you have any log messages that appeared during setup?

What is your water heater model if I can ask?

KoleBarnes commented 1 year ago

Having the same problem. This is the error I am getting don't know if is the same error. Version 1.3.3.

Logger: homeassistant.components.water_heater
Source: custom_components/rinnai/water_heater.py:79
Integration: Water Heater (documentation, issues)
First occurred: 1:29:36 PM (4 occurrences)
Last logged: 1:43:37 PM

Error adding entities for domain water_heater with platform rinnai
Error while setting up rinnai platform for water_heater
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 605, in _async_add_entity
    capabilities=entity.capability_attributes,
  File "/usr/src/homeassistant/homeassistant/components/water_heater/__init__.py", line 198, in capability_attributes
    self.hass, self.min_temp, self.temperature_unit, self.precision
  File "/config/custom_components/rinnai/water_heater.py", line 79, in temperature_unit
    return UnitOfTemperature.CELCIUS
  File "/usr/local/lib/python3.10/enum.py", line 437, in __getattr__
    raise AttributeError(name) from None
AttributeError: CELCIUS
explosivo22 commented 1 year ago

Thanks @KoleBarnes. I think I might be able to get this fixed from this.

explosivo22 commented 1 year ago

Go ahead and give the update a try and this should hopefully get everything back to normal.

chrismcneil commented 1 year ago

It's back and I can now use it to call the service thanks!