Alexa Media Player (2021): Flash Briefing, then music

Hey all,

I think I’m close here, but not sure where I’m going wrong.

Flash Briefing plays… but the music doesn’t trigger,

Checked devtools and the device is in standby after the FB. What am I doing wrong?

Thanks guys :slight_smile:

alias: 'Motion: Morning'
description: ''
trigger:
  - type: motion
    platform: device
    device_id: id
    entity_id: binary_sensor.bathroom_motion_sensor_motion
    domain: binary_sensor
condition:
  - condition: template
    value_template: >-
      {{ ((as_timestamp(now()) | float) -
      (as_timestamp(state_attr('automation.go_to_sleep','last_triggered')) |
      default(0) | float)) > 36000.0 }}
  - condition: time
    after: '07:00'
    before: '11:00'
action:
  - service: script.alexa_flash_briefing_volume
    data: {}
  - service: script.play_flash_briefing
    data: {}
  - wait_for_trigger:
      - platform: state
        entity_id: media_player.bathroom
        to: standby
  - service: script.play_music_bathroom
    data: {}
mode: single

Is thr state really standby under Developer Tools -> States, not idle or something?

Interesting…I just tried myself, and the state never changes, it always stays in ‘standby’. You may want to raise this on the main thread:

Yeah, that’s so weird though. Somethings happening there, because if I take out the “wait for trigger”, the flash briefing will start, then 1 second later the music rolls over the top.

Where as, with the wait for trigger, the flash briefing does play, but not the music.

Also with the states dev tool, is there a refresh button im missing, or do I have to reenter the entity every. single. time :frowning:
Thanks

Ummm…I would scroll down the “Current Entities” list and find your media_player.bathroom. There it is updated in real-time

Thanks bud, that works :slight_smile: