Jayce 2 Posted August 26, 2019 Report Share Posted August 26, 2019 On one of my sites, I would really love to have the ability to automatically clean my offline device list. A clean device list after X days offline would be very very useful. 2 Quote Link to post Share on other sites
Giancarlo 53 Posted August 26, 2019 Report Share Posted August 26, 2019 4 hours ago, Jayce said: On one of my sites, I would really love to have the ability to automatically clean my offline device list. A clean device list after X days offline would be very very useful. This request make sense, and it is already in our backlog of activities/feature requests to be developed. Unfortunately, we cannot guarantee at the moment when this will be available. Anyway, at the moment, a good workaround which might make sense is the following: - List all the Offline devices - Sort by last status change - Mark all (for multiple selection) and remove the ones that just changed status most recently Once selected the interesting ones use the "Delete selected devices" to remove them all: Another possibility is leveraging the Domotz Public API to delete the old devices via scripting: - Retrieve all the devices under a specific Agent: https://portal.domotz.com/developers/#getdevice - Filter the ones Offline for more than X days: look for fields "status" and "last_status_change" - Delete those devices: https://portal.domotz.com/developers/#deletedevice I hope this is helpful in the short term. Quote Link to post Share on other sites
Jayce 2 Posted August 27, 2019 Author Report Share Posted August 27, 2019 Thanks for the tips. I didn't saw the sort option by last status change, it will be very helpful. For the API, I will look at it. Maybe I can try something with that. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.