Tasmota switch logic

77 views
Skip to first unread message

Martin Hrottek

unread,
Sep 24, 2018, 2:24:56 PM9/24/18
to SonoffUsers
Hello guys, So I set my GPIO14 to Switch and it works great but I need to send a http request after I hit the physical button that is connected to GPIO14 . Where can I find the piece of code that triggers the logic for switch?

Philip Knowles

unread,
Sep 24, 2018, 4:19:59 PM9/24/18
to Martin Hrottek, SonoffUsers

It depends on what you are trying to achieve. You could probably do it with a rule.

The Commands wiki explains how to send http and how to set up a rule.

Regards

 

Phil K

 

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "SonoffUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

Martin Hrottek

unread,
Sep 24, 2018, 4:27:54 PM9/24/18
to SonoffUsers
I am just trying to sent a simple http request like "192.186.0.120/test.php" or something like that after the I hit the physical switch


Dňa pondelok, 24. septembra 2018 20:24:56 UTC+2 Martin Hrottek napísal(-a):

Philip Knowles

unread,
Sep 24, 2018, 4:32:38 PM9/24/18
to Martin Hrottek, SonoffUsers

Something like

Rule1 on switch1#state do websend 192.168.0.120 test.php endon

 

Regards

 

Phil K

 

Sent from Mail for Windows 10

 

--

Reply all
Reply to author
Forward
0 new messages