Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Select the top three values from a statistics sensor. #809

Open
robinostlund opened this issue Nov 1, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@robinostlund
Copy link

Hi,
I have been googling alot and is stuck so i am trying here to see if someone has an idea on how i can do this :)
I would like to be able to only show the top three values from this entity :

 - entity: sensor.ellevio_effect_fee_import_power
    name: Average Hourly Usage
    unit: kW
    type: column
    yaxis_id: kw
    show:
      datalabels: true
      extremas: false
      legend_value: false
    color: cyan
    color_threshold:
      - value: 0
        color: Lime
      - value: 2
        color: Green
      - value: 4
        color: Yellow
      - value: 8
        color: Red
    statistics:
      type: mean
      period: hour
      align: start

So currently it shows every hour, but i would like to only show the top three values from it. Is it someone that have done that in the past? guess it should be possible with the data_generator somehow? What is important is that it must be possible to get the values from statistics as i will change the period to days and graph span to month later on.

Thanks

@robinostlund robinostlund added the bug Something isn't working label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant