I have an input number slider control which is used to control the default number of minutes a device stays on for. This worked perfectly until the most recent core upgrade.
The input slider is setup as a Helper as follows:
The template string I am using in the automation to automatically turn off the device is as follows:
delay:
minutes: ‘{{ states(’‘input_number.pump_time_control’‘) | int }}’
When viewing the automation trace the delay is reported as 1200 even though the input slider has been set to 20 minutes. I have divided the int by 60 however this results in the automation switching the device off after 20 seconds. I have also tried changing
minutes: ‘{{ states(’‘input_number.pump_time_control’‘) | int }}’
to
seconds: ‘{{ states(’‘input_number.pump_time_control’‘) | int }}’
however this also results in the device being switched off after 20 seconds. Any help would be gratefully appreciated.
Are you sure about that? I’m using templated delays everywhere, no issues. Can you post the full automation. Also make sure you format it correctly. Your original post does not have the correct format. Use 3 backticks before and after the code to format. Backtick is shared with tilda on your keyboard.
Ok - stop press - I think the answer here is the OP being a total tool.
@petro thanks for your help on this, having tried the automation again several times it now seems to be working perfectly without any changes what so ever. Very strange and I have no explanation except maybe a system restart has sorted it?