summaryrefslogtreecommitdiffstats
path: root/blueprints/script/devices/kodi-alarm.yaml
blob: 48ecd1cb7cc2347c0b2aaf44d817449f78ba7707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
blueprint:
  name: Kodi - Play Alarm
  description: Stream photos from security camera
  domain: script
  input:
    player:
      name: Player
      description: KoDi Media Player
      selector:
        entity:
          domain: media_player
    song:
      name: Player
      description: KoDi Media Player
      selector:
        media: {}

mode: restart
sequence:
  - service: media_player.volume_set
    data:
      volume_level: 1
    target:
      entity_id: !input player
  - service: media_player.play_media
    target:
      entity_id: !input player
    data:
      !input song