So, taking a look at usable sensors I would grab the “Current Power Production” sensor. However, this is in W and not kWh, so I would need to convert this. To do this, I would create a helper > Riemann sensor.
Source will be the sensor for current production, the intergration method would be “Left riemann sum” (I’ve read that this one is better for tese things?) The metric will be in k (kilo) for kWh and it wil measure it in seconds (so it’s in realtime?!).
However, when doing the above, the sensor it NOT showing up as selectable within the Energy dashboard? What am I doing wrong? I know the Energy dashboards only wants kWh sensors, but I thought that the Riemann sensor converts the W to kWh’s? Or do I need to do an extra step?
When looking at the status it’s showing a big number… when looking at the Energy dashboard the value of the P1Monitor are all x.xx kWh and not xxx.xx kWh.
So, just for the people reading through this topic with the same issue. I’ve now made a Riemann sensor with the config above from @whoismoses then I create a NEW sensor in YAML and took the Riemann sensor I’ve created as a source to take the value from. This YAML sensor is getting the “Energy” class which enables me to add it in the Energy dashboard.
Riemann sensor:
sensor:
- platform: integration
source: sensor.envoy_122225066668_current_power_production
name: Opbrengst Solar
method: trapezoidal
unit_prefix: k
unit_time: h
round: 2
YAML sensor (just a duplicate, but this one gets the energy class so it can be selected within the Energy dashboard:
I faced this issue before. Because the sensor was setup prior with different units for power and time it did not get updated when you fixed the sensor. There are ways to delete the old setting so you can use the same name.
Yeah, I have many sensors withouth an unique ID attached to it, so when I open the dropdown in the Energy dashboard I see alot of my old sensors still in there but they are non-removable from HA as they don’t exist in the config anymore. I’ve seen that by purging the database can remove them, but I don’t want to go down that way, it could also F up my HA instance haha.