-
Platform information:
- Hardware: Raspberry Pi 4
- OS: Linux/5.10.63-v8+ (aarch64)
- Java Runtime Environment: 11.0.13 (Zulu11.52+13-CA)
- openHAB version: 3.2.0
- persistence: RRD4j
-
Issue of the topic:
I’m trying to make graphs that can show the power usage and generation per day/week/month (depending on the device and the available data). This is data coming from a Smart meter (DSMR P1) and data coming from a SolarEdge installation in the house.
In this case the SolarEdge provides the data of day to day generation and monthly generation itself, no fancy math or anything required. The DSMR needs a bit of fiddeling where the previous day is substracted from the current day value.
The SolarEdge graph always shows but is somehow fixed to 1970. The DSMR data only shows when editting the page and going into the run mode (but result in the same strange behaviour).
When making any aggregated series chart the date of the chart immediately goes to 01-01-1970 and shows the value only on that day.
Tried to fix another chart too see if i’m doing something wrong and it seems to behave the same. The strange thing is when I have the chart drawn as regular time series the graph shows just fine.
I currently have a graph for both, but they behave the same way and I currently don’t see what I’m doing wrong:
-SolarEdge (Always showing the graph at 1970):
config:
label: Zonnepanelen dagelijks opgewekt
period: M
chartType: month
slots:
grid:
- component: oh-chart-grid
config:
show: true
containLabel: true
xAxis:
- component: oh-time-axis
config:
gridIndex: 0
nameLocation: end
yAxis:
- component: oh-value-axis
config:
gridIndex: 0
name: Opgewekt
series:
- component: oh-aggregate-series
config:
name: Dag opbrengst
gridIndex: 0
xAxisIndex: 0
yAxisIndex: 0
type: bar
item: SolarEdgeOmvormer_Aggregate_Day_Production
dimension1: date
aggregationFunction: max
service: rrd4j
This should show the production per day, but comes up like this:
Any ideas on what is going wrong here?