question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to show sum/stack in "state"

See original GitHub issue
    - entities:
        - entity: sensor.theater_mode_time_daily
      name: Theater
      icon: 'mdi:movie-open'
      refresh_interval: 0
      hours_to_show: 168
      aggregate_func: max
      group_by: date
      show:
        graph: bar
      type: 'custom:mini-graph-card'

I have a card like this, display daily theater mode usage.
Is there a way to display the total time in state?
“total” means sum(aggregate.max(group by date)), or I can write another sensor to count it, but I don’t know how to merge the data in one card.
I am new here, please advise.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Erimus-Koocommented, Jan 3, 2020

Yes, it works, thanks a lot. image

0reactions
Erimus-Koocommented, Jan 4, 2020

OK, it’s all good now. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SUMSTACK - IRIS
This command sums the files in the stack file list. A stack time window (see TIMEWINDOW) must have been defined before this command...
Read more >
Ruby way to do sum? - Stack Overflow
Show activity on this post. map to get the values, then reduce them using addition: def total(items) items.map(&:value).reduce(:+) end.
Read more >
Sum of a Queue - Building Java Programs
public static int sum(Stack<Integer> s) { ... We'd see output like this when we test it: ... and those values now appear in...
Read more >
Sum Stack - Apps on Google Play
The Sum Stack is a unique and fun puzzle. The goal is simple...stack totems from 1 to 5 so that the sum of...
Read more >
A Highly Automated Property-Based Testing Tool for Java
this paper, we present a new property-based testing tool, called ... States of SumStack: States #1, #2, and #3 are valid and possible...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found