I have a sensor for each upcoming day, with the kWh forecast of solar production.
I’d like to show all days in a bar graph. Therefore all forecast sensors need to be combined into one, so apex charts (or others) can plot it.
Is there a way to combine multiple sensors into one? I would be fine with attributes, too, as there is a way with data_generator to extract them in apex charts.
Thanks for the link, but the topic wants to sum multiple sensors into one to get a total. Today that’s easy to do with sum helpers.
My question is on how to append multiple sensors into one in a timely manner. A form of concatenate, as each of the example sensors is for a different day.
Maybe for better understandig of my initial post, I graphed my usecase with some ascii art:
sensor_forecast_day1: 11kWh -----------+
|
sensor_forecast_day2: 12kWh -----------+---> sensor_combined_forecast
| - shows value of day 1 at timepoint now()+1day: 11kWh
sensor_forecast_day3: 13kWh -----------+ - shows value of day 2 at timepoint now()+2day: 12kWh
- shows value of day 3 at timepoint now()+2day: 13kWh
graphed as timeline:
11 12 13 kWh
+-------+-------+-------+----...-->
now day1 day2 day3
For my data, here is the complete solution I got so far: