Main sensor¶
The first step configures the global data sources for the integration.
Grid consumption sensor¶
A Home Assistant sensor that measures power exchange with the grid (in W or kW).
Compatible sensors
Any sensor that exposes grid power works: Shelly EM, Shelly EM3, Neurio, smart meter integrations (e.g. sensor.grid_power).
Update frequency
The sensor should update as fast as possible. The controller runs every 2.5 seconds and makes decisions based on the most recent reading available — the older the reading, the less accurate the response.
Home consumption can vary by several kilowatts in fractions of a second (appliance start-ups, oven, washing machine…). A sensor that reports every 10 seconds or more introduces a lag that causes the controller to react to a situation that no longer exists, leading to overshoot or unnecessary corrections.
Recommended: 1–2 second update interval. Devices like Shelly EM/EM3 support this natively.
Automatic kW detection¶
If the sensor's unit_of_measurement attribute is kW, the integration multiplies the value by 1000 automatically.
Inverted sign¶
Enable "Inverted meter sign" if your sensor uses the opposite convention:
| Convention | Import | Export |
|---|---|---|
| Standard (default) | Positive value | Negative value |
| Inverted | Negative value | Positive value |
Leave it disabled if you are unsure.
Solar forecast sensor (optional)¶
Sensor providing tomorrow's estimated solar production in kWh or Wh.
Configuring it here makes it available to:
- Predictive charging (Time Slot and Dynamic Pricing modes)
- Solar charge delay
You can also leave it blank and configure it later in those specific sections.
