CarPlay randomly rerunning scripts

Hi all,

I have scripts that perform a series of actions for when we arrive home (open our gate, our garage door, unlock the mudroom door, etc.). They’re only triggered manually—no automation. I have an old car, and I run these using Shortcuts on my iPhone via the “Today” screen. The shortcut calls ‘script.turn_on’ with data {“entity_id”:“script.bmw_arrival”}. The “bmw_arrival” script performs the steps I want. All good.

My wife just got a new car with CarPlay. She has an identical setup on her phone, except her arrival script is called “porsche_arrival”, and she accesses it primarily from the “quick actions” in the HomeAssistant Carplay app instead of using Shortcuts.

This works, but it randomly reruns. Once, it happened hours after she got home; just recently it ran three times in a row within a few minutes.

I have debug logging enable for homeassistant.core, and homeassistant.components/script/automation/mobile_app/ios. When reviewing these logs, the initial (correct) trigger as well as the subsequent triggers all look identical. From HA’s perspective, it seems that someone is tapping these Quick Actions repeatedly, but of course that’s not what’s happening.

Of interest: the one time it happened hours after her arrival, it appears from the logs that her phone joined Carplay (I have no clue why; it was in the home and on our WiFi), and then immediately reran the script. My guess is that the car woke up to check for a software update or perform some others task, spun up its wifi connection, and her phone was close enough to it to hop on its network.

Given that our setups are near-identical with the only difference being CarPlay, I suspect that’s where the problem lies.

Does anyone have any ideas for me? I’m just completely stumped.

Is there a CarPlay specific logger I can run?

I enabled “ask for confirmation” in the carplay app; I’m hoping that’ll help. Still, I’d love to figure out what’s going on and fix the actual problem vs. just papering it over with a second screen.

TIA!

Just an update that “ask for confirmation” doesn’t address the problem; it still runs about three times, totally randomly.

In looking at some of the other posts here (e.g. Scripts not running from carplay quick access - #3 by lechpiek), it seems that quick actions are just broken in the current CarPlay. I’d STRONGLY recommend not using this feature at all if you have any security related actions (e.g. door unlocking) that run.

I guess we’ll just need to wait for the next app refresh and hope it gets fixed.

I have the same problem. I use CarPlay Actions (scripts) to arm and disarm our Ring Alarm. Recently when I run the script to disarm, it does disarm the alarm but then proceeds to run other CarPlay actions (scripts) repeatedly that I never initiated. Super concerning to me. I arm/disarm using CarPlay 3-4x a week and this just started a few days ago. Only thing that changed is I updated from HAOS 6.2 to 6.3. App is version 2025.5 which is the latest version.

Saturday I disarmed via CarPlay, then it proceeded to arm the alarm 3-4x over the next 15 mins every time I opened the companion app (no longer connected to car).

Sounds like the exact same problem. At least I’m not alone!

As with you, it only started within the last month or so. I’m on 2024.12.5 core and 20241127.8 frontend (Docker). Latest app version.

I suspect it’s a problem with the app, not the backend. The app must think the call failed and keeps retrying it.

I ended up disabling all carplay-based quick actions and just went back to running them directly on the phone, as in the pre-carplay era. Not ideal, but I can’t think of another workaround that I’d trust for something like disarming alarms and opening door locks.

My partners phone just started to do this yesterday. I finally moved their phone over from the old CarPlay actions to the new scripts. The same day this re-running of scripts began. But like my phone, it’s not limited to when the phone is connected to CarPlay.

Timeline on partners phone using CarPlay

July 26th 10:00am run Arm Away Mode Script
Script re-runs unrequested 1x

July 26th 03:00pm run Disarm Script, disconnects phone from CarPlay and parks car. Car remains off

July 27th 6:00am opens home assistant app on phone to turn on the coffee maker, Arm Away Mode script runs itself. Same script used in CarPlay yesterday at 10:00am

This behavior is exactly what happens on my phone as well. Any suggestions?