mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 09:46:59 +00:00
Updates for changes to related PR
This commit is contained in:
parent
431963e68c
commit
6695cff64a
@ -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 %}
|
@ -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. |
|
||||
|
Loading…
x
Reference in New Issue
Block a user