Stog / homebridge-fronius-inverter

A homebridge plugin to pull Fronius solar inverter data into HomeKit as a light sensor accessory.
5 stars 1 forks source link

Fronius p_grid does not differ between positive an negative values as for consumption / creation #9

Open Scoo27 opened 1 year ago

Scoo27 commented 1 year ago

Hi @Stog Today the sun is shining nice an I have only poor energy-consumption so the Fronius puts most energy into the power net.

Problem is, that the plug-in "p_grid" shows data, as if I consume and not harvest the energy. I think there should be a negative sign in front of the value to see an to configure automation. How can I solve this?

thanks for reply

8D018CCF-25EC-4D57-88FD-B7C661D473E6

matthiasbergneels commented 1 year ago

Hi,

not sure if this is maintained or tracked.

But I would like to get a comment on that too. I think a negativ value is not possible due to the definition of "Lux" Values in Home (it is not possible to get it darker than a zero value ;-) )

But just using Math.abs is still an issue on that.

I have an automation, which is turning on A/C as soon as the battery is full and more than 1500 kW ("Lux") is going into the grid. This was working totally fine last year. This year, I got in addition an electric car and the loading power is way higher. Now, the automation also starts the A/C in case the car is loading --> -4000 kW is converted to 4000 kW.

My proposal would be different values - grid input / grid output and it should be differentiated if the value is higher or lower to zero.

Example: Value: 1300 kW Grid Output: 1300 Lux Grid Input: 0 Lux

Value: -2400 kW Grid Output: 0 Lux Grid Input: 2400 Lux

Thanks a lot for your work. (If I get the time, I will propose a PR for this.)

Kind regards, Matthias

Scoo27 commented 1 year ago

seems not