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

**URL:** <https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554>\
**Category:** Apps\
**Created:** [January 18, 2024, 1:22pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554 "2024-01-18T13:22:00Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [July 10, 2024, 3:26pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/81 "2024-07-10T15:26:21Z")

</div>

Yesterday I received an email from Better Stack, hat I have already exceeded my 3 GB:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/6/76572b39ae57296763df5eedffcab0b451c1303b.png)

The interesting thing is, that it looks that the data logs are not stored for 3 days, but for 7 days:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/7/97ea363403a34f967c615a20343e1da4d748417b.png)

On the settings page of Homey it’s also written, that Logs will be stored 7 days:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/d/0d432b635f66303e38785447b1c0e1ea51e4876b.png)

But I can’t change it from 7 to 3 days myself.

Anyone else with this problem? Does anyone have a solution?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 10, 2024, 10:21pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/82 "2024-07-10T22:21:51Z")

</div>

Hmm, it’s a peculiar site, Bstack.  
I can’t find the graph you show 😆 like, nowhere.

Only thing I found is 234MB storage for both Homey’s, but no clue if it’s only today, this week, totals…

 ![Screenshot_20240711-001050_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/d/1d113a95fca93f81825cff7be640e1e5551ddd58.jpeg)

BTW, I’ve set it to use level ‘Notice’, verbosity ‘Detail’, Dirk

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [July 11, 2024, 5:31am UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/83 "2024-07-11T05:31:53Z")

</div>

It’s for data storage for the month, so it wouldn’t matter if it displays 7 days or 30, take the win if you’re getting better retention.

I would also recommend notice or info debug is useful only for debugging.

Best to go through your logs and see whats creating all the noise.

You can create dashboards in betterstack so I just opened it up to screenshot for you and saw clearly there is an issue with something reporting in my backyard, since this morning.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/a/1aed03448eb4544b6f8094343cc9c80944a1c9bd.png)

I moved a motion sensor - looks like the dog door is setting it off …

---

<div class="post-metadata">

