Zooz ZEN32 Control and Track all in one

Any chance you can update this to support the 3-way button. On newer firmware versions, they added the ability to have the momentary press of the 3-way remote button trigger held and released events for scene 6. Here’s the sample events. I also asked Zooz to make it send a button pressed event when the 3-way switch type is set to Toggle

[54-112-0-26] Scene Control: Remote 3-Way Switch = Enabled
[54-112-0-21] 3-Way Switch Type = Momentary Switch

event_type: zwave_js_value_notification
data:
  domain: zwave_js
  node_id: 54
  home_id: 4142848207
  endpoint: 0
  device_id: bfdc7f71213647edf7161aabcb97d41f
  command_class: 91
  command_class_name: Central Scene
  label: Scene 006
  property: scene
  property_name: scene
  property_key: "006"
  property_key_name: "006"
  value: KeyHeldDown
  value_raw: 2
origin: LOCAL
time_fired: "2024-10-14T20:32:42.617552+00:00"
context:
  id: 01JA6BQB3S674Z37M4E2NZN6G6
  parent_id: null
  user_id: null
event_type: zwave_js_value_notification
data:
  domain: zwave_js
  node_id: 54
  home_id: 4142848207
  endpoint: 0
  device_id: bfdc7f71213647edf7161aabcb97d41f
  command_class: 91
  command_class_name: Central Scene
  label: Scene 006
  property: scene
  property_name: scene
  property_key: "006"
  property_key_name: "006"
  value: KeyReleased
  value_raw: 1
origin: LOCAL
time_fired: "2024-10-14T20:32:43.122352+00:00"
context:
  id: 01JA6BQBKJ66PJFT1AZ2X5TYW3
  parent_id: null
  user_id: null

Try 2024.10.1. I don’t have a 3 way setup to test. So confirm it works.

It works. Can you add an sequence for KeyReleased also? That would let me configure my toggle switches to be able to control the lights properly.

I can’t find the scenes supported, do you know if it’s the same as any other button?

If not, can you test and post the events.

What do you mean? The events for KeyHeld and Released are in my message above. It looks the same as any other button but only keyheld and key released are sent at the moment. I e-mailed Zooz asking them to add a key pressed event when the switch is set to toggle mode and the switch toggles. If you want to test it, set those two parameters that I mentioned and then just connect the 3 way terminal on the back of the ZEN32 to neutral to simulate the button being pressed.

I meant does it support 2x, 3x, 4x, 5x, pressed, like a normal button does?

Ok, so I just tested it and it does support everything a normal button does.

KeyPressed2x
KeyPressed3x
KeyPressed4x
KeyPressed5x
KeyHeldDown
KeyPressed
KeyReleased

Grab 2024.10.2.

I tested KeyPressed and Held. They seem to work fine. I’ll get the rest tested later.

Thanks for the great blueprint! Zooz32’s all over my house now. Much more attractive than the stick on Hue remotes I had before. Question, and apologies if this is covered somewhere else, is there anyway you can disable the out of the box 3x big buttons press to start pairing mode? I’d love to be able to program all the buttons to function the same with 3 presses but I can see my family tuning out when trying to explain they can’t do the ton the big one. Thanks for any advice.

Turn off local programming parameter 22.

1 Like

I’m almost certainly doing something wrong… been tyring to get all of the LEDs to turn off during nighttime. I have on during daytime set for all of the buttons in all states other than unavailable. in the trace for nighttime it looks like the colors are still active. Is there anything else I should be setting to get the LEDs to turn off at night? trace below…

this:
  entity_id: automation.melody_closet_scene_controller
  state: 'on'
  attributes:
    id: '1730213609058'
    last_triggered: '2024-11-06T00:59:48.568546+00:00'
    mode: parallel
    current: 0
    max: 10
    friendly_name: Melody Closet Scene Controller
  last_changed: '2024-11-05T01:39:57.718946+00:00'
  last_reported: '2024-11-06T00:59:48.898899+00:00'
  last_updated: '2024-11-06T00:59:48.898899+00:00'
  context:
    id: 01JBZFR7EQ1F14QFTF3TGK2ZHE
    parent_id: 01JBZFR7ENN82W1GSZP4Q9YXKC
    user_id: null
trigger:
  id: NightTime
  idx: '1'
  alias: NightTime
  platform: time
  now: '2024-11-05T21:00:00.437165-07:00'
  description: time
  entity_id: null
