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
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
2 posts - 2 participants