zwave_js.set_config_parameter
was added to Home Assistant version 2021.03 (which is in beta as of this writing ). So the updated script replaces OpenZwave service call with the zwave_js version.
---
# Calculation References:
# https://nathanfiscus.github.io/inovelli-notification-calc/
# https://community.inovelli.com/t/home-assistant-2nd-gen-switch-rgb-working/168/62
# https://docs.google.com/spreadsheets/u/1/d/1SGJrJHCUtz8AzznWL_mLCTJjjr2U0IpltcUkRr7N_6M/edit?usp=sharing
#
# Changes:
# July 22, 2020: Incorporating changes from Kevin Schlichter.
# https://github.com/kschlichter/Home-Assistant-Inovelli-Red-Dimmer-Switch
#
# September 17, 2020: There are some massive improvements to my version of this code. Here are the highlights:
# 1. Choose - using the recently added choose: feature a separate call has been created for the Z-wave and OZW
# versions of the service call.
# 2. Variables - using 0.115’s new variables: feature the variables sent each service call only have to be
# calculated once.
# 3. Supported Features - I realized that I could probably tell the difference between modules using the
# “supported_features” attribute of each switch. For example my dimmer’s supported features is “33”.
#
# September 18, 2020: Added "model" parameter with options of dimmer, switch, combo_light, combo_fan. This replaces
# supported_features as the combo fan/light switch also had the same supported_features value.
This file has been truncated. show original
3 Likes