Rinnai Heating/Cooling Wifi Module

Awesome work guys! I’ve been trying to get this up and running in HA for while, and now I’m one step closer.

I loaded up a HomeBridge docker container on Hassio (using this guide: https://community.home-assistant.io/t/tutorial-add-homebridge-to-hass-io-using-portainer/140423/4) and installed your plugin, which automatically found my Rinnai Touch, with 3 zones+fan+advperiod. It works perfectly in Homebridge, and Apple devices. There’s only a minor delay, and the only suggestion I have is automatically turning the circulation fan off when the heater/cooler is turned on, and vice versa. Looks like you need to turn the active one off first.

Now when HA automatically detects the new HomeBridge device and you select configure, it pulls the thermostat device in okay and works, however it has trouble importing the fan and zones.

Logs from HA below. Any suggestions??

David

2020-04-13 19:26:32 ERROR (MainThread) [homeassistant.components.switch] Entity id already exists - ignoring: switch.zoneswitch_a. Platform homekit_controller does not generate unique IDs
2020-04-13 19:26:32 ERROR (MainThread) [homeassistant.components.switch] Entity id already exists - ignoring: switch.zoneswitch_a. Platform homekit_controller does not generate unique IDs
2020-04-13 19:26:32 ERROR (MainThread) [homeassistant.components.switch] Entity id already exists - ignoring: switch.zoneswitch_a. Platform homekit_controller does not generate unique IDs
2020-04-13 19:26:32 ERROR (MainThread) [homeassistant.components.fan] Error while setting up homekit_controller platform for fan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 295, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 447, in _async_add_entity
    await entity.async_update_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 327, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/fan/__init__.py", line 181, in state_attributes
    if not hasattr(self, prop):
  File "/usr/src/homeassistant/homeassistant/components/homekit_controller/fan.py", line 91, in current_direction
    return HK_DIRECTION_TO_HA[direction]
KeyError: None
2020-04-13 19:26:33 ERROR (MainThread) [homeassistant.util.logging] Exception in async_write_ha_state when dispatching 'homekit_controller_0E:A4:6A:A9:B2:0A_state_updated': ()
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 297, in async_write_ha_state
    self._async_write_ha_state()  # type: ignore
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 327, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/fan/__init__.py", line 181, in state_attributes
    if not hasattr(self, prop):
  File "/usr/src/homeassistant/homeassistant/components/homekit_controller/fan.py", line 91, in current_direction
    return HK_DIRECTION_TO_HA[direction]
KeyError: None