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
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,15 @@
8
8
9
9
Label State Helpers for Home Assistant
10
10
11
-
You can create both 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.
11
+
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.
12
12
13
13
An `entities` attribute is available which lists all entities that match the criteria.
14
14
15
15
## Example use cases
16
16
17
-
- Create a critical sensors label and create a Label State helper which turns on when any of those entities goes unavailable so you can get a notification.
18
-
- If you have appliances which should always draw a certain wattage create a numeric Label State helper to turn on when any of those devices starts drawing 0 watts, triggering a notification.
17
+
- Create a `critical sensors` label and create a State type Label State helper which turns on when any of those entities goes unavailable so you can get a notification.
18
+
- Create a `must be on` label and create a Not State type Label State helper which turns on when any of those entities goes to any state but on so you can get a notification.
19
+
- If you have appliances which should always draw a certain wattage create a Numeric State type Label State helper to turn on when any of those devices starts drawing 0 watts, triggering a notification.
Copy file name to clipboardExpand all lines: tests/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ source venv/bin/activate
12
12
```
13
13
14
14
You can then install the dependencies that will allow you to run tests:
15
-
`pip3 install -r requirements_test.txt.`
15
+
`pip3 install -r requirements_test.txt`
16
16
17
17
This will install `homeassistant`, `pytest`, and `pytest-homeassistant-custom-component`, a plugin which allows you to leverage helpers that are available in Home Assistant for core integration tests.
0 commit comments