LZW42 + LZW31-SN Association with ZWave-JS-UI

I recently changed my ZWave controller and need to re-associate these two items. It’s a single pole setup, and previously, I think I associated them on the switch itself (not through my hub - Home Assistant). Now I’m trying to set this up and it’s not working as seamlessly as I recall. For example, I have a dashboard in my HA where I show the bulb, so I can change the color. If I turn off the bulb on that dashboard, the corresponding entry for the switch isn’t turning off (and the LED on the switch stays on).

Here is what I set on the switch:

And the bulb itself is just normal:

I searched the forum and found some information about hubitat, but not Zwave-JS-UI. Anyone have these two working correctly with this setup that can offer advice? Thanks!

My z2m config has groups 3 and 4 from switch to bulb. Nothing from bulb to switch.

And if you turn the bulb off, does the switch turn off? That seems to be the issue that I’m having right now.

No. I think you’ll want to add groups 3 and 4 from the bulb to the switch. That’s similar to how you do switch to switch but there is an extra step.

Is the bulb supposed to have additional groups? This is all mine shows:

  "groups": [
    {
      "text": "Lifeline",
      "endpoint": 0,
      "value": 1,
      "maxNodes": 1,
      "isLifeline": true,
      "multiChannel": false
    }
  ],

That’s the normal config. Nothing extra. I’m on vacation for a few days. When i get back I can try it at my house and let you know if i get it working

1 Like

I set up the following automation in HA to address this, though using the hub to do something like this kind of defeats the purpose of binding:

alias: Foyer Bulb and Switch FIx
description: ""
triggers:
  - trigger: state
    entity_id:
      - light.foyer_bulb
    to: "on"
    id: bulb-on
  - trigger: state
    entity_id:
      - light.foyer_bulb
    to: "off"
    id: bulb-off
  - trigger: state
    entity_id:
      - light.foyer_bulb
    attribute: brightness
    id: bulb-brightness
conditions: []
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - bulb-on
        sequence:
          - action: light.turn_on
            target:
              entity_id: light.foyer_switch
            data: {}
      - conditions:
          - condition: trigger
            id:
              - bulb-off
        sequence:
          - action: light.turn_off
            target:
              entity_id:
                - light.foyer_switch
            data: {}
      - conditions:
          - condition: trigger
            id:
              - bulb-brightness
        sequence:
          - action: light.turn_on
            target:
              entity_id: light.foyer_switch
            data:
              brightness_pct: "{{ state_attr('light.foyer_bulb', 'brightness')/255*100 }}"
mode: single