So I know some people use Tasker on Android to have āwhen the phone is chargingā as a trigger. iOS does not have tasker, but in Shortcuts āis chargingā can be a trigger for an automation.
But Iām not sure if thereās a way to get the trigger out to Hubitat. I searched for a way to turn on a virtual switch via Alexa or the Hubitat app but there donāt appear to be any hooks into those systems to get the trigger out of Shortcuts and then into RM.
You can have the shortcut make a Hubitat Maker API http call to update a virtual device.
Another option is to use HomeBridge to integrate Hubitat devices into HomeKit. This does require a Raspberry Pi or a similar always on device to run HomeBridge.
You can set a shortcut to run a URL in a browser, so use that to run a HE rule. Set an endpoint trigger on the rule you want it to run and them have your IOS shortcut execute that URL.