Feature Request: Time-based Dual Tariff Electricity Pricing for Accurate Energy Cost Calculation
Posted: Saturday 27 December 2025 11:06
Hello,
First of all, thank you for the continued development of Domoticz. It has become a core part of my home automation system.
I would like to request an enhancement to the electricity cost configuration, specifically around dual (or multi-rate) tariffs.
While Domoticz supports dual tariff pricing, the time-of-day switching is not configurable, which makes it impossible to accurately model many real-world electricity contracts.
The Problem
Many electricity providers offer tariffs where the price depends on the time of day, not just a tariff flag.
Example:
• Off-peak rate: £0.065 / kWh between 00:00–05:00
• Peak rate: £0.22 / kWh outside those hours
Currently in Domoticz:
• Two prices can be defined
• The hours during which each price applies cannot be defined
• This prevents Domoticz from calculating accurate energy costs
This is especially problematic for EV charging, heat pumps, and battery storage that intentionally run during off-peak hours.
Proposed Feature / Solution
Add support for time-based tariff definitions.
Suggested approach:
• Allow users to define one or more time ranges
• Assign a price per kWh to each time range
Example configuration:
• 00:00–05:00 → £0.065 / kWh
• 05:00–00:00 → £0.22 / kWh
Optional future extensions:
• Multiple time bands per day
• Different pricing for weekdays vs weekends
• Seasonal tariff schedules
Benefits
• Accurate energy cost tracking
• Better support for time-of-use electricity tariffs
• Improved usefulness of statistics and dashboards
• Reduced need for external scripts or manual correction
Use Case
In my setup, a significant portion of electricity usage is deliberately shifted to off-peak hours. While Domoticz records energy consumption correctly, the financial cost is incorrect due to the lack of time-based pricing, limiting the usefulness of long-term reporting.
Closing
I believe this feature would significantly improve Domoticz’s energy monitoring capabilities and benefit many users on dual-rate or time-of-use tariffs.
Thank you for your consideration. I would be happy to test or provide feedback if needed.
Best regards,
[Paul Jefferson]
First of all, thank you for the continued development of Domoticz. It has become a core part of my home automation system.
I would like to request an enhancement to the electricity cost configuration, specifically around dual (or multi-rate) tariffs.
While Domoticz supports dual tariff pricing, the time-of-day switching is not configurable, which makes it impossible to accurately model many real-world electricity contracts.
The Problem
Many electricity providers offer tariffs where the price depends on the time of day, not just a tariff flag.
Example:
• Off-peak rate: £0.065 / kWh between 00:00–05:00
• Peak rate: £0.22 / kWh outside those hours
Currently in Domoticz:
• Two prices can be defined
• The hours during which each price applies cannot be defined
• This prevents Domoticz from calculating accurate energy costs
This is especially problematic for EV charging, heat pumps, and battery storage that intentionally run during off-peak hours.
Proposed Feature / Solution
Add support for time-based tariff definitions.
Suggested approach:
• Allow users to define one or more time ranges
• Assign a price per kWh to each time range
Example configuration:
• 00:00–05:00 → £0.065 / kWh
• 05:00–00:00 → £0.22 / kWh
Optional future extensions:
• Multiple time bands per day
• Different pricing for weekdays vs weekends
• Seasonal tariff schedules
Benefits
• Accurate energy cost tracking
• Better support for time-of-use electricity tariffs
• Improved usefulness of statistics and dashboards
• Reduced need for external scripts or manual correction
Use Case
In my setup, a significant portion of electricity usage is deliberately shifted to off-peak hours. While Domoticz records energy consumption correctly, the financial cost is incorrect due to the lack of time-based pricing, limiting the usefulness of long-term reporting.
Closing
I believe this feature would significantly improve Domoticz’s energy monitoring capabilities and benefit many users on dual-rate or time-of-use tariffs.
Thank you for your consideration. I would be happy to test or provide feedback if needed.
Best regards,
[Paul Jefferson]