I'm fairly new to home assistant, and particularly to templates and jinja.
I'm trying to use the cheapest_energy_hours.jinja integration from my custom_templates/. I've tried this via a helper template sensor (as instructed in e.g. dishwasher_overnight) but that reads 'Unavailable'.
Then, I tried playing around in the developer-tools\template sandbox, but even only adding the import statement only gives me:
TemplateSyntaxError: Encountered unknown tag 'do'. Jinja was looking for the following tags: 'endmacro'. The innermost block that needs to be closed is 'macro'.
It seems I may be doing something wrong, but I have no clue where to look or where to start.