You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-5
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
# ATTENTION! THE STRUCTURE FOR THIS SENSOR HAS CHANGED!
2
+
# DOCS HAVE NOT BEEN UPDATED YET
3
+
4
+
The old version is here [`package_unavailable_entities_old.yaml`](https://github.com/jazzyisj/unavailable-entities-sensor/blob/main/package_unavailable_entities_old.yaml).
5
+
1
6
## What does this template sensor do?
2
7
This sensor iterates the state object and returns entities that have a state of unknown or unavailable.
3
8
@@ -17,7 +22,7 @@ To enable packages in your configuation, create a folder in your config director
17
22
homeassistant:
18
23
packages: !include_dir_named packages
19
24
### Install Without Packages
20
-
To create this sensor without using packages simply copy the relevant template code to an appropriate place in your configuration.yaml file. The ignored entities group and example automation are optional.
25
+
To create this sensor without using packages simply copy the relevant template code to an appropriate place in your configuration.yaml file. The ignored entities group and example automation are optional.
21
26
22
27
**NOTE! You must reload templates, group entities (if you are using the ignored entities group), and automations (if you are utilizing the example automation) after adding the package or code to your configuration.**
23
28
## Customizing The Sensor
@@ -26,7 +31,7 @@ To change the time the sensor will ignore newly available entities that become u
26
31
27
32
**A value for 'ignore_seconds' less than 5 seconds may cause template loop warnings in your home assistant log, particularly when template sensors are reloaded.**
28
33
### Ignore Domains
29
-
Stateless domains (button, scene etc.) are excluded by default. The group domain is also excluded as many groups will always have a state of `unknown`.
34
+
Stateless domains (button, scene etc.) are excluded by default. The group domain is also excluded as many groups will always have a state of `unknown`.
30
35
31
36
To track these domains remove them from the ignored domains filter.
32
37
@@ -101,18 +106,18 @@ You can exclude entities from a specific integration by using an `in` test for t
101
106
{% set ignore_ts = (now().timestamp() - ignore_seconds)|as_datetime %}
See [Home Assistant Templating](https://www.home-assistant.io/docs/configuration/templating/) additional options.
114
119
### Specifing Entities to Monitor
115
-
You can configure the sensor to only monitor entities you specify instead of monitoring all entities and specifing the entities to ignore by using select or selectattr filters instead of reject and rejectattr filters. Remember, select filters are cumlative and entities may be already excluded by previous filters.
120
+
You can configure the sensor to only monitor entities you specify instead of monitoring all entities and specifing the entities to ignore by using select or selectattr filters instead of reject and rejectattr filters. Remember, filters are cumlative and entities may be already excluded by previous filters.
116
121
117
122
This example monitors only the `sensor` domain from the Shelly integration that contain the string "_power" in their entity_id.
0 commit comments