Skip to content

Reliable "Off-Grid" detection for power outage alerts #217

@stephanberger4

Description

@stephanberger4

Hi ,

First of all, thank you for this integration, it works great!

I am opening this issue to ask for advice regarding the "Off-Grid" detection.
My goal is to set up an automation (email/notification) to alert me when there is a real power outage and my house switches to battery backup mode.

The Issue:
Currently, I am using binary_sensor.alphaess_off_grid. However, looking at my logs, this sensor seems to switch to on (off-grid) as soon as Grid Power Total reaches 0W.
Since I have a battery and my self-consumption is often perfectly balanced (Solar = Load), my system stays at 0W grid exchange for long periods (sometimes hours). This triggers false "Off-Grid" alerts continuously, even though the grid is actually present.

Observations:

  1. My sensor.alphaess_grid_voltage_l1 state is "unknown", so I cannot use voltage drop as a trigger.
  2. The official AlphaESS App correctly differentiates between "Grid is present but load is 0" and "System is Off-Grid".

Question:
Is there a specific system status code or another parameter exposed by the API that definitively indicates "OFF GRID"?
It would be incredibly useful to have a dedicated sensor for this to create reliable power outage alerts.

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions