Home Assistant scripts to manage Leviton VRCZ4[-Mx] controllers.
Supported features:
- associating the same switch/light with different controllers
- LED indicators reflect the state of the associated load (Green - on, Off -off)
- Up/Down buttons control the intensity of the last load triggered on this controller (only if the load is of a light-type)
Z-Wave Configuration:
For each VRCZ4 controller configure the following settings in Zwave JS UI:
-
Make sure all 4 groups point to your primary Zwave controller.
Controller(Nook) in the example below.
This seems to be default for VRCZ4 controllers, but has to be done manually for VRCZ4-Mx ones.
- Make sure all 8 Associated Scene IDs are assigned corresponding number, i.e. Associated Scene ID(x) -> x
Installation:
-
Create new script "UpdateLevitonControllers" and paste there content of update_contollers_script.yaml
- modify 'dev_db' variable at the top of the script per instructions there.
- for every controller device_id that you specified in 'dev_db' create input_number named 'input_number.<device_id>' with initial value of 0, maximum value of 3, step 1
-
Create new script "UpdateLevitonLEDs" and paste there content of update_leds_script.yaml
-
Create new script "SwitchTurnOn" and paste there content of switch_turn_on_script.yaml
-
Create new script "SwitchTurnOff" and paste there content of switch_turn_off_script.yaml
-
Create new automation "Controller Activation" and paste there content of controller_automation.yaml
- fix up device_ids and/or add more scene_activation triggers using UI (you should have one trigger for every controller you specified in 'dev_db' above)
-
Create new automation "Switch Activation" and paste there content of switch_automation.yaml
- fix up device_ids/entity_ids and/or add more switches/light triggers using UI (you should have one trigger for every switch/light you specified in 'dev_db' above)
-
Create new automation "Controller Level" and paste there content of controller_level_automation.yaml