-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.yaml
96 lines (96 loc) · 2.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
92
93
94
95
96
reset_bill_notification:
alias: reset bill notification
sequence:
- delay: 00:00:60
- service: notify.mobile_app_pixel_3
data:
message: clear_notification
data:
tag: bill
mode: single
timer_notify:
alias: timer notify
sequence:
- service: notify.mobile_app_pixel_3
data:
message: '{{ as_timestamp(now() + timedelta(minutes=5)) | round() }}'
data:
chronometer: true
when: '{{ as_timestamp(now() + timedelta( minutes = 5 )) | round() }}'
mode: single
notify_bill:
alias: notify bill
sequence:
- choose:
- conditions:
- condition: state
entity_id: sensor.pixel_3_sim_1
state: Mint
sequence:
- service: notify.mobile_app_pixel_3
data:
message: message
title: title
data:
tag:
- conditions:
- condition: state
entity_id: sensor.bill_work_pixel_sim_1
state: Mint
sequence:
- service: notify.mobile_app_bill_work_pixel
data:
message: message
title: title
data:
tag: tag
actions:
- action: action
title: action
default: []
mode: single
test_telegram:
alias: test telegram
sequence:
- service: notify.tgrambill
data:
message: this is a test
mode: single
update_ha:
sequence:
- service: shell_command.update_git
mode: single
alias: update HA
blink_desk_lamp:
sequence:
- choose:
- conditions:
- condition: state
entity_id: light.desk_lamp
state: 'on'
sequence:
- service: lifx.effect_pulse
data:
mode: breathe
brightness: 103
period: 1
cycles: 2
power_on: false
target:
entity_id: light.desk_lamp
- conditions:
- condition: state
entity_id: light.desk_lamp
state: 'off'
sequence:
- service: lifx.effect_pulse
target:
entity_id: light.desk_lamp
data:
mode: breathe
brightness: 66
period: 1
cycles: 1
default: []
mode: single
alias: blink desk lamp