**Author:** ![SingKT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/singkt/32/173226_2.png) [@SingKT](https://community.homey.app/u/SingKT)\
**Post date:** [July 19, 2024, 9:15pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/84 "2024-07-19T21:15:44Z")

</div>

With Audit version 1.0.16 I noticed that there are quite a number of archived message files. Presently 14 as described. I can only delete all message files or none. So how to keep the active one and delete the rest?  
The build in weather of homey information has level alert?  
On an Audit App restart I only get with the app flow card: Audit … stopping. The Audit log has in addition : … has been initialized. Can we get this info via flow card too, if possible with the version info of the app? For all apps please.

Thx

---

<div class="post-metadata">

**Author:** ![Techniman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/techniman/32/8654_2.png) [@Techniman](https://community.homey.app/u/Techniman)\
**Post date:** [July 22, 2024, 8:04am UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/85 "2024-07-22T08:04:26Z")

</div>

I received the same notice and was looking through the data, there is a lot of information i don’t need… So i was wondering if you are planning a way of disabling “audit” for certain devices?  
For example with a on/off slider and maybe (if possible) a separate verbosity selector?

For example the only information i’m interested to see in the below are the two highlighted, the rest is useless, not having this would save 80%

I’m fairly sure the 80/20 rule applies to most of this data

 ![Screenshot 2024-07-22 095951](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/1/313101954923a1a711d44e3e5ab7cd6c4f9c57dc.png)

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [July 22, 2024, 10:51am UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/86 "2024-07-22T10:51:58Z")

</div>

The 80/20 rules applies but each person has a different 80/20 - personally I dont find any thing to do with power useful at all - as energy companies is Australia provide smart Zigbee meters.

I have a way to give control to users as to what gets logged at what level, but I was just a Proof of concept. I don’t have the time right now to implement it - but ill let you know when I get down to it on my list of things to do.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 22, 2024, 2:19pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/87 "2024-07-22T14:19:23Z")

</div>

I also think you should log at [notice] level, not [info], when you’re not searching for issues.  
And the Bstack _filter_ options are there for a reason 😊  
I’d rather have a bit too much info logged, as missing out on stuff.  
Just my POV though!

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [July 22, 2024, 2:22pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/88 "2024-07-22T14:22:48Z")

</div>

@Techniman it is a good point, betterstack is there for a reason, which is to allow you to only show the information you care about. So filter it out by either the capability or the device which you care about. … Its why I went to the effort to include all that information in the payload.

---

<div class="post-metadata">

**Author:** ![Techniman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/techniman/32/8654_2.png) [@Techniman](https://community.homey.app/u/Techniman)\
**Post date:** [July 22, 2024, 4:25pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/89 "2024-07-22T16:25:48Z")

</div>

> [@Peter\_Kawa](#):
>
> much info logge

I have an issue of a flow not triggering, i was hoping to find through audit the reason why but i couldn’t see the forrest throught the trees…

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [July 22, 2024, 5:35pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/90 "2024-07-22T17:35:20Z")

</div>

Sorry for late reply, @Peter_Kawa and @Jamie.

I paused the Audit App and BS some days ago, and now it seems that all log files are deleted, what I also wanted.

Now I changed the **Log Level** from _ **Info** _ to _ **Notice** _. **Verbosity** is still set at _ **Detail** _.  
So I will have a look on the data amount the next days.

The large amount of data in a short time is probably due to the app settings of course and the fact that I have many devices, which deliver data every one, two three seconds, e.g. a Qubino 3-Phase Smartmeter (Z-Wave). I have a lot of Z-Wave devices in use which deliver often more data at shorter intervals, in comparison to Zigbee or cloud devices.

To create a dashboard in BS will be the next step.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 22, 2024, 9:53pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/91 "2024-07-22T21:53:29Z")

</div>

I see. I didn’t know you were actually troubleshooting right at that moment 🤷‍♂️  
Because you were just mentioning this:

> [@Techniman](#):
>
> was looking through the data

Still the filter option of Bstack is a great start to focus on stuff imho.

---

<div class="post-metadata">

**Author:** ![Articate](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/articate/32/57311_2.png) [@Articate](https://community.homey.app/u/Articate)\
**Post date:** [August 7, 2024, 12:19pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/92 "2024-08-07T12:19:04Z")

</div>

**Feature request:**  
A “When” Flow card:

- When a device becomes unavailable

Also, right now an update on the ‘available’ property gives only a notice log, however an unavailableReason change gives an Alert. Since the flow cards “any device has changed” would rate limit, as I’ve understood it, perhaps another posibility is a “when an audit is level [level]”, to be able to catch Alerts and Emergency audits with the Homey itself?

I’ve tracked the health of my devices through checking if any capabilties of a device has been updated within a reasonable time for that device. I’ve also started checking all devices ‘available’.

I did this after I noticed in BetterStack that if a device became unavailable, there was a log message. There’s even an Alert with unavailableReason.

Outside of a script watching the log files, I started seeing if I could do something with the flow cards, so I figured this suggestion might make sense.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 7, 2024, 12:42pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/93 "2024-08-07T12:42:12Z")

</div>

Exists already, but from an other app:

 ![1000010169](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/8/c8c106282d5f4718209d1122b9ee4b8185af9a38.jpeg)

---

<div class="post-metadata">

**Author:** ![Articate](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/articate/32/57311_2.png) [@Articate](https://community.homey.app/u/Articate)\
**Post date:** [August 7, 2024, 1:02pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/94 "2024-08-07T13:02:29Z")

</div>

Thanks, Peter. It felt like there would be some solution to this already!

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [August 7, 2024, 11:34pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/95 "2024-08-07T23:34:38Z")

</div>

> A “When” Flow card:
> 
> - When a device becomes unavailable

Ill look at adding this next time I update the application.

> Also, right now an update on the ‘available’ property gives only a notice log, however an unavailableReason change gives an Alert.

Your right I don’t think ive put it at the right level, Ill have a look at changing the level, when I next update the app.

> Since the flow cards “any device has changed” would rate limit, as I’ve understood it, perhaps another posibility is a “when an audit is level [level]”, to be able to catch Alerts and Emergency audits with the Homey itself?

I originally had the ability to do this in the app, but the app was rejected by Athom as they were concerned about the amount of logging (the fact it was rate limited didnt seem to change their mind). The work around for this was to allow the app to action flows when a capability type was triggered - dim etc. You can add all the capabilities as triggers to a single flow and youll get the same effect as ‘if any capability changes’.

> I’ve tracked the health of my devices through checking if any capabilties of a device has been updated within a reasonable time for that device. I’ve also started checking all devices ‘available’.

If there is a way you think I can help make this easier for you please let me know.

> I did this after I noticed in BetterStack that if a device became unavailable, there was a log message. There’s even an Alert with unavailableReason.

> Outside of a script watching the log files, I started seeing if I could do something with the flow cards, so I figured this suggestion might make sense.

Just to set expectations, I haven’t done anything on this app since the last update, version 2 is on hold. Still planning on updating the flow action cards for betterStack to be … better … more natural.

---

<div class="post-metadata">

**Author:** ![SingKT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/singkt/32/173226_2.png) [@SingKT](https://community.homey.app/u/SingKT)\
**Post date:** [September 22, 2024, 8:18am UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/96 "2024-09-22T08:18:54Z")

</div>

I run Audit with level „notice“. Last night the homey backup failed and Audit did not record it. Can this please included in the next update.  
Thanks

---

<div class="post-metadata">

**Author:** ![M\_W](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/m_w/32/81907_2.png) [@M\_W](https://community.homey.app/u/M_W)\
**Post date:** [December 8, 2024, 10:51am UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/97 "2024-12-08T10:51:09Z")

</div>

I’m sorry, I’m not a software engineer and find all of this very overwhelming. I’ve just started using Homey (Pro 2023 model) and set up a few flows, but they’re not working as expected, plus I keep getting a random “temperature” notification.

I was advised to use Audit to find out why. However, every potential solution to my problem results in more complication.

I followed the advice in the Audit app description, and set up an account with Betterstack, but can’t see an ID. Do you mean I need to setup an API? If so, which type? Global APIs or team-based tokens?  
Then what?

Is there a beginner’s guide to setting up auditing? Or is there a way to actually contact Homey customer support?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 8, 2024, 7:34pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/98 "2024-12-08T19:34:14Z")

</div>

Hello MW

You don’t _need_ to use Betterstack.  
The daily log files are available as local URL:

#### The Message log of Dec. 8th, 2024:

```auto
http://[my.homey.ip.address]/app/com.audit/userdata/message.20241208.log

```

#### The Details log of Dec. 8th, 2024:

```auto
http://[my.homey.ip.address]/app/com.audit/userdata/detail.20241208.log

```

#### Global URL:

When your Homey IP address is 192.168.0.100 for example, the global URL of the Dec. 8th, 2024 Message log would be:

```auto
https://192-168-0-100.homey.homeylocal.com/app/com.audit/userdata/message.20241208.log

```

and

Log files are available in the app settings: When you hit/click on one, it gets downloaded as zipped text file.

> ![1000038543](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/2/82be4d4000dd1467c71d9920bbcfbcdfc61dc9cd.jpeg)

> ![1000038545](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/1/21fc11166d7ebcf37644bc2ab1449ee3b644d9d7.jpeg)

---

<div class="post-metadata">

**Author:** ![M\_W](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/m_w/32/81907_2.png) [@M\_W](https://community.homey.app/u/M_W)\
**Post date:** [December 14, 2024, 9:12pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/99 "2024-12-14T21:12:33Z")

</div>

OK great, thank you.

---

<div class="post-metadata">

**Author:** ![AltonV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/altonv/32/130229_2.png) [@AltonV](https://community.homey.app/u/AltonV)\
**Post date:** [December 19, 2024, 2:25pm UTC](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554/100 "2024-12-19T14:25:42Z")

</div>

> [@M\_W](#):
>
> I’m sorry, I’m not a software engineer and find all of this very overwhelming. I’ve just started using Homey (Pro 2023 model) and set up a few flows, but they’re not working as expected, plus I keep getting a random “temperature” notification.
> 
> I was advised to use Audit to find out why. However, every potential solution to my problem results in more complication.
> 
> I followed the advice in the Audit app description, and set up an account with Betterstack, but can’t see an ID. Do you mean I need to setup an API? If so, which type? Global APIs or team-based tokens?  
> Then what?
> 
> Is there a beginner’s guide to setting up auditing? Or is there a way to actually contact Homey customer support?

Create a source under telemetry (default choice is fine) and use the source token

[Previous page](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554.md?page=4)

[Next page](https://community.homey.app/t/app-pro-audit-adds-logging-and-tracing-to-your-homey-pro-and-integrates-into-third-party-systems/101554.md?page=6)
