From 6695cff64ac44f8ffdbf0ce40cbe45aa1fb286b7 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 25 Sep 2018 17:45:03 -0500 Subject: [PATCH] Updates for changes to related PR --- source/_docs/z-wave/device-specific.markdown | 30 +++++++++++++------- source/_docs/z-wave/services.markdown | 2 +- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/source/_docs/z-wave/device-specific.markdown b/source/_docs/z-wave/device-specific.markdown index c080c8324b2..5ab2476c116 100644 --- a/source/_docs/z-wave/device-specific.markdown +++ b/source/_docs/z-wave/device-specific.markdown @@ -440,62 +440,72 @@ switch: button_1_led: value_template: "{{ states('sensor.scene_contrl_indicator')|int|bitwise_and(1) > 0 }}" turn_on: - service: zwave.set_indicator + service: zwave.set_node_value data_template: node_id: 3 + value_id: "{{ states.sensor.scene_contrl_indicator.attributes.value_id }}" value: "{{ states('sensor.scene_contrl_indicator')|int + 1 }}" turn_off: - service: zwave.set_indicator + service: zwave.set_node_value data_template: node_id: 3 + value_id: "{{ states.sensor.scene_contrl_indicator.attributes.value_id }}" value: "{{ states('sensor.scene_contrl_indicator')|int - 1 }}" button_2_led: value_template: "{{ states('sensor.scene_contrl_indicator')|int|bitwise_and(2) > 0 }}" turn_on: - service: zwave.set_indicator + service: zwave.set_node_value data_template: node_id: 3 + value_id: "{{ states.sensor.scene_contrl_indicator.attributes.value_id }}" value: "{{ states('sensor.scene_contrl_indicator')|int + 2 }}" turn_off: - service: zwave.set_indicator + service: zwave.set_node_value data_template: node_id: 3 + value_id: "{{ states.sensor.scene_contrl_indicator.attributes.value_id }}" value: "{{ states('sensor.scene_contrl_indicator')|int - 2 }}" button_3_led: value_template: "{{ states('sensor.scene_contrl_indicator')|int|bitwise_and(4) > 0 }}" turn_on: - service: zwave.set_indicator + service: zwave.set_node_value data_template: node_id: 3 + value_id: "{{ states.sensor.scene_contrl_indicator.attributes.value_id }}" value: "{{ states('sensor.scene_contrl_indicator')|int + 4 }}" turn_off: - service: zwave.set_indicator + service: zwave.set_node_value data_template: node_id: 3 + value_id: "{{ states.sensor.scene_contrl_indicator.attributes.value_id }}" value: "{{ states('sensor.scene_contrl_indicator')|int - 4 }}" button_4_led: value_template: "{{ states('sensor.scene_contrl_indicator')|int|bitwise_and(8) > 0 }}" turn_on: - service: zwave.set_indicator + service: zwave.set_node_value data_template: node_id: 3 + value_id: "{{ states.sensor.scene_contrl_indicator.attributes.value_id }}" value: "{{ states(scene_contrl_indicator)|int + 8 }}" turn_off: - service: zwave.set_indicator + service: zwave.set_node_value data_template: node_id: 3 + value_id: "{{ states.sensor.scene_contrl_indicator.attributes.value_id }}" value: "{{ states('sensor.scene_contrl_indicator')|int - 8 }}" button_5_led: value_template: "{{ states('sensor.scene_contrl_indicator')|int|bitwise_and(16) > 0 }}" turn_on: - service: zwave.set_indicator + service: zwave.set_node_value data_template: node_id: 3 + value_id: "{{ states.sensor.scene_contrl_indicator.attributes.value_id }}" value: "{{ states('sensor.scene_contrl_indicator')|int + 16 }}" turn_off: - service: zwave.set_indicator + service: zwave.set_node_value data_template: node_id: 3 + value_id: "{{ states.sensor.scene_contrl_indicator.attributes.value_id }}" value: "{{ states('sensor.scene_contrl_indicator')|int - 16 }}" ``` {% endraw %} \ No newline at end of file diff --git a/source/_docs/z-wave/services.markdown b/source/_docs/z-wave/services.markdown index dc61479a1e5..17cc8270ef0 100644 --- a/source/_docs/z-wave/services.markdown +++ b/source/_docs/z-wave/services.markdown @@ -31,7 +31,7 @@ The `zwave` component exposes multiple services to help maintain the network. Al | replace_failed_node | Replace a failed device with another. If the node is not in the controller's Failed Node List, or the node responds, this command will fail. | | reset_node_meters | Reset a node's meter values. Only works if the node supports this. | | set_config_parameter | Lets the user set a config parameter to a node. NOTE: Use the parameter option's `label` string as the `value` for list parameters (e.g., `"value": "Off"`). For all other parameters use the relevant integer `value` (e.g., `"value": 1`). | -| set_indicator | Set the indicator value of a Z-Wave node. | +| set_node_value | Set the specified value of a Z-Wave node. | | soft_reset | Tells the controller to do a "soft reset." This is not supposed to lose any data, but different controllers can behave differently to a "soft reset" command. | | start_network | Starts the Z-Wave network. | | stop_network | Stops the Z-Wave network. |