-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.yaml
executable file
·91 lines (90 loc) · 3.14 KB
/
scripts.yaml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
spotify_music:
alias: Play selected spotify playlist
sequence:
- service: media_player.volume_set
data:
entity_id: media_player.spotify
volume_level: '1'
- service: media_player.select_source
data_template:
entity_id: media_player.spotify
source: >
{% if is_state("input_select.spotify_source", "Livio PC") %} Livio PC
{% elif is_state("input_select.spotify_source", "P9000") %} P9000
{% endif %}
- service: media_player.play_media
data_template:
entity_id: media_player.spotify
media_content_type: playlist
media_content_id: >
{% if is_state("input_select.spotify_playlist", "Folkmetal") %} spotify:user:giobambu:playlist:2dXDilkblnw3uWJLj1dCFM
{% elif is_state("input_select.spotify_playlist", "Official Sziget 2018 Line Up playlist") %} spotify:user:szigetfestivalofficial:playlist:6Lbj66HshEjAHxgO7HCpMg
{% elif is_state("input_select.spotify_playlist", "De Andre") %} spotify:user:like4dubst3p:playlist:5JMpfWApM0KlQsFB2bApdr
{% elif is_state("input_select.spotify_playlist", "Spotify.Me") %} spotify:user:like4dubst3p:playlist:54eGqIn9Dhlc1j9g7I93DR
{% elif is_state("input_select.spotify_playlist", "Song For The Road") %} spotify:user:mumfordofficial:playlist:5k5LLKBaCbXFOJ0tqI2PAc
{% elif is_state("input_select.spotify_playlist", "This Is Arctic Monkeys") %} spotify:user:spotify:playlist:37i9dQZF1DX1A0PcRHdJVf
{% elif is_state("input_select.spotify_playlist", "Acustichepowa") %} spotify:user:1189229323:playlist:1zSBQQWAqs4q1BPXbkFDOR
{% endif %}
test_telegram:
alias: test_telegram
sequence:
- service: notify.telegram_push
data:
title: Test Message
message: This is a test Message
target:
- !secret telegram_allow_chat_ids_1
- !secret telegram_allow_chat_ids_2
#inline_keyboard:
# - 'Task 1:/command1, Task 2:/command2'
# - 'Task 3:/command3, Task 4:/command4'
test_html5:
alias: test_html5
sequence:
- service: notify.html5
data:
title: Test
message: This is a test Message
test_tts:
alias: test_tts
sequence:
- service: tts.google_say
entity_id: media_player.camera_livio
data:
message: 'Ciao martino che puzza come va?'
light_color:
alias: light_color
sequence:
- service: light.turn_on
data:
entity_id: light.lightstrip_desktop
transition: 5
color_name: orange
brightness: 50
- service: light.turn_on
data:
entity_id: light.led_strip
transition: 5
color_name: orange
brightness: 50
- service: light.turn_on
data:
entity_id: light.xiaomi_desk_lamp
transition: 5
kelvin: 3000
brightness: 50
## Turn spotlights
spotlights:
sequence:
- service: mqtt.publish
data: {"topic":"cmnd/sonoff-second/POWER1","payload": "on"}
## Reboot RPi
reebot_pi:
alias: Reboot Raspberry
sequence:
- service: shell_command.reboot_pi_cmd
## Restart Hass
restart_hass:
alias: Restart Home-Assistant
sequence:
- service: homeassistant.restart