Last time stamped value from array

Hi,

I am using a exec block to fetch temperature and humidity from my verisure system. The output gives several timestamped values in return. I am only interested in the "newest / current" value. Is there some function I can use to filter out the latest temperature and humidity based on the time?

My flow:

The output:

br
Stian

Here's the documentation of JavaScript array. See if you find the way
https://www.w3schools.com/js/js_arrays.asp

1 Like

And remember that an array can also contain arrays!