Thanks a lot for this!
Working here as well with this example. Great find!
Did work for me untill HA update 2024.2.1. Now the curl command stays active consuming lots of CPU. Every 10 minutes the command will run again and it will start a new process consuming CPU.
Anyone having the same issue with this HA update?