Pause music when receiving a call on the cellphone

Hello,

I have been struggling to find the proper way to achieve this and I’m not sure if it can be done in HASS.
I know it can be done with Tasker in Android but I’d rather have it on HASS.

So basically I have an Android phone and the music playing on Spotify on Sonos. I would like the music to be paused/stopped when it detects the phone receiving a call/making one.
The phone is being tracked in the house through WIFi and the entity doesn’t have any other states than “at home” or “away”

Is there any way I can do this in HASS (even with NodeRED) or it is not possible.

Thank you

Use an app on your phone like MacroDroid or Tasker monitor when your phone calls start and end. When it detects either event, have it send a signal that can be received by Home Assistant. The signal can, for example, be a webhook which Home Assistant can detect via a Webhook Trigger.

1 Like

I’m guessing there isn’t a similar app for iOS?

There is not anything like Tasker for IoS
Can try IFFT, Workflow or Activator but it needs jailbreaking

I figured as much. I did see that iOS 13.5 has a jailbreak at the moment. Not sure it’s worth the hassle. Though I have also been missing a wifi signal strength meter…

I use Tasker to trigger a nodered flow to achieve this, not sure about IOS.

As noted above without jailbreaking the iOS walled garden would prevent this sort of automation.

A search for Homekit triggers of this type turned up nothing.