Skip to content

Commit 7eac3f8

Browse files
Update README.md
1 parent 6137702 commit 7eac3f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ Installation via HACS is recommended, but a manual setup is supported.
4444

4545
## Tips
4646

47-
Use the example below to create a notification automation listing the entities use the state_attr, replace the binary sensor with your own.
47+
Use the example below to create a notification automation listing the entities using the state_attr, replace the binary sensor with your own.
4848
I like to have the trigger only activate if a labelled sensor has been unavailable for 5 minutes to avoid any planned restarts falsely triggering the automation.
4949

5050
```
5151
alias: Critical Sensors Unavailable
52-
description: ""
52+
description: "Create a notification if any sensors labelled as critical becomes unavailable for at least 5 minutes"
5353
triggers:
5454
- trigger: state
5555
entity_id:
56-
- binary_sensor.critical_sensor_notification
56+
- binary_sensor.critical_sensor_unavailable
5757
to: "on"
5858
for:
5959
hours: 0
@@ -66,7 +66,7 @@ actions:
6666
data:
6767
message: >-
6868
Critical sensors are unavailable {{
69-
state_attr('binary_sensor.critical_sensor_notification', 'entities') |
69+
state_attr('binary_sensor.critical_sensor_unavailable', 'entities') |
7070
join(', ') }}
7171
mode: single
7272
```

0 commit comments

Comments
 (0)