-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
76 lines (76 loc) · 1.87 KB
/
automations.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
- id: '1683067517663'
alias: 'Last Motion Log: Living Room'
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.living_room_motion
from: 'off'
to: 'on'
condition: []
action:
- service: mqtt.publish
data:
retain: true
topic: logs/last_motion/living_room
qos: '0'
payload_template: '{{ as_timestamp(states.binary_sensor.living_room_motion.last_updated)
| timestamp_custom("%b %d %I:%M %p") }}'
mode: single
- id: '1683068274050'
alias: 'Last Motion Log: Office'
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.office_motion
from: 'off'
to: 'on'
condition: []
action:
- service: mqtt.publish
data:
retain: true
topic: logs/last_motion/office
qos: '0'
payload_template: '{{ as_timestamp(states.binary_sensor.office_motion.last_updated)
| timestamp_custom("%b %d %I:%M %p") }}'
mode: single
- id: '1683068377123'
alias: 'Last Motion Log: Bedroom'
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.bedroom_motion
from: 'off'
to: 'on'
condition: []
action:
- service: mqtt.publish
data:
retain: true
topic: logs/last_motion/bedroom
qos: '0'
payload_template: '{{ as_timestamp(states.binary_sensor.bedroom_motion.last_updated)
| timestamp_custom("%b %d %I:%M %p") }}'
mode: single
- id: '1683068426747'
alias: 'Last Opened Log: Front Door'
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.front_door
from: 'off'
to: 'on'
condition: []
action:
- service: mqtt.publish
data:
retain: true
topic: logs/last_opened/front_door
qos: '0'
payload_template: '{{ as_timestamp(states.binary_sensor.front_door.last_updated)
| timestamp_custom("%b %d %I:%M %p") }}'
mode: single