Add ISY994 services to set and delete lock codes (#26363)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
shbatm 2023-02-26 01:12:12 -06:00 committed by GitHub
parent b9bfd1a863
commit ce8aea06fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,8 @@ Insteon devices will include entities for setting the device On Level, Ramp Rate
Once loaded, the following services will be exposed with the `isy994.` prefix, to allow advanced control over the ISY and its connected devices: Once loaded, the following services will be exposed with the `isy994.` prefix, to allow advanced control over the ISY and its connected devices:
- Entity services for Home Assistant-connected entities: `send_node_command`, `send_raw_node_command`, and `set_ramp_rate`. - Entity services for all Home Assistant-connected entities: `send_node_command`, `send_raw_node_command`.
- ISY Z-Wave Node services: `get_zwave_parameter`, `set_zwave_parameter`, `set_zwave_lock_user_code`, `delete_zwave_lock_user_code`
- Generic ISY services: `send_program_command` - Generic ISY services: `send_program_command`
#### Service `isy994.send_node_command` #### Service `isy994.send_node_command`
@ -178,6 +179,26 @@ Update a Z-Wave Device parameter via the ISY. The parameter value will also be r
| `value` | no | The value to set for the parameter. May be an integer or byte string (e.g. "0xFFFF"). | | `value` | no | The value to set for the parameter. May be an integer or byte string (e.g. "0xFFFF"). |
| `size` | no | The size of the parameter, either 1, 2, or 4 bytes. | | `size` | no | The size of the parameter, either 1, 2, or 4 bytes. |
#### Service `isy994.set_zwave_lock_user_code`
Set a Z-Wave Lock User Code via the ISY.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------------------------------------------------------------------------------------------- |
| `entity_id` | no | Name of target entity for the command, e.g., `lock.front_door`. The entity must be an ISY Z-Wave Lock entity. |
| `user_num` | no | The user slot number to set on the end device. |
| `code` | no | The lock code to set for the user slot. |
#### Service `isy994.delete_zwave_lock_user_code`
Delete a Z-Wave Lock User Code via the ISY.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------------------------------------------------------------------------------------------- |
| `entity_id` | no | Name of target entity for the command, e.g., `lock.front_door`. The entity must be an ISY Z-Wave Lock entity. |
| `user_num` | no | The user slot number to delete the code on the end device. |
#### Service `isy994.rename_node` #### Service `isy994.rename_node`
Rename a node or group (scene) on the ISY994. Note: this will not automatically change the Home Assistant Entity Name or Entity ID to match. The entity name and ID will only be updated after calling `isy994.reload` or restarting Home Assistant, and ONLY IF you have not already customized the name within Home Assistant. Rename a node or group (scene) on the ISY994. Note: this will not automatically change the Home Assistant Entity Name or Entity ID to match. The entity name and ID will only be updated after calling `isy994.reload` or restarting Home Assistant, and ONLY IF you have not already customized the name within Home Assistant.