Pardon the double-post. I'm honestly not sure if this is an issue with the API or the integration. Want to make sure it gets visibility from the HA integrators:
I'm having a terrible time getting a "Solar Surplus" output showing up in HA.
HA seems to want a "return to grid" sensor rather than just looking at negative grid_total values (which would make more sense to me, but whatever). So i created an output called "Solar_Surplus" that looks like this:
Watts = 0 max (-1 x (Main_1 + Main_2))
(alternately, also tried this:)
Watts = 0 max (0 - main_1 - main_2)
The wattage sensor works just fine, but I get 0 kwh for the _kw version. It also appears to never refresh until an HA restart.
FYI, my Grid_Consumed output works just fine, with
Watts = 0 max (Main_1 + Main_2)
Any suggestions? On the Iotawatt itself using the Graph+ UI, i can see these guys no problem in WH over a year, month etc. Tried recreating, adding additional outputs with different names and the same query, and none of them work.
Pardon the double-post. I'm honestly not sure if this is an issue with the API or the integration. Want to make sure it gets visibility from the HA integrators:
I'm having a terrible time getting a "Solar Surplus" output showing up in HA.
HA seems to want a "return to grid" sensor rather than just looking at negative grid_total values (which would make more sense to me, but whatever). So i created an output called "Solar_Surplus" that looks like this:
Watts = 0 max (-1 x (Main_1 + Main_2))
(alternately, also tried this:)
Watts = 0 max (0 - main_1 - main_2)
The wattage sensor works just fine, but I get 0 kwh for the _kw version. It also appears to never refresh until an HA restart.
FYI, my Grid_Consumed output works just fine, with
Watts = 0 max (Main_1 + Main_2)
Any suggestions? On the Iotawatt itself using the Graph+ UI, i can see these guys no problem in WH over a year, month etc. Tried recreating, adding additional outputs with different names and the same query, and none of them work.