Ian Harris

Results 12 comments of Ian Harris

With the Hybrid inverters, the solar is connected to the DC side, and I can have up to 3.6kW through the inverter, and 2.6kW into the battery. For some reason...

> I like the idea of dynamically controlling the charge rate to reduce clipping, but it would also have to be modelled in Predbat to ensure the plan aligns to...

I've been looking at this again and making tweaks to the code. Right now it's just monitoring and not actually changing anything, but if anyone else wants to have a...

It looks like the state of the pvgen_entity when being pulled from the history is a floating point number rather than something the code can turn into an integer. After...

Yep, you'll definitely want unit of measurement to be W rather than kW. (When I pull the history, I get mine back in Watts). The script is working in tiny...

Spot the massive error ;-). 0.005kW is 5W ;-). And indeed 'state': '0.559' would be 559W. This might work if your uom is kW... pvgen_values = [int(float(state['state']) * 1000) for...

Definite sloppy programming, I hadn't considered uom might not be watts. I'll make the code in this area a bit more robust.

I think this will be the fix in the code as appropriate: ``` pvgen_values = [] for states in pvgen_data: for state in states: value = state['state'] if state['attributes']['unit_of_measurement'] ==...

For me now, on my South facing array, I'm now beyond the point of the day when I'm generating more than my inverter can handle. And whilst it's been cloudy...

Wouldn't a solution be to set the discharge rate to 0 to prevent unwanted battery discharge?