Skip to content

Summate graphs together #429

Closed Answered by thisIsLiving
thisIsLiving asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks, it works great! A note for those next time would be to remember to parseFloat(y) as otherwise the resampling will store as an integer or something as I was getting rather large numbers...

Below is my code for reference for others to learn from. A higher frequency sampling rate will make the graph rather laggy so be aware.

Also is there a way to graph something without it being tied to an entity? In my code below I ended up graphing the "Total" under the "Meter 2 b" entity.

type: custom:plotly-graph
entities:
  - entity: sensor.meter_1_power
    name: Light + Power 1
    mode: lines+markers
    marker:
      size: 3
    filters:
      - resample: 1m
      - map_y: parseFloat(y)
   …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@thisIsLiving
Comment options

Answer selected by thisIsLiving
@dbuezas
Comment options

Comment options

You must be logged in to vote
4 replies
@dbuezas
Comment options

@thisIsLiving
Comment options

@dbuezas
Comment options

@thisIsLiving
Comment options

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