Ok folks, i’ve searched my tail off, but just can’t find the answer. Im looking to configure parameters on devices added to my zwave network so they all the same configuration. I know I can clone-config, but im looking for something hands off. I attempted to create a group of devices, would be nice if there was a dynamic option, but I couldn’t get the group to be used for an automation to set the config parameters like an array. Has anyone done this, easily?
Here’s a script I use to configure Zooz zse44 sensors
configure_zooz_zse44:
alias: configure_zooz_zse44
description: "Configures zooz zse44"
fields:
entity_id:
description: "Entity Id"
example: "sensor.hvac_intake_temperature"
temp_sensitivity:
description: "reporting sensitivity 1 is 0.1 degrees"
example: "10"
temp_interval:
description: "reporting interval minutes"
example: "15"
mode: single
sequence:
- service: zwave_js.set_config_parameter
data_template:
# Temperature Threshold
entity_id: "{{ entity_id }}"
parameter: 3
value: "{{ temp_sensitivity }}"
- service: zwave_js.set_config_parameter
data_template:
# Temperature Reporting Interval
entity_id: "{{ entity_id }}"
parameter: 16
value: "{{ temp_interval }}"
And for an aoetec switch 7
zw_configure_aeotec_switch_6_zw096:
alias: zw_configure_aeotec_switch_6_zw096
description: configure the zwave device AEON Labs ZW096 Smart Switch 6
fields:
entity_id:
description: Entity Id
example: sensor.sensor_2_temperature
mode: single
variables:
entity: '{{ entity_id }}'
device_model: ZW096
sequence:
- if:
condition: template
value_template: '{{ device_attr(entity,"model") != device_model }}'
then:
stop: Incorrect device id
- service: system_log.write
data:
level: info
message: Running zw_configure_aeotec_switch_6_zw096
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: Current Overload Protection
value: 1
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: State After Power Failure
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: Send Notifications to Associated Devices (Group 1)
value: 2
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: LED Indicator
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Night Light: Blue Color'
value: 20
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Night Light: Green Color'
value: 27
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Night Light: Red Color'
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Night Light: Green Brightness'
value: 50
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Night Light: Yellow Brightness'
value: 50
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Night Light: Red Brightness'
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: Send Automatic Reports When Exceeding Thresholds
value: 1
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: Minimum Power Change to Trigger Event
value: 10
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: Minimum Power Percentage Change to Trigger Event
value: 5
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Report: Group 1 - Voltage'
value: 1
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Report: Group 1 - Current'
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Report: Group 1 - Power'
value: 1
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Report: Group 1 - kWh'
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Report: Group 2 - Voltage'
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Report: Group 2 - Current'
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Report: Group 2 - Power'
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Report: Group 2 - kWh'
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Report: Group 3 - Voltage'
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Report: Group 3 - Current'
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Report: Group 3 - Power'
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Report: Group 3 - kWh'
value: 0
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Reporting Interval: Group 1'
value: 600
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Reporting Interval: Group 2'
value: 3600
- service: zwave_js.set_config_parameter
data:
entity_id: '{{ entity }}'
parameter: 'Automatic Reporting Interval: Group 3'
value: 3600