#Apple shortcuts not run scripts

1 messages · Page 1 of 1 (latest)

raven nova
#

From last HA CORE update(.2) my apple shortcuts has left to work. It finish and shows the notification but nothing of the script works.

Same script executed from HA app works fine.

Something with the same problem?

astral jackal
#

Please check AppStore version 2024.9.1 release moments ago

fading niche
#

having the exact same problem

#

my scripts start but don't finish

astral jackal
#

Have you updated the iOS app? 2024.9.1

fading niche
#

yeah - just checked. don't want to hijack @raven nova's thread though

#

but when I try and trigger a script, the script starts but quits within 3-5 seconds

astral jackal
#

Can you share a screen recording?

raven nova
#

I can confirm that afert update to iOS 18 and last App the shortcuts works fine again devtools

fading niche
astral jackal
# fading niche

Thats too vague, what did you ask Siri for? Is it a shortcut? If so, please share the shortcut.

fading niche
#

yes it is a script, this is just one example of all my script shortcuts - most don't work if the script takes longer than 10 seconds to execute

#

I even tried wrapping scripts in scripts so all the shortcut does is call other scripts. It's script inception here and it still usually fails.

sequence:
  - parallel:
      - alias: lights and Open covers in parallel
        parallel:
          - if:
              - condition: state
                entity_id: sun.sun
                state: above_horizon
            then:
              - data: {}
                target:
                  entity_id: cover.bedroom_shades
                action: cover.open_cover
            alias: Open Bedroom Curtains if sun is up
          - metadata: {}
            data: {}
            action: script.covers_open_all_blinds
          - metadata: {}
            data: {}
            action: script.normal_lights
          - data:
              brightness: 170
              transition: 600
            target:
              device_id:
                - b32593577db93a8379d06de33d958185
                - 40c84506044f11ebb7807b58d20e7a8a
              entity_id: scene.bedroom_dimmed
            action: hue.activate_scene
          - data:
              transition: 63
            target:
              entity_id: light.elements_35f6
            action: light.turn_on
          - metadata: {}
            data: {}
            action: script.kettle_turn_on_to_195f
          - alias: Winter / Summer options
            choose:
              - conditions:
                  - condition: state
                    entity_id: input_boolean.winter_summer
                    state: "on"
                sequence:
                  - metadata: {}
                    data:
                      temperature: 75
                    target:
                      entity_id: climate.garage_thermostat
                    action: climate.set_temperature
                alias: "Winter "
              - conditions:
                  - condition: state
                    entity_id: input_boolean.winter_summer
                    state: "off"
                sequence:
                  - if:
                      - condition: template
                        value_template: >-
                          {{ state_attr('climate.first_floor',
                          'current_temperature') | float < 60 }}
                    then:
                      - data:
                          temperature: 72
                        target:
                          entity_id: climate.fireplace
                        action: climate.set_temperature
                    alias: Turn on fireplace if open space is below 60
                alias: Summer
      - sequence:
          - metadata: {}
            data: {}
            action: script.tts_test
          - metadata: {}
            data: {}
            action: script.tts_calendar_briefing
        alias: TTS Briefings in sequence
mode: restart
icon: mdi:weather-sunset-up
description: replaced with summer version in July 2024 - need to update for winter
astral jackal
#

You shortcuts dictionary is not being used btw.

Did you know we have a shortcuts option that runs scripts directly instead of "Call service"? look for "Run script" and let me know if it works

fading niche
#

fantastic! I'll test. Is that new?

#

I'm starting to wonder of the only fix is to turn on a helper with the shortcut and then use an automation that watches the helper that executes the script?

astral jackal
#

Im not sure what you mean, this should have worked, if you open the app and run the script manually, does it works?

#

btw which app version are you using?

fading niche
#

looks like 2024.9.1

astral jackal
pine shoal
#

Heya, Siri shortcuts stopped working for me as well after the iOS 18 update.
I had to remove the HA actions in every Siri automation and then add them back in to fix the problem.