Phone Ringing state not triggering automation

Hi all, I want to set up a quick automation where my PC pauses music when my phone rings. I’ve set it all up, but for some reason the automation isn’t triggered when my phone actually rings.

This is the setup:

When I receive a call, it is changing the entity state
image

Any ideas why the automation isn’t being triggered? Thanks

What does the trace say?

we can only see the trigger in teh screenshot, did you also add a condition?

Yes, sorry there is a condition. This is the yaml

alias: Mute PC on phone ringing
description: “”
trigger:

  • platform: state
    entity_id: sensor.jon_s_phone_phone_state
    from: idle
    to: offhook
  • platform: state
    entity_id: sensor.jon_s_phone_phone_state
    from: ringing
    to: offhook
  • platform: state
    entity_id: sensor.jon_s_phone_phone_state
    from: offhook
    to: idle
  • platform: state
    entity_id:
    • sensor.jon_s_phone_phone_state
      from: idle
      to: ringing
      condition:
  • condition: state
    entity_id: device_tracker.sm_s918b
    state: home
    enabled: false
    action:
  • service: media_player.volume_mute
    target:
    entity_id: media_player.jon_desktop
    data:
    is_volume_muted: false
    mode: single

are you sure the condition was met? also was it intended to use a different device tracker other than the devices?