Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95944

Can't get script reliably working as part of automation

$
0
0

@garrettshannon wrote:

I’ve got a script that I’m using as a wakeup routine; parts of it work fine and parts work intermittently and I can’t figure out for the life of me what’s going on. I can manually do the service calls in order through the developer UI and it works. But if I manually “Trigger Script” through the UI nothing happens. It’s supposed to start playing sonos, wait a bit, turn on the light, wait a bit, turn up the sonos volume. The light always works but sonos is hit or miss. What’s happening?

Script:

'1574606550086':
  alias: Wakeup playlist
  sequence:
  - data:
      entity_id: media_player.bedroom
    service: sonos.unjoin
  - data:
      entity_id: media_player.bedroom
      volume_level: '.05'
    service: media_player.volume_set
  - data:
      entity_id: media_player.bedroom
      shuffle: 'true'
    service: media_player.shuffle_set
  - data:
      entity_id: media_player.bedroom
      source: Tastebreakers
    service: media_player.select_source
  - delay: 00:05:00
  - data:
      entity_id: switch.wemo_bedroom
    service: switch.turn_on
  - delay: 00:30:00
  - data:
      entity_id: media_player.family_room
      master: media_player.bedroom
    service: sonos.join
  - data:
      entity_id:
      - media_player.bedroom
      - media_player.family_room
      volume_level: '.2'
    service: media_player.volume_set

automation:

- id: '1574654401075'
  alias: Wake Up
  description: ''
  trigger:
  - at: 07:00
    platform: time
  condition:
  - condition: state
    entity_id: binary_sensor.workday
    state: 'on'
  action:
  - service: script.1574606550086

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>