However, when Homekit starts, it gives the following complaint, and wont start:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/homekit/type_fans.py", line 157, in update_state
hk_speed_value = self.speed_mapping.speed_to_homekit(speed)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/homekit/util.py", line 201, in speed_to_homekit
speed_range = self.speed_ranges[speed]
KeyError: 'off'
Any ideas how I need to modify the ifan03 stuff in configuration.yaml?
As an FYI, HA doesn’t need the quotes around the “off” or any the others in the speed list. I have several fans set up and they all work fine without quotes. But apparently homekit needs them.
The more we use various parts of HA, the more we learn!
Thanks to both @finity for the configuration.yaml code, and also @myle for the quotes needed for the homekit integration for the ifan03 controllers!
As a side note, how would I change the structure above to add additional ifan03s for other ceiling fans. Would i just need a fans: clause above the individual fan definitions??
Can someone help me with the IFan02 Automation. i have a Sonoff Power Switch to control the IFan02, so if i switch off by using the switch, Ifan02 get disconnected from the WiFi ( this is due to i am cutting the power to the Ifan02) so that is normal.
Now if i switch on the power to the Ifan02 via the Sonoff wall Switch, Fan will not switch on right away it need time to connect to the WiFi Access Point and then have to use the Hassio App to switch on.
This is where i need the Automation to run- until Ifan02 find the WiFi Access-point and then get connected to the Hassio i need a script to look for the ifan02 status and if it is available then switch on the fan, if it is not available keep trying.
I have done this Manually by adding Automation Via the Hassio UI- and it works. but i think there is a short way i can achieve this with a simple code. ( I have 5 x Ifan02 and 3 x Ifan03) further more ifan03 has no issue i can always use the Remote on the wall even after tasmota installed.