summaryrefslogtreecommitdiffstats
path: root/blueprints/script/devices/kodi-alarm.yaml
diff options
context:
space:
mode:
authorroot <root@smartpi.suren.me>2023-01-10 07:45:02 +0400
committerroot <root@smartpi.suren.me>2023-01-10 07:45:02 +0400
commit2c0c331eb7b7a03152309bbbd4e0fee157e8d86c (patch)
tree03391160212b39c4597ecc26010f2ba1235a65e3 /blueprints/script/devices/kodi-alarm.yaml
downloadhass-2c0c331eb7b7a03152309bbbd4e0fee157e8d86c.tar.gz
hass-2c0c331eb7b7a03152309bbbd4e0fee157e8d86c.tar.bz2
hass-2c0c331eb7b7a03152309bbbd4e0fee157e8d86c.tar.xz
hass-2c0c331eb7b7a03152309bbbd4e0fee157e8d86c.zip
Initial configuration
Diffstat (limited to 'blueprints/script/devices/kodi-alarm.yaml')
-rw-r--r--blueprints/script/devices/kodi-alarm.yaml29
1 files changed, 29 insertions, 0 deletions
diff --git a/blueprints/script/devices/kodi-alarm.yaml b/blueprints/script/devices/kodi-alarm.yaml
new file mode 100644
index 0000000..48ecd1c
--- /dev/null
+++ b/blueprints/script/devices/kodi-alarm.yaml
@@ -0,0 +1,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