#Can't get Script to execute in Routine

1 messages · Page 1 of 1 (latest)

digital lake
#

I've an extremely simple script to press a button on the XBOX:

xbox_ready_up:
  alias: "XBOX: Ready Up"
  mode: single
  sequence:
    - service: remote.send_command
      data:
        entity_id: remote.xbox_remote
        command: "Y"

This works when triggered from HA, however when I set it as a Scene to turn On in an Alexa Routine, it simply has no effect. I've done this before in the past, but it appears I must have removed the setup because I can't find how I did it - I just am not able to intuit the solution here.

Any help is appreciated!

digital lake
#

i thought this would be an easy one, but i cannot seem to figure out the appropriate approach for this

slate berry
#

Scene or script?

digital lake
#

it's a script, but alexa shows them as scenes

slate berry
#

Ah got you

digital lake
#

buuuuut i think i just came up with a lame workaround

#

basically create an input_button and wrap an automation to call the script

slate berry
#

Yeah that's what I did before. It's years ago, but I remember that I had to create button.

digital lake
#

yeah i think that's what i did in the past as well, it's been a few years since i've even touched my setup really

#

it's ran so smoothly

#
input_button:
  intent_xbox_ready_up:
    name: "(Intent) XBOX: Ready Up"
    icon: "mdi:alpha-y-circle-outline"
  intent_xbox_continue:
    name: "(Intent) XBOX: Continue"
    icon: "mdi:alpha-x-circle-outline"
  intent_xbox_back:
    name: "(Intent) XBOX: Back"
    icon: "mdi:alpha-b-circle-outline"

automation:
  - alias: "(IntentHndl) XBOX: Ready Up"
    initial_state: true
    trigger:
      - platform: state
        entity_id: input_button.intent_xbox_ready_up
    action:
      - service: script.xbox_ready_up
  - alias: "(IntentHndl) XBOX: Continue"
    initial_state: true
    trigger:
      - platform: state
        entity_id: input_button.intent_xbox_continue
    action:
      - service: script.xbox_continue
  - alias: "(IntentHndl) XBOX: Back"
    initial_state: true
    trigger:
      - platform: state
        entity_id: input_button.intent_xbox_back
    action:
      - service: script.xbox_back

script:
  xbox_ready_up:
    alias: "XBOX: Ready Up"
    mode: single
    sequence:
      - service: remote.send_command
        data:
          entity_id: remote.codexbox_remote
          command: "Y"
  xbox_continue:
    alias: "XBOX: Continue"
    mode: single
    sequence:
      - service: remote.send_command
        data:
          entity_id: remote.codexbox_remote
          command: "A"
  xbox_back:
    alias: "XBOX: Back"
    mode: single
    sequence:
      - service: remote.send_command
        data:
          entity_id: remote.codexbox_remote
          command: "B"
#

i use packages, that's my xbox remote package

#

about to test if it works after update/reboot

#

ah well now the xbox inegration is failing me... i'm gonna take a break 😅