A Home Assistant integration that syncs your energy data with the Green Energy cloud service for optimization recommendations and savings tracking.
- Automatic Data Sync: Monitors your solar, battery, and grid sensors and uploads readings to the cloud
- Optimization Recommendations: Receive real-time advice on when to charge/discharge batteries
- Savings Tracking: Track your estimated savings from following optimization recommendations
- Tariff Rate Display: See your current electricity tariff rate
- Open HACS in your Home Assistant instance
- Click "Integrations"
- Click the menu (three dots) and select "Custom repositories"
- Add
https://github.com/BlackMesaLTD/ha-green-energyas an Integration - Click "Install"
- Restart Home Assistant
- Download the latest release from the releases page
- Extract the
green_energyfolder to yourcustom_componentsdirectory - Restart Home Assistant
- Create an account at Green Energy
- Configure your Octopus Energy account (optional but recommended for tariff data)
- Go to Settings → Devices & Services → Add Integration
- Search for "Green Energy"
- Generate a pairing code from your Green Energy dashboard
- Enter the pairing code
- Select which energy sensors to monitor:
- Solar Power Sensor: Your solar panel power output sensor
- Battery State Sensor: Your battery state of charge or power sensor
- Grid Power Sensor: Your grid import/export power sensor
- Set your preferred sync interval (default: 60 seconds)
The integration creates the following entities:
| Entity | Description |
|---|---|
sensor.green_energy_sync_status |
Current sync status (synced/syncing/error) |
sensor.green_energy_last_sync |
Timestamp of last successful sync |
sensor.green_energy_readings_today |
Number of readings uploaded today |
sensor.green_energy_recommendation |
Current optimization recommendation |
sensor.green_energy_savings_today |
Estimated savings today (GBP) |
sensor.green_energy_tariff_rate |
Current tariff rate (p/kWh) |
| Entity | Description |
|---|---|
binary_sensor.green_energy_connected |
Cloud connection status |
Use the recommendation sensor in automations:
automation:
- alias: "Battery Charge on Low Rates"
trigger:
- platform: state
entity_id: sensor.green_energy_recommendation
to: "charge_battery"
action:
- service: switch.turn_on
target:
entity_id: switch.battery_charging- Pairing codes expire after 10 minutes
- Generate a new code from the web dashboard
- Check your internet connection
- Verify the Green Energy service is online
- Ensure you have configured monitored sensors
- Wait for the first sync cycle to complete
MIT License - see LICENSE for details.