Z-wave switch flipping on and off after PIR motion detected

The garage light switch is making the light flash on and off as shown in the GIF. At the same time I can hear the sound of the relay (zwave switch) going on and off.
This has been stable for many months.

I noticed today that I stops flashing if I turn the switch off via the HA switch, but triggers back to flashing state once the PIR detects motion.

What am I missing here? No change is made to this Automation from when it all worked as expected.

20200303_215758

This is the Automation

- alias: '[Lys] Garasjelys PÅ' ## Switch light on when PIR motion
  trigger:
    platform: state
    entity_id: binary_sensor.pir_garasje
    to: 'on'
  action:
    - service: switch.turn_on
      entity_id: switch.garasjelys

- alias: '[Lys] Garasjelys av etter bevegelse' ## Switch light off after PIR motion has stopped
  trigger:
    platform: state
    entity_id: binary_sensor.pir_garasje
    to: 'off'
    for: '00:01:00'
  action:
    service: switch.turn_off
    entity_id: switch.garasjelys

Are the PIR and light switch zwave devices?
If so they may have associated with each other, you’ll need to break that association to get it working correctly again.

They are both Z-wave.
Can you elaborate on “associated”?
They are, of course, neighbors in the zwave network.

It will be at the bottom of your node in the zwave control panel.


Make sure for the light switch that only node 1 is associated with it. There may be multiple groups other than Lifeline listed. You’ll want to inspect them to find the association then select the PIR from the Node to Control and click Remove from Group

My issue is coming and going. It’s not flashing every time. For instance this morning the light turned on like it should, this afternoon it was flashing. Now, at night, it turned on like it should, regular, non-flashing. AND it has been working flawlessly in several months prior to the two last weeks.
I find no pattern to this😳

I had that happen with a zwave PIR and I could never break the Node Group Associations. No matter what I ended up doing it always came back. I eventually had to get rid of the PIR.

It says “No other nodes in this group”, so there is no option to remove it from the group either…?

Am I missing something here?

This is the other way around (selecting the PIR as node). Here action button Add to group is visible.

Did you check if there’s more than 1 group on the devices?

For the Light switch I have

1: Lifeline
2: Basic Set
3: Group 3

The PIR:

1: Lifeline
2: Control Commands BASIC_SET
3: Send Notification Report
4: Send Sensor Binary Report

As explained above, this flashing occurs randomly, and not every time motion is detected by the PIR, or every time light is switched on in the garage.