# Timeline for device

**URL:** https://community.homey.app/t/timeline-for-device/55810
**Category:** Developers
**Created:** [December 1, 2021, 11:29am UTC](https://community.homey.app/t/timeline-for-device/55810 "2021-12-01T11:29:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![IamNague](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/iamnague/32/39117_2.png) [@IamNague](https://community.homey.app/u/IamNague)
#### Post date: [December 1, 2021, 11:29am UTC](https://community.homey.app/t/timeline-for-device/55810/1 "2021-12-01T11:29:24Z")

</div>

I built an app with driver for new device with only one custom capability (type enum). The device has no timeline menu, how to add it ? How to write in the device timeline when a flow change the value of the capability ?  
Thanks for your help.

---

<div class="post-metadata">

### Author: ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)
#### Post date: [December 1, 2021, 1:15pm UTC](https://community.homey.app/t/timeline-for-device/55810/2 "2021-12-01T13:15:09Z")

</div>

The timeline only supports boolean capabilities.  
It will appear automatically when a boolean capability changes.

---

<div class="post-metadata">

### Author: ![IamNague](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/iamnague/32/39117_2.png) [@IamNague](https://community.homey.app/u/IamNague)
#### Post date: [December 1, 2021, 2:13pm UTC](https://community.homey.app/t/timeline-for-device/55810/3 "2021-12-01T14:13:06Z")

</div>

Thanks @Adrian_Rockall for your quick answer. I hope it will evolve one day, I’d like to trace flow activities on my devices.

---

<div class="post-metadata">

### Author: ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)
#### Post date: [December 1, 2021, 3:56pm UTC](https://community.homey.app/t/timeline-for-device/55810/4 "2021-12-01T15:56:01Z")

</div>

I have asked but the response was not positive due to the way the data is stored.

One work around is to create hidden Boolean capabilities, one for each state, and set them when the enum state changes.

---

<div class="post-metadata">

### Author: ![Bernhard\_Oberfrank](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bernhard_oberfrank/32/79096_2.png) [@Bernhard\_Oberfrank](https://community.homey.app/u/Bernhard_Oberfrank)
#### Post date: [August 2, 2024, 1:20pm UTC](https://community.homey.app/t/timeline-for-device/55810/5 "2024-08-02T13:20:49Z")

</div>

Hello,  
dont know if my question has the right place here.  
Is it possible to read the timeline of a device within homey script?  
I want to check in a flow, if a device was activated during the last hour.  
Thx for an answer

similar to this but in device timeline:

blnBack = false  
await Homey.notifications.getNotifications()  
.then(notifications =\> {  
Object.keys(notifications).forEach(key =\> {  
const currentDate = new Date();  
const dateCreated = new Date(notifications[key].dateCreated);  
const timeDifference = (currentDate - dateCreated) / 60000;//minutes  
if(notifications[key].excerpt == “…”){  
log(timeDifference)  
if(timeDifference \< 60){blnBack = true}  
}  
})  
})  
return blnBack
