[APP][Pro] Audit - Adds logging and tracing to your Homey Pro and integrates into third party systems

Hi @Jamie
Wanted to try out your app.
But unfortunately it crashes after install.

the app crash shows this:

Error: ENOENT: no such file or directory, uv_resident_set_memory
    at process.memoryUsage (node:internal/process/per_thread:168:5)
    at RejectionHandler.getProcessInfo (/app/node_modules/winston/lib/winston/rejection-handler.js:112:28)
    at RejectionHandler.getAllInfo (/app/node_modules/winston/lib/winston/rejection-handler.js:93:21)
    at RejectionHandler._unhandledRejection (/app/node_modules/winston/lib/winston/rejection-handler.js:168:23)
    at process.emit (node:events:529:35)
    at emit (node:internal/process/promises:149:20)
    at processPromiseRejections (node:internal/process/promises:283:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:32)

I had the same issue when i made this homey-betterstack - npm but couldn’t find a fix for that aswell.

I’m using a HP23.
If you need a diagnostic report let me know :slight_smile:

I installed the Audit app today. I set up the Betterstack integration as recommended here. A lot of data is being collected locally, but no data is reaching Betterstack. Does anyone else have this problem?

@Jamie Think you can add to the crit: app messages deleted/ installed the version of the app?

@Jamie could it be that your audit app doesn‘t catch all actions? The audit log shows for example an off action of a lamp but not the corresponding on action that one can see in the device log. Noticed that it seemed to have happend several times. Have to do some more research to verify my findings.

The Audit app really seems to have problems with recording OFF actions. Not much activity on homey as far as I can tell and yet quite a number of OFFs from different apps are not recorded. Can you please have a look into this.

Can you give me details?

What log level are you using?

I also need to know if this is a specific device, or all devices?

Can you see the “off action” work with any devices at all?

Can you be specific :

I did XYZ

I expected ABC

Instead RST happened.


I did notice today it was tracking changes to my garage door …. odd.

Am using level „notice“. Was reffering to plugs of different brands (aqara, fibaro, devolo, qubino) switching lights. They are switched on and off by flows. Checking the audit logs I saw some „off“s without „on“s. Checked the devices log and saw that they were switched on according the settings from the flows. Noticed it at 2 occasions the past 2 weeks (21. and 22.12.). Before I did not check. App and homey 2023 are up to date. Homey itself did not record any problem. Audit didn’t seem to be too busy at that times. Requested only „on“ and „off“ actions. Not all „on“s went unrecorded. Haven’t found a wrongly recorded action at the „on“ time. Difficult to find a reason.

I did a deep dive and testing I am unable to see any issue with off being logged, but I did add a catch all to trigger when the message fails, so perhaps that will help? Let me know how you go.

I also fixed an issue where critical logs, ie home alarm and garagedoor_locked may not log correctly.

Finally did an general update to the latest homey APIs and update the file rotate method.

Test application can be found here : Audit | Homey


1 Like

Thanks. I installed the test version. Let‘s see if I can give more precice info next time (in case it happens again).

Same issue over here

I’ve just pushed the test version to live, sorry it took a while, this app has a pretty small user base so it took some time to verify it fixed the issue.

2 Likes