Skip to content
Discussion options

You must be logged in to vote

You can add the same sensor on a second entity, set the mode: markers+text and remove all but the maximum datapoints:

mode: markers+text
filters:
   - fn: |
        ({ys})=>{
            let max = Number.NEGATIVE_INFINITY;
            let min = Number.POSITIVE_INFINITY;
            for ( const y of ys) {
                max = Math.max(y, max);
                min = Math.min(y, min);
            }
            return { ys: ys.map(y => y == max || y == min ? y : null)};
        }

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Spectre5
Comment options

@Spectre5
Comment options

@dbuezas
Comment options

Answer selected by Spectre5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants