Warning
If you are upgrading from v0.0.x, see Switchover to the euro below.
Custom integration for Home Assistant that provides the price of electricity on the regulated market for domestic customers, and the applicable tariff (day or night).
All three major regional providers, Electrohold, EVN, and ENERGO-PRO are supported.
The prices are defined statically as they change only about once a year. The official source for the current prices is Resolution C-25/01.07.2025 of the Bulgarian Energy and Water Regulatory Commission, where the price per MWh for each component was converted to euro and rounded according to the law for introducing the euro in Bulgaria. The converted prices were cross-checked with the websites of the three providers.
All prices are the final amount that you'd pay, including VAT.
Note
Summary in Bulgarian: Интеграция за Home Assistant, която предоставя сензори за текущата цена на електроенергията и текущата тарифа (дневна или нощна) според часа и конфигурирания доставчик на електронергия. Предоставените цени са определени от КЕВР за трите основни доставчика на регулирания пазар: Електрохолд, EVN и ЕНЕРГО-ПРО.
The integration provides two sensors that adjust according to the time of day and the configuration:
This sensor provides the current price according to the configured provider and current tariff (day or night). It can be used to track expenses together with an energy meter in Home Assistant. The ID of the sensor will be sensor.xxx_price where xxx is derived from the name you give to the integration instance when configuring it.
This sensor provides the current tariff. It can be used to run power-hungry devices when the night tariff starts. The ID of the sensor will be sensor.xxx_tariff where xxx is derived from the name you give to the integration instance when configuring it.
You can install the integration as a custom HACS repository using the GitHub URL of this project: https://github.com/avataar/bg_electricity_regulated_pricing.
You can also install the integration by copying the custom_components/bg_electricity_regulated_pricing folder to your Home Assistant's custom_components folder just like with any other manually installed custom integration.
In the future, the integration may be added to HACS's default repositories.
From the sidebar in Home Assistant, select Settings > Devices & Services. Search for the integration by name (Bulgarian Electricity Regulated Pricing / Цени на електроенергията на регулирания пазар в България). To configure it for most users, it will suffice to enter a name, choose the provider, and leave the rest of the options with their default values. The name will be used to derive the sensor IDs.
If you have multiple meters to track, you can configure as many instances of the integration as needed.
If the price you pay for your electricity is different from the three regional providers (but you still have a dual/single tariff like anyone else) you can configure custom prices. Choose Custom / Потребителска цена for the provider and enter the day/night price in the corresponding options below.
Meter clocks are notoriously never correct. You can adjust the time used for switching to the day/night tariff using the Clock offset / Избързване/изоставане на часовника option. This is the offset of the meter clock from real time. For example, if your meter clock is 30 minutes ahead set it to 30; if it's 15 minutes behind set it to -15.
Most users get billed at the dual tariff that switches between day and night prices. If for some reason you have a single tariff you can choose that in the Tariff Type / Тарифност option. When a single tariff is configured, the day price will be used at all times and the tariff sensor will always report the tariff as day.
The night tariff starts at 23:00 local time and ends at 07:00 local time in the months April to October inclusive. In the other months, it starts at 22:00 local time and ends at 06:00 local time. At least according to the official rules.
Historically, providers used clocks that weren't adjusted for summer time, so the night tariff started at 22:00 UTC+2 and ended at 06:00 UTC+2. Effectively, the night tariff started at 22:00/ended at 06:00 local time when winter time was in use, and at 23:00/07:00 local time when clocks were shifted an hour ahead in the summer.
If you know your clock follows the historical rules, you can enable the Use Legacy Night Tariff Algorithm / Използване на стария алгоритъм за нощна тарифа option. If the option isn't enabled, it will use the official rules.
As of version 1.0.0, the integration uses the euro as the currency for all prices. As such, any historic statistics values will be incompatible because of the unit change from BGN/kWh to EUR/kWh. Home Assistant will show a warning about this when you upgrade to the new version.





