Help With Helpers!
Posted: Fri Jan 10, 2025 12:28 pm
A bit of background. I am trying to make an automation to force discharge any remaining energy in my battery before the start of the forced charge period. For me, on Octopus Intelligent Go, that means exporting the residual energy before 23:30 when the low rate tariff starts and I recharge the battery ready for the next day.
Basically the automation will check at a specified start time (say 19:00) how much energy (in kWh) is left in the battery and hence how long it will need to export this at my G99 export limit (4 kW). The time interval between the time of the check and the start of the low-tariff period is the window for exporting. Then if the export time needed is hours less than the window, the automation sets a new check time nearer to the low-tariff time and exits. This will repeat until the export time is within say 30 minutes of the window. Then the forced discharge will be triggered.
To do this automation I have created a few Helpers to let me input some relevant data. Specifically, I have helpers to manually input the time when the low tariff period starts, FD_SetWindowEndTime and the time when I want to start checking, FD_WindowStartTime. I created these using Settings, Devices and Services, Helpers, Create Helper then selecting Date and/or Time, inputting in the name and selecting time as the chosen input. Hit create and voila, I have a helper. I click on the name and enter a time in hh:mm and it accepts it.
But--- when I go to Developer Tools, Template and enter {{FD_SetWindowEndTime}} in the Template Editor it says 'FD_SetWindowEndTime' is undefined.
Obviously I am doing something wrong but I have tried everything I can think of and I can't get it to show the string with the numbers I have input. I would really like some help here.
Thanks in advance, Hugh
Basically the automation will check at a specified start time (say 19:00) how much energy (in kWh) is left in the battery and hence how long it will need to export this at my G99 export limit (4 kW). The time interval between the time of the check and the start of the low-tariff period is the window for exporting. Then if the export time needed is hours less than the window, the automation sets a new check time nearer to the low-tariff time and exits. This will repeat until the export time is within say 30 minutes of the window. Then the forced discharge will be triggered.
To do this automation I have created a few Helpers to let me input some relevant data. Specifically, I have helpers to manually input the time when the low tariff period starts, FD_SetWindowEndTime and the time when I want to start checking, FD_WindowStartTime. I created these using Settings, Devices and Services, Helpers, Create Helper then selecting Date and/or Time, inputting in the name and selecting time as the chosen input. Hit create and voila, I have a helper. I click on the name and enter a time in hh:mm and it accepts it.
But--- when I go to Developer Tools, Template and enter {{FD_SetWindowEndTime}} in the Template Editor it says 'FD_SetWindowEndTime' is undefined.
Obviously I am doing something wrong but I have tried everything I can think of and I can't get it to show the string with the numbers I have input. I would really like some help here.
Thanks in advance, Hugh