Connect your Axle account to Home Assistant to see upcoming grid events and plan around them from your smart home dashboard.
There are three ways to connect Axle to Home Assistant.
apps.yaml.configuration.yaml by following the steps below.Generate a token in your Axle account. It lets Home Assistant read your grid events securely.
Add this sensor to your Home Assistant configuration.yaml. It checks Axle for upcoming grid events every 10 minutes.
Replace YOUR_TOKEN_HERE with your token. Keep the Bearer prefix and the quotes around the whole value.
sensor:
- platform: rest
name: Axle Event
resource: https://api.axle.energy/vpp/home-assistant/event
scan_interval: 600
headers:
Authorization: "Bearer YOUR_TOKEN_HERE"
json_attributes:
- start_time
- end_time
- import_export
- updated_at
value_template: >-
{% if value_json is defined and value_json.start_time is defined %}
{{ value_json.start_time }}
{% else %}
{{ none }}
{% endif %}
Restart Home Assistant for the change to take effect. To check the sensor is working, open Developer Tools > States and search for sensor.axle_event.
sensor.axle_event has these attributes. Use them in automations, scripts or dashboard cards. When no event is scheduled, the sensor's state is empty.
| Attribute | Type | Description |
|---|---|---|
start_time | ISO 8601 datetime | When the next grid event starts |
end_time | ISO 8601 datetime | When the grid event ends |
import_export | string: "import" | "export" | Whether to import from or export to the grid |
updated_at | ISO 8601 datetime | When the event data was last updated |
No. Axle runs your battery's grid events without it. The integration is for people who want to see events in their own dashboards or build automations around them.
What happens during a grid event, how much notice you get, and every recent and upcoming event.
Read more →Grid events announced on the day, often for the Demand Flexibility Service. Opt in if you'd like to take part.
Read more →Answers on earnings, payments, tariffs, supported batteries and more.
Read more →