Sonoff Touch with IR and web control

Post Reply
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

based on this soft: https://en-forum.supla.org/viewtopic.php?f=10&t=6445

allows us to control the Sonoff Touch also with IR remote control (learn the IR codes of remote controls) or through the integrated Web server at the expense of the temperature sensor.

once setup WiFiConfig and Supla cloud:

then we access the IR configuration page through the browser with the ip of the ESP8266 or with mDNS.
with IP:
if in WiFiConfig we have selected a port other than 80 we will have to specify it in the url" http://module_ip:port "Eg."http://192.168.1.104:80"
with mDNS:
to access we open in the browser http: // "Supla name" .local: port
where Supla name and port are the ones we have defined in WiFiConfig.
Eg. http: //supla_ir.local: 80
Remember not to use spaces or special characters in "Supla Name" or mDNS will not work.

main1.png
main1.png (37.7 KiB) Viewed 2288 times
Here we can control the 3 channels by clicking on the ON -OFF buttons.

To learn the IR codes:
With an IR remote control we press a button the LED turns on for a moment indicating that it has received the IR code.
We update the page in the browser and we will see something like this:

Image
remember to refresh the page after capturing some IR code.
Image


click Store for the desired IR code and we will see the page to Store the IR codes:

Image

select the desired function for the IR code "turn on or off some of the 3 channels" and click on Store.

To manage the saved codes we click on:
Image

Here we can download or delete the saved IR codes.

Image


In the Tools tab we can access Firmware update, upload stored IR code and delete all the saved IR codes.
tools.png
tools.png (3.88 KiB) Viewed 2288 times

connect IR receiver to RX

Image
Touch_IR_DOUT_8Mbit.rar
(309.89 KiB) Downloaded 187 times
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

like https://en-forum.supla.org/viewtopic.php?f=10&t=6445 should be compatible with Sonoff Basic and Sonof Dual R2 :o
Post Reply

Return to “Ideas and concepts”