Hey. I am trying tot control oud airco through an ESP.
I am using the following logic:
Press button -> set variable tot 1 tot disable deepsleep ->
WHEN $DeepSleep = 1 and every 10 seconds and if espimaticairco is present THEN execute "curl --silent --data 'action=ir&value=$aircoaan' http://192.168.178.11/api > /dev/null" and after 5 seconds set $DeepSleep to 0 and after 5 seconds execute "curl --silent --data 'action=reboot&value=true' http://192.168.178.11/api > /dev/null"
But the signal isnt getting through.
Any suggestion?
All variables are correct and working but when i add and every 10 seconds it doesnt work.