liminal
(Shane)
February 17, 2021, 12:01pm
1
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
Is thr state really standby under Developer Tools -> States, not idle
or something?
wmaker
(Tommy Long)
February 17, 2021, 10:56pm
3
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:
NOTE: Because of the age of this thread, we can’t edit the first post anymore and it is outdated. For current installation instructions and latest information, please see the Wiki .
I’m excited to share with you all a component that I have been working on for the last week that allows controlling amazon echo devices (and clones) directly in home assistant!
What This Is:
This topic and this post is a place I hope to use to collaborate with enthusiastic Home Assistant users that w…
liminal
(Shane)
February 18, 2021, 12:07am
4
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
Thanks
wmaker
(Tommy Long)
February 18, 2021, 12:30am
5
Ummm…I would scroll down the “Current Entities” list and find your media_player.bathroom
. There it is updated in real-time