Shortcuts to update Sensors

I use Siri Shortcuts extensively on my iPhone. And one of the handy things I do to ensure that automations (which trigger bases on my device’s state) happen promptly, is put the Home Assistant app’s “Update Sensors” action in various Siri Shortcuts automations, like whenever I connect/disconnect from a charger for example (which means putting it on charge when I’m in bed runs my Good Night script).

However this action has somewhat broken for me in recent weeks/months (perhaps since I started running iOS 18 beta). It seems to get into a broken state where the command will not work, and returns a Shortcuts error notification, breaking whatever Shortcut was running from that point onwards. Until I force quit the Home Assistant app, then it’s fine (for a few hours).

Anyone else experiencing this issue? And can it be fixed?!

2 Likes

The same thing has been broken for me since much longer. When I try to run the action manually in the Shortcuts app I get a “The operation took too long to complete” error.

1 Like

Same here. I get the too long to complete error, BUT it completes about 2/3s of the time. I’d like to know the fix is well!

1 Like

…still happening in iOS 18.2

BTW, I’ve tried adding “wait” actions, before & after - still doesn’t work.

Still broken… Only fix is force closing Home Assistant on iOS indeed.

The Shortcut error is “INCExtensionErrorDomain 1307”

1 Like

I wonder if there’s an “outside the box” solution to this, like, does HA update sensors when any HA shortcut action is run? Or does it happen to update when LPM is toggled?

May do some testing soon if someone doesn’t beat me to it…

Ok I might consider this a solution for now. I did a bit of tinkering with other Home Assistant Shortcuts actions, and it would appear “Reload Widgets” updates the sensors too and doesn’t error.

The reload widgets shortcut doesn’t work for me. It errors on running it.