This custom Home Assistant sensor component scrapes electricity prices from the RAE (Regulatory Authority for Energy) website (https://invoices.rae.gr/oikiako/) and provides the price as a sensor in Home Assistant.
- Fetches the latest electricity price per kWh in EUR from RAE.
- Configurable provider and plan filters.
- Configurable scraping URL.
- Clone or Download: Clone this repository into your Home Assistant's
custom_components
directory or download the zip file and extract therae_price_scraper
folder into thecustom_components
directory. - Restart Home Assistant
- Configuration: Add the sensor configuration to your
configuration.yaml
file with the necessary parameters. - Restart Home Assistant: Restart your Home Assistant instance to pick up the new sensor.
Add the following to your configuration.yaml
file:
sensor:
- platform: rae_price_scraper
provider_filter: "ΔΕΗ" # Replace with your provider
plan_filter: "My Home Online" # Replace with your plan
url: "https://invoices.rae.gr/oikiako/" # RAE URL (default)
discounted_price: "Y" # Returns the "Έκπτωση με Προϋποθέσεις" price if set to Y
scan_interval: 86400
Once configured and Home Assistant has been restarted, the sensor will appear in your Home Assistant instance as sensor.rae_price_per_kwh. It will update once every day by default, but you can modify the scan_interval to change the update frequency.