From 81ed5c52f4c10bd08bdab31bf728d1b35a58e4e2 Mon Sep 17 00:00:00 2001 From: raman325 <7243222+raman325@users.noreply.github.com> Date: Fri, 23 Jul 2021 11:24:41 -0400 Subject: [PATCH 1/5] Document zwave_js.meter_reset service --- source/_integrations/zwave_js.markdown | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/source/_integrations/zwave_js.markdown b/source/_integrations/zwave_js.markdown index 0015cb873fef..1c71d6e016cf 100644 --- a/source/_integrations/zwave_js.markdown +++ b/source/_integrations/zwave_js.markdown @@ -227,8 +227,8 @@ This service will set a value on multiple Z-Wave devices using multicast. It is | Service Data Attribute | Required | Description | |------------------------ |---------- |-------------------------------------------------------------------------------------------------------------------------------------------------- | -| `entity_id` | no | Entity (or list of entities) to set the configuration parameter on. At least two `entity_id` or `device_id` must be provided if not broadcasting the command. | -| `device_id` | no | ID of device (or list of device IDs) to set the configuration parameter on. At least two `entity_id` or `device_id` must be provided if not broadcasting the command. | +| `entity_id` | no | Entity (or list of entities) to set the configuration parameter on. An `entity_id` or `device_id` must be provided if not broadcasting the command. | +| `device_id` | no | ID of device (or list of device IDs) to set the configuration parameter on. An `entity_id` or `device_id` must be provided if not broadcasting the command. | | `broadcast` | no | Boolean that indicates whether you want the message to be broadcast to all nodes on the network. If you have only one Z-Wave JS network configured, you do not need to provide a `device_id` or `entity_id` when this is set to true. When you have multiple Z-Wave JS networks configured, you MUST provide at least one `device_id` or `entity_id` so the service knows which network to target. | | `command_class` | yes | ID of Command Class that you want to set the value for. | | `property` | yes | ID of Property that you want to set the value for. | @@ -262,6 +262,17 @@ action: entity_id: "{{ trigger.entity_id }}" ``` +### Service `zwave_js.meter_reset` + +This service will reset the meters on a device that supports the Meter Command Class. + +| Service Data Attribute | Required | Description | +| ---------------------- | -------- | ------------------------------------------------------------------------------------------------------------------ | +| `entity_id` | no | Entity (or list of entities) to reset meters for. An `entity_id` or `device_id` must be provided. | +| `device_id` | no | ID of device (or list of device IDs) to reset meters for. An `entity_id` or `device_id` must be provided. | +| `meter_type` | no | If supported by the device, indicates the type of meter to reset. Not all devices support this option. | +| `value` | no | If supported by the device, indicates the value to reset the meter to. Not all devices that support this option. | + ### Service `zwave_js.set_lock_usercode` This service will set the usercode of a lock to X at code slot Y. From 7c449af48adbfbd763f264808df1ce22f65c83d8 Mon Sep 17 00:00:00 2001 From: raman325 <7243222+raman325@users.noreply.github.com> Date: Fri, 23 Jul 2021 11:29:40 -0400 Subject: [PATCH 2/5] revert additional change and put in separate PR --- source/_integrations/zwave_js.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_integrations/zwave_js.markdown b/source/_integrations/zwave_js.markdown index 1c71d6e016cf..3bb1c82c70f7 100644 --- a/source/_integrations/zwave_js.markdown +++ b/source/_integrations/zwave_js.markdown @@ -227,8 +227,8 @@ This service will set a value on multiple Z-Wave devices using multicast. It is | Service Data Attribute | Required | Description | |------------------------ |---------- |-------------------------------------------------------------------------------------------------------------------------------------------------- | -| `entity_id` | no | Entity (or list of entities) to set the configuration parameter on. An `entity_id` or `device_id` must be provided if not broadcasting the command. | -| `device_id` | no | ID of device (or list of device IDs) to set the configuration parameter on. An `entity_id` or `device_id` must be provided if not broadcasting the command. | +| `entity_id` | no | Entity (or list of entities) to set the configuration parameter on. At least two `entity_id` or `device_id` must be provided if not broadcasting the command. | +| `device_id` | no | ID of device (or list of device IDs) to set the configuration parameter on. At least two `entity_id` or `device_id` must be provided if not broadcasting the command. | | `broadcast` | no | Boolean that indicates whether you want the message to be broadcast to all nodes on the network. If you have only one Z-Wave JS network configured, you do not need to provide a `device_id` or `entity_id` when this is set to true. When you have multiple Z-Wave JS networks configured, you MUST provide at least one `device_id` or `entity_id` so the service knows which network to target. | | `command_class` | yes | ID of Command Class that you want to set the value for. | | `property` | yes | ID of Property that you want to set the value for. | From b06aa6f48e81089351bc824b1c07dca279bb7b04 Mon Sep 17 00:00:00 2001 From: raman325 <7243222+raman325@users.noreply.github.com> Date: Fri, 23 Jul 2021 13:54:32 -0400 Subject: [PATCH 3/5] Updates based on PR feedback --- source/_integrations/zwave_js.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/_integrations/zwave_js.markdown b/source/_integrations/zwave_js.markdown index 3bb1c82c70f7..f2b356d57a94 100644 --- a/source/_integrations/zwave_js.markdown +++ b/source/_integrations/zwave_js.markdown @@ -262,7 +262,7 @@ action: entity_id: "{{ trigger.entity_id }}" ``` -### Service `zwave_js.meter_reset` +### Service `zwave_js.reset_meter` This service will reset the meters on a device that supports the Meter Command Class. @@ -270,6 +270,7 @@ This service will reset the meters on a device that supports the Meter Command C | ---------------------- | -------- | ------------------------------------------------------------------------------------------------------------------ | | `entity_id` | no | Entity (or list of entities) to reset meters for. An `entity_id` or `device_id` must be provided. | | `device_id` | no | ID of device (or list of device IDs) to reset meters for. An `entity_id` or `device_id` must be provided. | +| `endpoint ` | no | The endpoint to target when resetting meters. | | `meter_type` | no | If supported by the device, indicates the type of meter to reset. Not all devices support this option. | | `value` | no | If supported by the device, indicates the value to reset the meter to. Not all devices that support this option. | From 553fa9d38a983dc0ad589eb0c3880efc290c7637 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 23 Jul 2021 21:21:25 +0200 Subject: [PATCH 4/5] Tweak --- source/_integrations/zwave_js.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/zwave_js.markdown b/source/_integrations/zwave_js.markdown index f2b356d57a94..cf3d017e011c 100644 --- a/source/_integrations/zwave_js.markdown +++ b/source/_integrations/zwave_js.markdown @@ -272,7 +272,7 @@ This service will reset the meters on a device that supports the Meter Command C | `device_id` | no | ID of device (or list of device IDs) to reset meters for. An `entity_id` or `device_id` must be provided. | | `endpoint ` | no | The endpoint to target when resetting meters. | | `meter_type` | no | If supported by the device, indicates the type of meter to reset. Not all devices support this option. | -| `value` | no | If supported by the device, indicates the value to reset the meter to. Not all devices that support this option. | +| `value` | no | If supported by the device, indicates the value to reset the meter to. Not all devices support this option. | ### Service `zwave_js.set_lock_usercode` From a1c462a01733caa46d44c8eb03a4f45d2fec803b Mon Sep 17 00:00:00 2001 From: raman325 <7243222+raman325@users.noreply.github.com> Date: Wed, 28 Jul 2021 13:40:48 -0400 Subject: [PATCH 5/5] tweaks based on upstream feedback --- source/_integrations/zwave_js.markdown | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/_integrations/zwave_js.markdown b/source/_integrations/zwave_js.markdown index cf3d017e011c..23d7a9ff8612 100644 --- a/source/_integrations/zwave_js.markdown +++ b/source/_integrations/zwave_js.markdown @@ -268,9 +268,7 @@ This service will reset the meters on a device that supports the Meter Command C | Service Data Attribute | Required | Description | | ---------------------- | -------- | ------------------------------------------------------------------------------------------------------------------ | -| `entity_id` | no | Entity (or list of entities) to reset meters for. An `entity_id` or `device_id` must be provided. | -| `device_id` | no | ID of device (or list of device IDs) to reset meters for. An `entity_id` or `device_id` must be provided. | -| `endpoint ` | no | The endpoint to target when resetting meters. | +| `entity_id` | yes | Entity (or list of entities) for the meters you want to reset. | | `meter_type` | no | If supported by the device, indicates the type of meter to reset. Not all devices support this option. | | `value` | no | If supported by the device, indicates the value to reset the meter to. Not all devices support this option. |