datMaffin / homebridge-tesla-powerwall

Homebridge Plugin for the Tesla Powerwall
ISC License
21 stars 11 forks source link

What does the gridIsNotYetInSyncSwitch option do? #46

Closed parsap closed 1 year ago

parsap commented 1 year ago

I was hoping some documentation for the "gridIsNotYetInSyncSwitch" switch could be added.

datMaffin commented 1 year ago

Not entirely sure. It is basically just what the Powerwall returns.

However, based on the context of there being the states:

it sounds like it is an intermediate state that is reached when Islanded was active and it is now in the process of connecting to the grid. However, connecting to the grid is not trivial, as it needs to first have the same phase as the grid. The reason being that the electrical grid uses alternating current, so it would be bad for the Powerwall and the Grid to not be in sync first.

If anyone else has a better explanation feel free to add it here.