Using iPhone automation to control oH item

Hi there,

i would like to use an iPhone automation to control an oH item, once my phone connectes to CarPlay.
I´m already using an automation that starts an app feature when connecting and disconnecting.
This worked very well, even when the iPhone was locked.

Now i created two shortcuts, one to enable and one to disable the oH item through the app.
It works manually, within my network and through cellular with myopenhab-org.
After that, i created two automations, one that uses the enable shortcut and one that uses the disable shortcut, both triggered by CarPlay connecting or disconnecting.

It doesn´t work :frowning:
An neither does the previous automation work.

Here´s what i want to achieve.
I got my car and phone locations in openHAB, a switch item that controls notifications from the car and a switch item that shows the CarPlay connection status.

I would like to control the notifications based on the connection status.
I don´t need any notifcations, when i´m connected to the car.
But i would like to get notifications, when the car is moved without my phone connected.

Any ideas?

Cheers