Skip to content

Commit f4c149b

Browse files
Merge branch '2.9-docs'
2 parents 2cc3bec + 11373b4 commit f4c149b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/events.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ You can use this to send notifications in your preferred method. An example aut
2424
| `battery_quantity` | `int` | Battery quantity. |
2525
| `battery_level` | `float` | Battery level % of the device. |
2626
| `previous_battery_level` | `float` | Previous battery level % of the device. |
27+
| `battery_last_replaced` | `datetime` | The date the battery was last replaced. |
2728
| `reminder` | `bool` | Returns true if the event was raised by an action, false if it's from a device event. |
2829

2930
### Automation Example
@@ -98,6 +99,7 @@ An example automation below shows how to update the battery_replaced.
9899
| `battery_quantity` | `int` | Battery quantity. |
99100
| `battery_level` | `float` | Current battery level % of the device. |
100101
| `previous_battery_level` | `float` | Previous battery level % of the device. |
102+
| `battery_last_replaced` | `datetime` | The date the battery was last replaced. |
101103

102104
### Automation Example
103105

@@ -137,6 +139,7 @@ The action can raise multiple events quickly so when using with an automation it
137139
| `battery_last_reported` | `datetime` | The datetime the battery was last reported. |
138140
| `battery_last_reported_days` | `int` | The number of days since the battery was last reported. |
139141
| `battery_last_reported_level` | `float` | The level of the battery when it was last reported. |
142+
| `battery_last_replaced` | `datetime` | The date the battery was last replaced. |
140143

141144
### Automation Example
142145

docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ Example templates
5959

6060
If a template is specified then the battery percentage will be ignored when evaluating threshold and increased events.
6161

62+
## Filter Outliers
63+
This is for advanced use when a device occasionally erroneously reports a very low battery level occasionally before going back to it's true value, which causes battery low events to be raised.
64+
If you switch this on for a device then that devices battery low events will be delayed until it has three consistently low states.
6265

6366
## Community Contributions
6467

0 commit comments

Comments
 (0)