#Hi all hopefully an easy question but
1 messages · Page 1 of 1 (latest)
I think I figured this out. I need to replicate the total energy consumption used tracking that the default dashboard uses, since it appears that my sensor just reports cumulative use. Once I have that, I can build a template sensor that takes the solar generated and the daily consumption and make something that represents the net usage. The downside is that since I can't easily track the credits and debits separately, it will likely look wonky.
So while I don't really want to do it, I think I'm going to see how to extend the CT clamps through the wall of my house and into the panel that has the utility feed/generator/solar interconnects.
Can’t you split the import and export into two sensors, each of which have independent tariffs?
Do your devices have +/- W or just total net which goes up and down?
I have the solar generation which is daily and cumulative kWh, and I have the total used kWh in the household. So fundamentally to get the in and out, I would need to essentially sample the load over time to see if I was pushing to the grid or pulling. I could then put those into accumulators and use it as the synthesized utility sources... maybe.
I suspect I will be better off figuring out how to put the clamps where I need them.
Clamps are good. Does your solar or house have no W sensors?
I think you should be able to convert real-time kWh into W using whatever is the opposite of integration. Derivative?
differentiation
you have:
house = solar - return_grid + cons_grid
so:
return_grid = max(solar - house + cons_grid, 0)
cons_grid = max(return_grid - solar + house, 0)
You can make two template sensors, one for return_grid and another for cons_grid. These take the kWh values you have as input
Thanks all for your help. I ended up deciding that the problem was really presentation layer within the default energy dashboard, and that by creating some sensors, I'd have what I waned - just not using the default dashboard.
What I think I'll do when I have some time is look if I can clone the default dashboard, but make a few small changes so that it can work the way my sensors require. If there's interest, I can provide those changes to the community. I haven't looked deeply at any of the HA implementation, and so I can't tell you how easy/hard that might be, but it doesn't seem like it would be a huge hurdle.
You can put all the widgets on other dashboards, and there are some realtime-power ones too. I have my own energy dashboard, which needs work, like permanently.
Yeah that's what I have done so far, but it would be nice to have the standard integration just with slightly different math... we will see how ambitious I get.
it is very uncommon to be able to measure your house consumption exacty, your case is the first I have seen in the past few years. Most energy companies only care about the grid <-> house connection, they don't care about what happens behind the meter (as long as it doesn't affect power quality ofcourse!)
but I do agree it would be nice to have the flexibility, the math isn't difficult it's just a bit more frontend work
I think my case is unusual only because I have solar generation data and due to the connections being outside, my home panel is effectively a subpanel now. So it is easier to measure the total consumption vs trying to directly measure the flows to the grid.
To have the solar generation data is not unusual. It would be impossible to calculate the home consumption without it. To have home consumption data is unusual