The information below explains how to use the macro in several sections, each section explains how the different related parameters of the macro work.
- The macro doesn't automatically update. If you use it in a template sensor for example, it will only update on changes of the source sensor (which usually happens at midnight, when tomorrow becomes today, and when the prices for tomorrow become available). To make sure it updates on the right interval you can create a trigger based template sensor and choose when it should update by adding the right triggers, or add a line with
{% set n = now() %}
in your template to make it update each minute.