Newbie need help with sum of attributes

Hi, I am new to HA. Nice but I have a problem with the logic. How can I sum 3 of totals and find the cheapest 3 hours block to calculate the best time to start my washingmashine at night.

  • total: 0.2638
    startsAt: ‘2024-03-22T00:00:00.000+01:00’
    level: CHEAP
  • total: 0.2589
    startsAt: ‘2024-03-22T01:00:00.000+01:00’
    level: CHEAP
  • total: 0.2558
    startsAt: ‘2024-03-22T02:00:00.000+01:00’
    level: CHEAP
  • total: 0.2584
    startsAt: ‘2024-03-22T03:00:00.000+01:00’
    level: CHEAP
  • total: 0.2596
    startsAt: ‘2024-03-22T04:00:00.000+01:00’
    level: CHEAP
  • total: 0.268
    startsAt: ‘2024-03-22T05:00:00.000+01:00’
    level: NORMAL
  • total: 0.2849
    startsAt: ‘2024-03-22T06:00:00.000+01:00’
    level: NORMAL
  • total: 0.2769
    startsAt: ‘2024-03-22T07:00:00.000+01:00’
    level: NORMAL
  • total: 0.2777
    startsAt: ‘2024-03-22T08:00:00.000+01:00’
    level: NORMAL
  • total: 0.2637
    startsAt: ‘2024-03-22T09:00:00.000+01:00’
    level: CHEAP
  • total: 0.2584
    startsAt: ‘2024-03-22T10:00:00.000+01:00’
    level: CHEAP

Thanks for your help

2 Likes

thank you!

1 Like