schedule_start: '21:00:00'
schedule_stop: '06:00:00'
schedule_set: true
inputs:
  - button_id: 0
    track_relay: '0'
    off_state: '99'
    off_color: '0'
    off_brightness: '1'
    on_state: '99'
    on_color: '1'
    on_brightness: '1'
    unavail_state: '3'
    unavail_color: '3'
    unavail_brightness: '1'
    trigger_entity: []
  - button_id: 1
    off_state: '99'
    off_color: '6'
    off_brightness: '1'
    on_state: '99'
    on_color: '6'
    on_brightness: '1'
    unavail_state: '3'
    unavail_color: '3'
    unavail_brightness: '1'
    trigger_entity: []
  - button_id: 2
    off_state: '99'
    off_color: '1'
    off_brightness: '1'
    on_state: '99'
    on_color: '1'
    on_brightness: '1'
    unavail_state: '3'
    unavail_color: '3'
    unavail_brightness: '1'
    trigger_entity: []
  - button_id: 3
    off_state: '99'
    off_color: '2'
    off_brightness: '1'
    on_state: '99'
    on_color: '2'
    on_brightness: '1'
    unavail_state: '3'
    unavail_color: '3'
    unavail_brightness: '1'
    trigger_entity: []
  - button_id: 4
    off_state: '99'
    off_color: '4'
    off_brightness: '1'
    on_state: '99'
    on_color: '4'
    on_brightness: '1'
    unavail_state: '3'
    unavail_color: '3'
    unavail_brightness: '1'
    trigger_entity: []
controller_id: 34033c807c2062a438de359007c877a6
input_p19: '1'
input_p20: '1'
input_p23: '1'
input_p24: '0'
toggle_offset: 1
color_offset: 6
brightness_offset: 11
night_led_brightness: '2'
in_nighttime: true

Using the latest version? Can you look in logs for any errors around that time?

@rwalker latest version and no errors. I was able to look at last nights trace this morning, appears hat the brightness is still set to 1 (low) for all buttons. I haven’t been able to determine what off state and on state 99 correlate to…

Edit: figured out 99 in the code. Going to read through and see if there are dependencies I haven’t fulfilled.

trigger_entity: []
  - button_id: 3
    off_state: '99'
    off_color: '2'
    off_brightness: '1'
    on_state: '99'
    on_color: '2'
    on_brightness: '1'
    unavail_state: '3'
    unavail_color: '3'
    unavail_brightness: '1'
    trigger_entity: []
  - button_id: 4
    off_state:

Greetings Roy,

Finally migrating another switch to this and getting an odd experience. I’m trying to use the relay led separate from the relay (it’s in smart switch mode anyway).

The problem is that it’s showing white for off, yet I’ve enabled “always off” for the off state. On my other switch “always off” works just fine on the relay led, so either I have something configured wrong, or is there possibly a quirk?

This is the 2024.10.2 version from the import link in post 1.

alias: ZEN32 - Master Bedroom - State Tracking
description: ""
use_blueprint:
  path: rwalker777/ZEN32-control-track2.yaml
  input:
    zooz_switch: cb53c60f1f1668e7d3a4424d0e67943f
    p19_relay_control: "0"
    track_relay0: "99"
    input_entity0: binary_sensor.doors_locked_and_alarm_armed
    off_state0: "2"
    on_brightness0: "2"
    on_color0: "2"
    unavail_brightness0: "2"

Thanks Roy! Merry Christmas and or Happy Holidays if you celebrate one this month.

Edit - one other tidbit of testing. I tried to enable night mode for that led for the “off” state, just to try it. In that configuration the led comes on for “on”, but doesn’t turn off for “off”, even though I’m within the night time frame. (It doesn’t change color either, so it seems the signal to change doesn’t go out). On my phone at the moment so it’s hard to grab a trace if that’s helpful. But happy to grab it later.

alias: ZEN32 - Master Bedroom - State Tracking
description: ""
use_blueprint:
  path: rwalker777/ZEN32-control-track2.yaml
  input:
    zooz_switch: cb53c60f1f1668e7d3a4424d0e67943f
    p19_relay_control: "0"
    track_relay0: "99"
    input_entity0: binary_sensor.doors_locked_and_alarm_armed
    off_state0: "99"
    on_brightness0: "2"
    on_color0: "2"
    unavail_brightness0: "2"
    night_led_brightness: "2"
    schedule_start: "00:20:00"
    schedule_stop: "00:06:00"

Thanks so much for this awesome Blueprint. I have two ZEN32 scene controllers and this really makes setting up all the buttons, etc. easy. Appreciate your hard work.

Hello. I recently installed a few ZEN32s and been enjoying the blueprint you made. One thing that I cant seem to get to work right (its intermittent). I have my big button (relay, button 5) to turn on when load is on and off when load is off. Its basically a helper to signal the led to turn red or ‘nothing’ if our cat is outside. We press it everytime he comes in and out by the sliding glass door.

