Update Litter-Robot documentation to reflect new feature support (#17123)

This commit is contained in:
Nathan Spencer 2021-04-12 12:10:01 -06:00 committed by GitHub
parent 7d1bb509ed
commit 0e6a94557e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,11 +28,13 @@ The Feeder-Robot is not currently supported by this integration.
The following entities are created for this component and identified by a single device per Litter-Robot unit: The following entities are created for this component and identified by a single device per Litter-Robot unit:
| Entity | Domain | Description | | Entity | Domain | Description |
| ---------------- | -------- | -------------------------------------------------------------------------------- | | --------------------- | -------- | -------------------------------------------------------------------------------- |
| Litter Box | `vacuum` | Main entity that represents a Litter-Robot unit. | | Litter Box | `vacuum` | Main entity that represents a Litter-Robot unit. |
| Night Light Mode | `switch` | When turned on, automatically turns on the night light in darker settings. | | Night Light Mode | `switch` | When turned on, automatically turns on the night light in darker settings. |
| Panel Lockout | `switch` | When turned on, disables the buttons on the unit to prevent changes to settings. | | Panel Lockout | `switch` | When turned on, disables the buttons on the unit to prevent changes to settings. |
| Waste Drawer | `sensor` | Displays the current waste level gauge. | | Sleep Mode Start Time | `sensor` | When sleep mode is enabled, displays the current or next sleep mode start time. |
| Sleep Mode End Time | `sensor` | When sleep mode is enabled, displays the current or last sleep mode end time. |
| Waste Drawer | `sensor` | Displays the current waste drawer level. |
## Additional Attributes ## Additional Attributes
@ -41,30 +43,21 @@ Some entities have attributes in addition to the default ones that are available
### Litter Box `vacuum` entity ### Litter Box `vacuum` entity
| Attribute | Type | Description | | Attribute | Type | Description |
| ----------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ----------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| clean_cycle_wait_time_minutes | integer | Current wait time, in minutes, between when your cat uses the Litter-Robot and when the unit cycles automatically. | | clean_cycle_wait_time_minutes | integer | Current wait time, in minutes, between when your cat uses the Litter-Robot and when the unit cycles automatically. |
| is_sleeping | boolean | Whether or not the unit is currently in sleep mode. | | is_sleeping | boolean | Whether or not the unit is currently in sleep mode. |
| sleep_mode_start_time | string | When sleep mode is enabled, displays the time the unit will enter sleep mode in the format `%H:%M:%S`, otherwise `None`. | | sleep_mode_enabled | boolean | Whether or not sleep mode is enabled. |
| sleep_mode_end_time | string | When sleep mode is enabled, displays the time the unit will exit sleep mode in the format `%H:%M:%S`, otherwise `None`. |
| power_status | string | Current power status of the unit. `AC` indicates normal power, `DC` indicates battery backup and `NC` indicates that the unit is not connected and/or powered off. | | power_status | string | Current power status of the unit. `AC` indicates normal power, `DC` indicates battery backup and `NC` indicates that the unit is not connected and/or powered off. |
| unit_status_code | string | The [unit status code](https://github.com/natekspencer/pylitterbot/blob/main/pylitterbot/robot.py#L21) associated with the current status of the vacuum. | | status_code | string | The [status code](https://github.com/natekspencer/pylitterbot/blob/884944b011f5fea9639b7d21d19fa3f7708e25a7/pylitterbot/enums.py#L44) associated with the current status of the vacuum. |
| last_seen | string | UTC datetime the unit last reported its status. | | last_seen | string | UTC datetime the unit last reported its status. |
### Waste Drawer `sensor` entity
| Attribute | Type | Description |
| ------------------------ | ------- | ------------------------------------------------------------------------ |
| cycle_count | integer | Number of clean cycles performed since last reset. |
| cycle_capacity | integer | Number of clean cycles before unit is full. |
| cycles_after_drawer_full | integer | Number of clean cycles performed since drawer full status was indicated. |
## Commands ## Commands
Commands are utilized for additional functionality that is available in the Litter-Robot companion app. The following are currently available: Commands are utilized for additional functionality that is available in the Litter-Robot companion app. The following are currently available:
### reset_waste_drawer ### reset_waste_drawer
Resets the waste drawer gauge on the Litter-Robot. This will reset the cycle count returned by the Litter-Robot API to `0`. Resets the waste drawer level on the Litter-Robot. This will reset the cycle count returned by the Litter-Robot API to `0` such that the waste drawer entity will report as `0.0 %`.
```yaml ```yaml
service: vacuum.send_command service: vacuum.send_command
@ -79,9 +72,9 @@ data:
Enables (with `sleep_time` param) or disables sleep mode on the Litter-Robot. Enables (with `sleep_time` param) or disables sleep mode on the Litter-Robot.
| Param | Type | Required | Description | | Param | Type | Required | Description |
| ---------- | ------ | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| enabled | bool | yes | Set to true to enable and false to disable. | | enabled | bool | yes | Set to true to enable and false to disable. |
| sleep_time | string | Required if the param `enabled` is set to true. | Time at which the unit will enter sleep mode and prevent an automatic clean cycle for 8 hours. This param uses the 24-hour format string `%H:%M:%S`, with seconds being optional, and is based on the timezone configured for your Home Assistant installation. As such, `10:30:00` would indicate 10:30 AM, whereas `22:30:00` would indicate 10:30 PM. | | sleep_time | string | no | Time at which the unit will enter sleep mode and prevent an automatic clean cycle for 8 hours. This param uses the 24-hour format string `%H:%M:%S`, with seconds being optional, and is based on the timezone configured for your Home Assistant installation. As such, `10:30:00` would indicate 10:30 AM, whereas `22:30:00` would indicate 10:30 PM. |
Example of setting the sleep mode to begin at 10:30 PM. Example of setting the sleep mode to begin at 10:30 PM.
@ -95,3 +88,23 @@ data:
enabled: true enabled: true
sleep_time: "22:30:00" sleep_time: "22:30:00"
``` ```
### set_wait_time
Sets the wait time, in minutes, between when your cat uses the Litter-Robot and when the unit cycles automatically.
| Param | Type | Required | Description |
| --------- | ---- | -------- | --------------------------- |
| wait_time | int | yes | Must be one of: 3, 7 or 15. |
Example of setting the wait time to 3 minutes.
```yaml
service: vacuum.send_command
target:
entity_id: vacuum.litter_robot_litter_box
data:
command: set_wait_time
params:
wait_time: 3
```