Skip to content

Repository files navigation

Share Energy – Home Assistant Integration

Share Energy logo

hacs_badge GitHub Activity License BuyMeCoffee

A HACS custom integration that scrapes live energy tariff prices from share-energy.com and exposes them as Home Assistant sensor entities.

Sensors created

Entity Description Unit
sensor.share_24_credit_unit_rate Share 24 Credit unit rate p/kWh
sensor.share_24_credit_standing_charge Share 24 Credit standing charge p/day
sensor.share_ev_day_rate Share EV day rate p/kWh
sensor.share_ev_night_rate Share EV night rate p/kWh
sensor.share_ev_standing_charge Share EV standing charge p/day
sensor.share_eco_7_day_rate Share Eco 7 day rate p/kWh
sensor.share_eco_7_night_rate Share Eco 7 night rate p/kWh
sensor.share_eco_7_heat_rate Share Eco 7 heat rate p/kWh
sensor.share_eco_7_standing_charge Share Eco 7 standing charge p/day
sensor.share_24_keypad_unit_rate Share 24 Keypad unit rate p/kWh
sensor.share_24_keypad_standing_charge Share 24 Keypad standing charge p/day
sensor.share_eco_7_keypad_day_rate Share Eco 7 Keypad day rate p/kWh
sensor.share_eco_7_keypad_night_rate Share Eco 7 Keypad night rate p/kWh
sensor.share_eco_7_keypad_standing_charge Share Eco 7 Keypad standing charge p/day

All prices are inc. VAT as shown on the website. Prices refresh every hour.

Why scraping?

Share Energy does not offer a public API or data feed for tariff prices. There is no official Home Assistant integration, no unofficial community integration, and no machine-readable endpoint — pricing is only published on their website. Web scraping is therefore the only viable mechanism to retrieve this data programmatically.

A daily automated test monitors the live page and raises a GitHub issue automatically if the website structure changes and prices can no longer be extracted.

Installation via HACS

  1. In HACS, go to Integrations → Custom repositories
  2. Add https://github.com/Cormac131/HomeAssistant-ShareEnergy with category Integration
  3. Install Share Energy from the HACS store
  4. Restart Home Assistant
  5. Go to Settings → Devices & Services → Add Integration and search for Share Energy

Manual installation

  1. Copy custom_components/share_energy/ into your HA config/custom_components/ directory
  2. Restart Home Assistant
  3. Add the integration via the UI as above

Generated by Claude Code

This repository — including the integration code, tests, CI workflow, and documentation — was entirely generated by Claude Code, Anthropic's AI coding assistant.


About

Home Assistant Integration for Share Energy Northern Ireland Energy Tariffs

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages