Sooth the Beast with Music

I have been trying to setup an automation so music would play on my Sonos when I arrive home… based upon my mobile phone connecting to the wifi network. Here’s my automation yaml file…

alias: Play Music on Sonos
description: ''
trigger:
  - platform: state
    entity_id: device_tracker.galaxy_s10
    to: home
    from: away
condition: []
action:
  - service: media_player.play_media
    data:
      media_content_type: playlist
      media_content_id: Dance
    target:
      device_id: 726d0a6ca9d18a9423d471dd0839915e
mode: single

When I click on Run Actions the music starts playing, which is awesome… but also tells me the trigger isn’t working.

Open to ideas or suggestions please.

Probably has to be:

from: not_home

also you are missing an “e” in your title.

sooth
/suːθ/
noun
archaic
noun: sooth

  1. truth.

Similar-sounding words
sooth is sometimes confused with soothe

Restarted the host and appears to now be working with…

from: not_home