Has anyone successfully integrated Roomba in Homekit yet? I integrated Roomba in Home Assistant and can toggle the robot via a card on home but it is not showing up in Homekit. All others do. Any ideas?
You can do this easily with a template switch. Change the entity_id to be whatever your Roomba us, and then expose the homekit_vacuum_bedroom in your HomeKit config section.
One other piece I just added in my own config is the battery level of the Roomba, since the HomeKit component now includes a linked_battery_sensor option. I do this by:
Creating a template sensor for the Roomba’s battery:
Linking that sensor to the Roomba’s switch in your HomeKit config:
homekit:
<all your existing crap>
entity_config:
switch.homekit_vacuum_bedroom:
linked_battery_sensor: sensor.homekit_vacuum_bedroom_battery
Note that you’ll need to reset the vacuum’s switch via the homekit.reset_accessory in order for HomeKit to realize the vacuum switch has now changed and has a battery value.
I don’t think entity_config takes an array – you need to remove the - in front of switch.homekit_vacuum_roomba perhaps? I don’t have them on my config.
Also note sure where the type: switch part came from. I found it necessary to create a template switch as described in the earlier post. If you do that, you don’t need to add type: switch anywhere.
Late response, but if it’s of assistance to anyone… this works for me. The homekit card doesn’t directly show the battery percentage, but if you open the details it’s there.
thanks for your work.
I’m also looking to integrate my Roomba vacuum with HomeKit.
I looked at your scripts, but I don’t see where to add them.
Could you tell me which steps to reproduce to add your scripts?