So the on / red part works fine, but I noticed, that despite setting this to only turn on when the load is on, that it still uses the ‘off’ color (of white) sometimes. I suppose not the end of the world, but Id just assume that it be ‘nothing’/blank when it was off. With the setting ‘on when load’ I would assume it would just not do anything for the the off state but it seems to be using the selection of white anyway

I guess my ask is if you could either see anything from yaml form I could change. Another idea is where we select colors, there is no color choice for ‘nothing’. What I mean is I have to select a color even for the state which I plan to never show. Perhaps (and I may very well be wrong on this) it could just be ignored completed via an option choice. Not sure that is it but an idea

As mentioned this seems intermittant. Like I willl set up the automation and its great, then the next day it just starts showing white when off. (no other automations related to this in the mix). Anyhow any thoughts/help are appreciated.!

Thanks again for the wonderful blueprint. Despite this small thing, its been a huge time saver

> alias: ZEN32 Family Room
> description: ""
> use_blueprint:
>   path: rwalker777/ZEN32-control-track.yaml
>   input:
>     input_entity4: light.kitchen_ge_zwave_dimmer_qfsw_500s
>     zooz_switch: d99ac014fe61a546b14ad634589a927b
>     track_relay0: "1"
>     scene_5:
>       - action: input_boolean.toggle
>         metadata: {}
>         data: {}
>         target:
>           entity_id: input_boolean.cats_outside_toggle
>     input_entity0: input_boolean.cats_outside_toggle
>     off_state0: "2"
>     on_color0: "3"
>     unavail_color0: "5"
>     off_state4: "3"
>     unavail_color4: "3"
>     on_color4: "0"
>     input_entity3: fan.patio_fan
>     off_state3: "3"
>     on_color3: "0"
>     unavail_color3: "3"
>     input_entity2: light.patio_master_cabana
>     off_state2: "3"
>     on_color2: "0"
>     unavail_color2: "3"
>     input_entity1: light.patio_fan
>     off_state1: "3"
>     on_color1: "0"
>     unavail_color1: "3"
>     scene_1:
>       - action: light.toggle
>         metadata: {}
>         data: {}
>         target:
>           entity_id: light.patio_fan
>     scene_2:
>       - action: light.toggle
>         metadata: {}
>         data: {}
>         target:
>           entity_id: light.patio_master_cabana
>     scene_3:
>       - action: fan.toggle
>         metadata: {}
>         data: {}
>         target:
>           entity_id: fan.patio_fan
>     scene_4:
>       - action: light.toggle
>         metadata: {}
>         data: {}
>         target:
>           entity_id: light.kitchen_ge_zwave_dimmer_qfsw_500s
>     off_color2: "2"
>     on_state2: "2"
>     off_color3: "1"
>     on_state3: "2"
>     on_state4: "2"
>     off_color4: "5"
>     off_color1: "2"
>     on_state1: "2"
>     off_brightness0: "2"
>     on_brightness0: "2"
>     unavail_brightness0: "2"
>     off_brightness1: "2"
>     on_brightness1: "2"
>     unavail_brightness1: "2"
>     off_brightness2: "2"
>     on_brightness2: "2"
>     unavail_brightness2: "2"
>     off_brightness3: "2"
>     on_brightness3: "2"
>     unavail_brightness3: "2"
>     off_brightness4: "2"
>     on_brightness4: "2"
>     unavail_brightness4: "2"

Have you tried this setting?

Edit - I think so by your YAML, but I’m not familiar with this blueprintcs YAML.

I have mine turn on and off as it’s difficult to tell if our outside light is on from inside, so similar to your case I think. At one point I had issues that seemed to resolve after playing with the Parameter 20, 23, and 24 up top. All of which I have disabled at this point.

Thanks for the reply. Sorry I should have included the visual of things too as its easier to read. Looks like I do have Parameter 24 set to ‘Enable’. I will try that and see if it helps in a short bit. Thanks

EDIT - Setting Parameter 24 Scene Control Relay to Disable makes it so it doesnt light up at all. Will need to leave that on Enabled. I kinda feel like where I have ‘Off color’ set to White needs to just be removed from the Yaml so its set to ‘nothing’. I realize I’m also doing ‘Always off’ so it shouldnt use that color but for whatever reason it is. Perhaps if it wasn’t set at all, it would show as ‘nothing’ (no color)

From ZHA

Are you actually toggling the relay, or a boolean, or both at the same time? In my case it’s actually the relay itself so the entity I select is the relay itself.