I asked the team and they mentioned the refresh
function on a Z-Wave device just sends the refresh
command to the driver, which is why this ends up in an infinite loop. So:
- For Z-Wave, we need to use
default_refresh
: Z-Wave Device Class — SmartThings Edge Device Drivers documentation - And for Zigbee,
refresh()
it’s ok: ZigbeeDevice Class — SmartThings Edge Device Drivers documentation