-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.yaml
97 lines (97 loc) · 2.52 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
92
93
94
95
96
97
update_plants_timer:
alias: Plants watering timer refresh
sequence:
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.plants_watering
datetime: '{{ now().strftime("%Y-%m-%d %H:%M:%S") }}'
mode: single
cleaning:
alias: Start cleaning
icon: mdi:broom
mode: single
description: Start cleaning for room
fields:
rooms:
description: Romms number
cleanings:
description: Cleanings number
default: 1
sequence:
- data:
params:
rooms: '{{ rooms }}'
cleanings: '{{ cleanings }}'
entity_id: vacuum.deebot
command: spot_area
service: vacuum.send_command
reconnect_wan:
sequence:
- type: turn_off
device_id: 8405f4ca1bbfa10ce34ba47b4a91812b
entity_id: switch.mikrotik_port_ether1
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- type: turn_on
device_id: 8405f4ca1bbfa10ce34ba47b4a91812b
entity_id: switch.mikrotik_port_ether1
domain: switch
mode: single
alias: Reconnect WAN
icon: mdi:wan
notify:
alias: Notify
description: Send notification to phone
fields:
message:
description: Notification message
title:
description: Notification title
sequence:
- condition: state
entity_id: binary_sensor.internet_connection
state: 'off'
- service: notify.mobile_app_sm_g9860
data:
message: '{{ message }}'
title: '{{ title }}'
mode: single
icon: mdi:message-processing-outline
play_radio:
alias: Play radio
sequence:
- if:
- condition: device
device_id: a3af181ce3e9d1acb3dffaad60232da3
domain: media_player
entity_id: media_player.kitchen_speaker
type: is_playing
then:
- service: media_player.media_stop
data: {}
target:
entity_id: media_player.kitchen_speaker
else:
- service: media_player.play_media
target:
entity_id: media_player.kitchen_speaker
data:
media_content_id: media-source://radio_browser/8366306d-147c-4618-804e-355288ec90c7
media_content_type: audio/mpeg
metadata:
title: Українське радіо. Поділля-Центр. (128 кбіт/с)
thumbnail: ''
media_class: music
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://radio_browser
- media_content_type: music
media_content_id: media-source://radio_browser/country/UA
mode: restart
icon: mdi:radio