[Release] App and Device ID Logger

This app generates and maintains a list of App and Device IDs to help track down apps for those Warning app ## does not exist and other messages where we are trying to remember what app or device we deleted, when and why so that we can correct it.

App is available through HPM or via import from https://raw.githubusercontent.com/thebearmay/hubitat/refs/heads/main/apps/appDevIdLogger.groovy.

After creating the app, tell it how often you want it to take a snapshot, and hit Start/Restart - it will immediately take and store a snapshot to the file manager. When the next snapshot is due the app will compare the new snapshot with the old, update the Last Seen time and date for each app/device currently on the hub, and add any app/device that was added since the last update.

If you need to find an app/device simply select APP or DEV, provide the ID number and hit Search.

@stephen_nutt @gomce62.web

16 Likes

This is fantastic - thank you, good sir!

4 Likes

Wow. Do you ever stop!!!!
What a brilliant app.
A New Years gift to us all.
Thank you.

5 Likes

:slight_smile: Thanks!

Debug switch is off but I get pages of this:
app:18892025-01-03 10:23:53.055
app:18892025-01-03 10:23:53.055debug[id:990, key:DEV-990, lastSeen:Fri Jan 03 10:23:14 PST 2025, value:DSC Living Room PIR]
app:18892025-01-03 10:23:53.054debug[id:927, key:DEV-927, lastSeen:Fri Jan 03 10:23:14 PST 2025, value:Garage Motion East]

Oops missed a log line. Fixed now, if you want to do a repair or re-import.

4 Likes

Thanks so much for creating this app so quickly. It is really going to help keep my hubs running efficiently.

2 Likes

Clever idea!

1 Like

This is great. Unfortunately I fear the people who will need this, wont have this app installed.
Also wont help if the hub is reset without un-linking old integrations, unless you save a backup of the file.

This should just be built into the platform, seems pretty simple, every time a new app is created log the ID and name to a table in the DB. If app is renamed, update the name in this DB. When app is deleted, do not remove from this DB so there is a permanent record of the app that had that ID. Could even track the deletion date. Even if someone created and deleted thousands of app it does not seem like this would take up much space in the DB.

Still wont solve the problem if the hub is reset though (unless you save a backup of the file).

5 Likes

You're right it doesn't really solve the problem so much as provides another place to look for the information to solve it.

7 Likes