-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtelegram_automation
62 lines (55 loc) · 2.36 KB
/
telegram_automation
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
automation:
- id: Уведомление о вкл датчика движения в гараже
alias: send_switch_on
initial_state: true
trigger:
- platform: state
entity_id: binary_sensor.garage_sensor
to: 'on'
action:
- service: notify.mytelegram
data:
message: "Движение в гараже - {{ states('sensor.time') }} "
- id: Уведомление о вкл датчика движения в коридоре
initial_state: true
trigger:
- platform: state
entity_id: binary_sensor.motion_sens_sonoff_occupancy
to: 'on'
action:
- service: notify.mytelegram
data:
message: "Движение в коридоре 2эт - {{ states('sensor.time') }} "
- id: Уведомление о срабатывании датчиков дыма 2 этажа
alias: send_switch_on
initial_state: true
trigger:
- platform: state
entity_id: binary_sensor.smoke_sensor_2_floor
to: 'on'
action:
- service: notify.mytelegram
data:
message: "Дым на 2 этаже - {{ states('sensor.time') }} "
- id: Уведомление о срабатывании датчиков дыма 1 этажа
alias: send_switch_on
initial_state: true
trigger:
- platform: state
entity_id: binary_sensor.smoke_sensor_1_floor
to: 'on'
action:
- service: notify.mytelegram
data:
message: "Дым на 1 этаже - {{ states('sensor.time') }} "
- id: Уведомление о срабатывании датчиков дыма в пристройке
alias: send_switch_on
initial_state: true
trigger:
- platform: state
entity_id: binary_sensor.smoke_sensor_pristroyka
to: 'on'
action:
- service: notify.mytelegram
data:
message: "Дым в пристройке - {{ states('sensor.time') }} "