Skip to content

basbruss/cheapest-energy-hours

 
 

Repository files navigation

hacs_badge Version Buy me a coffe Paypal

A jinja macro to easily find the cheapest block of hours to know when to turn on your dryer

Why this macro

If your energy provider uses dynamic pricing, you might want to know when to turn on devices which consume a lot of power. It is relatively easy to find the lowest price on the day, but if it takes 3 hours for your dryer to complete, you might want to find the cheapest block of hours. It could be that the cheapest hour is not even in that block. This macro comes to the rescue!

Funny note 😄 I don't have a dynamic price contract myself. It started as a challenge to myself to get it working, and gradually expanded to what it is now. I do have the Nordpool and ENTSOE integrations installed to test, but I don't have real life scenario's implemented, so I'm also depending on your feedback to improve the macro even further. So please keep sending in issues/questions/other feedback.

In case you are able to reduce your energy bill by using this macro, please consider to buy me a cup of coffee ☕

How to install

You need to have Home Assistant 2023.11 or higher installed to use this custom template.

This custom template is compatible with HACS, which means that you can easily download and manage updates for it. Custom templates are currently only available in HACS when you enable experimental features. Make sure to enable it in the HACS settings, which you can access from Settings > Devices & Services > HACS. When experimental features are enabled you click the button below to add it to your HACS installation, Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

For a manual install you can copy the contents of cheapest_energy_hours.jinja to a jinja file in your custom_templates folder. Run the homeassistant.reload_custom_templates service call to load the file.

How to use

See the separate documentation on how to use the macro

Thanks to

  • @basbruss for providing the output mode and a lot of other additions!
  • @hmmbob for reviewing the 5.0.0 documentation
  • All users of the macro, especially those who provide valuable feedback in questions, issue reports or feature requests

About

Jinja macro to find the cheapest energy prices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jinja 100.0%