Sounds similar but you are checking the status. I believe the status in hubitat changes to inactive if a device hasn't had an event in 24 hours. This pison will use the actual lastCheckIn.
Here it is. You can modify it as needed, may probably want to change the notification section and maybe take out the poll/refresh section. I added that step because some devices (like my dining room zwave switch) that don't get used very frequently will get changed to Inactive even though they are still online, just polling them fixes it.