Hello,
I am using a Nature Remo WiFi IR blaster to control some lights via a local API that uses REST command. The IR blaster goes to sleep after an hour or so, and sometimes the command is lost while the device wakes up. I would like to add the following options to the REST command to resend the command if the device doesn’t respond, but it doesn’t work if it is inserted in the payload.
--max-time 1 --connect-timeout 1 --retry-connrefused --retry 3 --retry-delay 2
Is there any way to add the options? Here is the current REST command:
rest_command:
light_1f_on:
url: 'http://192.168.1.60/messages'
method: POST
headers:
X-Requested-With: curl
Expected: ""
payload: -d \'{\"format\":\"us\",\"freq\":37,\"data\":[IRSIGNALS]}\'