Hi, I am trying to setup this an optional shutdown delay when turning of the computer. so I would be able to delay it about 60 minutes or 120 depending on the value. I am using a tool installed on the pc that functions through http.
The command is:
`command_line:
- switch:
name: pc_off
command_off: "curl http://IPADDRESS:PORT/secret_key/forceshutdown?delay={{ states('input_number.shutdown_delay') | int * 60 }}"`
But my HASS log reports me:
2024-03-21 21:21:40.952 ERROR (SyncWorker_36) [homeassistant.components.command_line.utils] Command failed (with return code 2): curl http://IPADDRESS:PORT/secret_key/forceshutdown?delay={{ states('input_number.shutdown_delay') | int * 60 }} 2024-03-21 21:21:40.952 ERROR (MainThread) [homeassistant.components.command_line] Command failed: curl http://IPADDRESS:PORT/secret_key/forceshutdown?delay={{ states('input_number.shutdown_delay') | int * 60 }}