MQTT Fan not working in HomeKit since upgrade to HA 109

Since upgrading to 109 HomeKit reports the following error at startup. Anyone else have this problem?

Log Details (ERROR)

Logger: homeassistant.components.homekit
Source: components/homekit/util.py:202
Integration: HomeKit (documentation, issues)
First occurred: 9:00:55 AM (1 occurrences)
Last logged: 9:00:55 AM

Failed to create a HomeKit accessory for fan.master_bedroom_fan

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/homekit/init.py”, line 423, in add_bridge_accessory
acc = get_accessory(self.hass, self.driver, state, aid, conf)
File “/usr/src/homeassistant/homeassistant/components/homekit/init.py”, line 327, in get_accessory
return TYPES[a_type](hass, driver, name, state.entity_id, aid, config)
File “/usr/src/homeassistant/homeassistant/components/homekit/type_fans.py”, line 90, in init
self.update_state(state)
File “/usr/src/homeassistant/homeassistant/components/homekit/type_fans.py”, line 170, in update_state
hk_speed_value = self.speed_mapping.speed_to_homekit(speed)
File “/usr/src/homeassistant/homeassistant/components/homekit/util.py”, line 202, in speed_to_homekit
speed_range = self.speed_ranges[speed]
KeyError: ‘off’

Seems to be related to an error I had previously about speed settings. Interestingly enough, pre-109 the Fan worked fine in HomeKit. The upgrade seems to require the speed setting issue be resolved.

Resolved using this - Problems with HomeKit fan (MQTT) setup:(

1 Like

Confirming that delimiting: - ‘off’ with quotations worked for me as well.