montekarlos / homebridge-fronius-inverter-output-pin-switch

Apache License 2.0
0 stars 0 forks source link

Profile restore to "By power Surplus" if selected. #1

Open chana1900 opened 10 months ago

chana1900 commented 10 months ago

I tested this on a Fronius Symo 10.0-3-M with a Fronius Smart Meter 63A and is working. It updates the Load Management profile to turn ON the relay when operated via Homebridge.

The issue I'm facing is that when it is restoring the original Load Management profile, it restore to the controlling option "by power production" rather than the "by power surplus"

Please see the profile I am using. It takes the "Feed in" into account when turning on the relay.

It is great if this can be implemented.

Fronius-pm-profile
chana1900 commented 10 months ago

I fixed it by changing pinConfig.mode = 'ppv'; to pinConfig.mode = 'pgrid'; in setPinPpvConfig in 'fronius.ts'

montekarlos commented 9 months ago

Yes this was a bit of a hack just for my usage. A better solution is to read the config in checkPinStateAtInverter (fronius-ouptut-pin-accessory.ts) and persistant so it can be restored - just like the on / off thresholds