- id: vacuum_leave alias: '[Vaccum] Clean after leaving home' trigger: - platform: zone entity_id: device_tracker.sm_g965f zone: zone.home event: leave condition: [] action: - service: vacuum.start data: {} entity_id: vacuum.robot_vacuum mode: single - id: vacuum_arive alias: '[Vaccum] Stop cleaning after arrival' trigger: - platform: zone entity_id: device_tracker.sm_g965f zone: zone.home event: enter condition: [] action: - service: vacuum.return_to_base data: {} entity_id: vacuum.robot_vacuum mode: single