Have Home Assistant Do Something When Phone Rings (Android)

Okay. I test using my mom’s phone to call my phone. The way I see it, it seems “Phone Idle” gets called immediately after “Phone Ringing.” I can tell because the “Phone Incoming” script still runs and “Phone Progress Complete” script gets triggered during the phone ringing. The “Phone Ringing” event isn’t really a state that knows when the ringer is still active.

So yeah. Back to square one, I suppose…

And if anyone want the two Kodi scripts, here it is, although I don’t think this will do anyone any good.

phone_incoming_kodi: alias: "Phone ringing - interrupt Kodi playback." sequence: - condition: state entity_id: media_player.kodi state: "playing" - service: media_player.media_pause data: entity_id: media_player.kodi phone_progress_complete_kodi: alias: "Resume playback once call is cimpleted." sequence: - condition: state entity_id: media_player.kodi state: "paused" - service: media_player.media_play data: entity_id: media_player.kodi

And I’ll add an additional boolean input for controlling “phone_incoming” script, since turning off the ringing script won’t trigger the “phone progress complete” script.

So yeah, the scripts are a non-issue and I’m getting there, but not quite. The Tasker is the major issue for me and I’m wondering how I could keep the ringer state active until I answer, decline, or miss the call.