historyMin
The lowest logged value of a tag over a time range.
Read scripts only. Part of the virtual tag expression reference.
Returns the lowest value a tag was logged at over a time range, from its history.
historyMin(tag: string, fromTime: number, toTime?: number): number | null;
Parameters
tag— the path to the tag.fromTime— the start of the range, as a Unix timestamp in seconds.toTime— the end of the range, as a Unix timestamp in seconds. Defaults to now.
Return value
The minimum value in the range, or null if the range has no logged data.
Example
// Lowest outdoor temperature over the last 24 hours
historyMin("Outdoor/Temperature", getTimeBefore("1d", getCurrentTime()));