Skip to content

Commit 8739b59

Browse files
Update example automation
1 parent 3477286 commit 8739b59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Label State Helpers for Home Assistant
1111
You can create state, not state and numeric state helpers which provide a binary sensor that turns on if any entity with an assigned label matches the criteria you specify.
1212

1313
An `entities` attribute is available which lists all entities that match the criteria.
14+
A `friendly_names` attribute is available which lists either the device (entity) names or just the entity name if the entity is not part of a device, for all entities that match the criteria.
1415

1516
## Example use cases
1617

@@ -82,7 +83,7 @@ actions:
8283
data:
8384
message: >-
8485
Critical sensors are unavailable {{
85-
state_attr('binary_sensor.critical_sensor_unavailable', 'entities') |
86+
state_attr('binary_sensor.critical_sensor_unavailable', 'friendly_names') |
8687
join(', ') }}
8788
mode: single
8889
```

0 commit comments

Comments
 (0)