Everyone, I was able to get this to work. Wow, the instructions on the Home Assistant landing page for Shark are lacking. It doesn’t say it at all, but you actually have to create buttons for each room, and automations for each room. After a ton of digging this is what worked for me:
Step 1- Click the hamburger menu in the top left. Go to Settings. Click “Devices and Services”. Then click “Helpers” in the bottom right corner. We need to create a helper first.
Step 2 - Click the blue “Create Helper” button. Choose “Button” when it gives you the list of Helper types. Give the button any name and any icon that you want and click “Create”. This will be for one room only so probably choose the name of the room as the name (like “Kitchen”).
Step 3 - We need to get the entity ID. Click the 3 dots next to the button helper you just created and choose “Show Settings”. Copy down the Entity ID of the button. it will be something like input_button.name_of_button
Step 4 - Go back to the hamburger menu in the top left. Go to Settings. Then click “Automations and Scenes”. We are going to create an automation.
Step 5 - Hit the blue Create Automation button. Then click “Create new automation” (from scratch).
Step 6 - Click Add Trigger. Then click Entity. Then click State. In the Entity dropdown, find the button you just made. For the trigger, choose “When [Name of your button] changes state or any attributes”. Pick your button that you made in the Helper menu from the Entity dropdown. Do not touch any other fields on this screen. That’s all we need for the Trigger. You can hit the little arrow to minimize that if you are on mobile and move down to the “Then Do” section. If you accidentally hit save don’t worry - jsut go back into the edit section of the automation and keep going.
Step 7 - This is the toughest part. IUnder “Then do” click “Add Action”. Click “Shark IQ” - if you don’t see Shark, you may have to click “Other actions” at the bottom and then it will reveal it. Click “Clean Room”. I actually didn’t find this before so I did custom YAML. But you might be able to select rooms from the dropdowns that appear. If not, this YAML should work (click the 3 dots and choose “Edit YAML” to edit the YAML):
service: sharkiq.clean_room
metadata: {}
data:
rooms:
- “Kitchen”
target:
entity_id: vacuum.robovac
A couple of important notes - my vacuum’s name is “robovac” - you need to change that to your vacuum’s name. The name of the room has to match exactly what you have in the SharkIQ app and be in quotes. In my example “Kitchen”.
Repeat this process for every room you want to target. You can do multiple rooms for one button too by either selecting multiple rooms or adding dashes with the room names below the first one in the YAML. I haven’t tried it but I’ve seen others say that works.
I hope this helps someone spend less time than I did figuring this out, it took me hours!!