Z-Wave Automation stopped working

I have z-wave wall switches that I use for automation. The automation was triggered once the state was either turned “on” or “off” the switch. However, now this automation doesn’t work if the switch is operated physically from the switch. However, everything works once I turn on/off the virtual switch from the home-assistant app. Has something changed in newer versions of home-assistant? I remember this used to work when I had setup the automation. It looks like the “state” is not being updated when physically switched.

Any ideas on how to fix?
Thanks!

That’s not easy to say because probably these switches do not support instant status updates…

There are workarounds but these make you zwave network unstable (faster pooling).

Better idea to refresh these switches with newer models that do support…

It happens the same to me. But if home assistant is able to get the status from on to off, why is automation not activated?