- id: vacuum_leave alias: '[Vacuum] Clean after leaving home' trigger: - platform: state entity_id: input_select.home_mode to: Away action: - service: vacuum.start entity_id: vacuum.robot_vacuum mode: single - id: vacuum_arive alias: '[Vacuum] Stop cleaning after arrival' trigger: - platform: state entity_id: input_select.home_mode from: Away to: Home action: - service: vacuum.pause entity_id: vacuum.robot_vacuum - delay: seconds: 15 - service: vacuum.return_to_base entity_id: vacuum.robot_vacuum mode: single