Advertisement
Guest User

Untitled

a guest
Jan 12th, 2017
1,723
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.98 KB | None | 0 0
  1. homeassistant:
  2.   name: Home
  3.   latitude: !secret home_lat
  4.   longitude: !secret home_lon
  5.   unit_system: imperial
  6.   time_zone: America/Chicago
  7.   elevation: 391
  8. http:
  9.   api_password: !secret http_pwd
  10. media_player:
  11. discovery:
  12. automation:
  13.   - alias: Play NPR in the morning
  14.     trigger:
  15.       platform: time
  16.       after: '06:29:30'
  17.     # Optional condition to verify your devices are home using presence detection
  18.     condition:
  19.       condition: state
  20.       entity_id: group.all_devices
  21.       state: 'home'
  22.     action:
  23.       - service: media_player.turn_on
  24.         data:
  25.           entity_id: media_player.bedroom
  26.       - service: media_player.volume_set
  27.         data:
  28.           entity_id: media_player.bedroom
  29.           volume_level: .5
  30.       - delay: '00:00:30'
  31.       - service: media_player.play_media
  32.         data:
  33.           entity_id: media_player.bedroom
  34.           media_content_id: http://17553.live.streamtheworld.com:3690/KIOSFM_SC
  35.           media_content_type: audio/mp3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement