I’m creating an automation in Home Assistant that triggers when I leave the house. The goal is to send a notification to my phone asking which rooms I’d like my Roborock Q5 Pro to clean. The options include the family room, kitchen, living room, hall, open areas (areas in the house without doors leading to other rooms), or the entire house. Once I make a selection, the automation waits for my response and sends the corresponding cleaning command to the vacuum. However, while I do receive a notification with all of the options on my phone, once I select the room I wish to clean, nothing happens. I’m not sure what the issue is, so any help or suggestions would be very much appreciated!
Here is the automation yaml that I have so far:
alias: Actionable Clean | House Area
description: ""
triggers:
- trigger: state
entity_id:
- device_tracker.<username>_iphone
from: home
to: not_home
conditions: []
actions:
- action: notify.mobile_app_<username>_iphone
data:
message: Which rooms would you like Roxy to clean?
title: Auto Cleaning
target: mobile_app_<username>_iphone
data:
actions:
- action: family_room
title: Family Room
- action: kitchen
title: Kitchen
- action: living_room
title: Living Room
- action: hall
title: Hall
- action: room_<room_number>
title: Room
- action: open_areas
title: Open Areas
- action: entire_house
title: Entire House
- action: skip_cleaning
title: Skip Cleaning
- wait_for_trigger:
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: family_room
id: clean_family_room
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: kitchen
id: clean_kitchen
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: living_room
id: clean_living_room
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: hall
id: clean_hall
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: room_<room_number>
id: clean_room
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: open_areas
id: clean_open_areas
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: entire_house
id: clean_entire_house
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: skip_cleaning
id: clean_skip_cleaning
timeout:
hours: 0
minutes: 3
seconds: 0
continue_on_timeout: false
- choose:
- conditions:
- condition: trigger
id: clean_family_room
sequence:
- action: vacuum.send_command
target:
entity_id: vacuum.q5_pro
data:
command: app_segment_clean
params:
- segments:
- 16
- conditions:
- condition: trigger
id: clean_kitchen
sequence:
- action: vacuum.send_command
target:
entity_id: vacuum.q5_pro
data:
command: app_segment_clean
params:
- segments:
- 17
- conditions:
- condition: trigger
id: clean_living_room
sequence:
- action: vacuum.send_command
target:
entity_id: vacuum.q5_pro
data:
command: app_segment_clean
params:
- segments:
- 24
- conditions:
- condition: trigger
id: clean_living_room
sequence:
- action: vacuum.send_command
target:
entity_id: vacuum.q5_pro
data:
command: app_segment_clean
params:
- segments:
- 24
- conditions:
- condition: trigger
id: clean_hall
sequence:
- action: vacuum.send_command
target:
entity_id: vacuum.q5_pro
data:
command: app_segment_clean
params:
- segments:
- 23
- conditions:
- condition: trigger
id: clean_room
sequence:
- action: vacuum.send_command
target:
entity_id: vacuum.q5_pro
data:
command: app_segment_clean
params:
- segments:
- 21
- conditions:
- condition: trigger
id: clean_open_areas
sequence:
- action: vacuum.send_command
target:
entity_id: vacuum.q5_pro
data:
command: app_segment_clean
params:
- segments:
- 16
- 17
- 23
- 24
- conditions:
- condition: trigger
id: clean_entire_house
sequence:
- action: vacuum.send_command
target:
entity_id: vacuum.q5_pro
data:
command: app_segment_clean
params:
- segments:
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 26
mode: single