generated from ludeeus/integration_blueprint
-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename services to actions for 2024.8 * Remove data prefixes
- Loading branch information
1 parent
9b91732
commit f0b81c6
Showing
7 changed files
with
52 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Actions | ||
|
||
## battery_notes.set_battery_replaced | ||
|
||
For updating the [battery replaced date](./entities.md#battery-replaced). This allows you to change the date a battery was replaced. | ||
|
||
See how to use this action in the [community contributions](./community.md) | ||
|
||
| Data attribute | Optional | Description | | ||
| ------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------- | | ||
| `device_id` | `yes` | The device id that you want to change the battery replaced date for. | | ||
| `source_entity_id` | `yes` | The entity id that you want to change the battery replaced date for (only used for entity associated battery notes). | | ||
| `datetime_replaced` | `yes` | The optional datetime that you want to set the battery replaced to, if omitted the current date/time will be used. | | ||
|
||
You must specify either a device_id or entity_id, entity_id will be used in preference if both are specified. This allows the action to work with battery notes associated with both a device and also an individual entity, whether it is part of a device or not. | ||
|
||
## battery_notes.check_battery_last_reported | ||
|
||
For raising events for devices that haven't reported their battery level. | ||
|
||
The action will raise a seperate [battery_not_reported](./events.md/#battery_not_reported) event for each device where its last reported date is older than the number of days specified. | ||
|
||
You can use this action to schedule checks on batteries that is convenient to you, e.g. when you wake up, once a week etc. | ||
|
||
See how to use this action in the [community contributions](./community.md) | ||
|
||
| Data attribute | Optional | Description | | ||
| ------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------- | | ||
| `days_last_reported` | `no` | The number of days since a device last reported its battery level. | | ||
|
||
## battery_notes.check_battery_low | ||
|
||
For raising events for devices that have a battery low status. | ||
|
||
The action will raise a seperate [battery_threshold](./events.md/#battery_threshold) event for each device that have a battery low status. | ||
|
||
You can use this action as a reminder that is convenient to you, e.g. when you wake up, once a week etc. The event has a boolean data item `reminder` to determine if the event was raised by this action or the device battery going to a low state. | ||
|
||
See how to use this action in the [community contributions](./community.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters