Issues with Sonoff Orb-ZBW1L Switch

I am migrating my devices from Wifi to Zigbee, but have problems with the Sonoff Orb-ZBW1L wall switch. Sometimes it loses connection while LQI is 148 and recovers by itself after a while. The other is when it’s switched on the physical switch it works fine, but when an automation switches it (smart button or dashboard card) it doesn’t stay on or off when switched physically. It reverts back to the last state of the automation. Any help or ideas are much appreciated.