Timeline for device

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.

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

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

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.

1 Like

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