Due to solar, my instantaneous usage is negative. But:
>>> api.get_instantaneous_demand().reading
4294960.749
The solution is to use:
ctypes.c_int(self.demand).value
when calculating reading. Probably this is true for some of the other API calls too.
Due to solar, my instantaneous usage is negative. But:
The solution is to use:
when calculating
reading. Probably this is true for some of the other API calls too.