Automate vacuum when leave home

Hi, I’m trying to create an automation (yaml), to start vacuuming home when i left it.
I already sat up location tracking with owntracks on my phone, no problem.
The code:

  alias: Clean home when Stefano leave it
  trigger:
    platform: state
    entity_id: device_tracker.stefano_mia2
    from: 'home'
    to: 'not_home'
    #Trying to set a DND mode, to not trigger this automation if I leave home at 2AM  
  condition:
    condition: time
    after: '8:00:00'
    before: '19:00:00'
  action:
    entity_id: vacuum.la_governante
    service: vacuum.start
  initial_state: true

It doesn’t work and the state goes from “home” to “not_home”, what’s wrong with my config? Any advice or help please?

Solved, was the inverted position of service and entity_id