ESP Easy and Wi-Fi relays
Moderators: grovkillen, Stuntteam, TD-er
ESP Easy and Wi-Fi relays
Hello. I want the CO2 meter via P2P to turn on and off the Wi-Fi relay at CO2> or <from 1000. I read a lot and struggled, but I could not set it. Can you tell me where I'm wrong in the settings.
- Attachments
-
- ESP 4.jpg (292.88 KiB) Viewed 6070 times
-
- ESP 3.jpg (356.77 KiB) Viewed 6070 times
-
- ESP 2.jpg (380.1 KiB) Viewed 6070 times
-
- ESP 1.jpg (289.25 KiB) Viewed 6070 times
-
- ESP 0.jpg (402.2 KiB) Viewed 6070 times
Re: ESP Easy and Wi-Fi relays
the right syntax would be:
or on older builds this seems to do the trick:
you can try this out by entering the command under /tools in the command field and hit submit. there you also get an feedback if it succeeded....
Code: Select all
sendto 3,gpio,2,1
Code: Select all
sendto 3,"gpio,2,1"
Last edited by chromo23 on 27 Mar 2022, 20:00, edited 1 time in total.
Re: ESP Easy and Wi-Fi relays
I write it and it comes out to me: Too many arguments, try using quotes! Command unknown: sendto 4, gpio, 2,1
Re: ESP Easy and Wi-Fi relays
Too many arguments, try using quotes!Command unknown: sendto 1, gpio,12,1
Re: ESP Easy and Wi-Fi relays
Do I have to write something in the rules?
Re: ESP Easy and Wi-Fi relays
Adding quotes will help here,
but, for turning off the remote relay, the 'else' part should also use the 'SendTo' command:
I've used %eventvalue1% instead of [CO2#PPM] so the event responds to the value passed to the event, and not the current sensor value, though this will probably not make a difference in this situation.
but, for turning off the remote relay, the 'else' part should also use the 'SendTo' command:
Code: Select all
on CO2#PPM do
if %eventvalue1%>1000
sendto 3,"gpio,2,1"
else
sendto 3,"gpio,2,0"
endif
endon
/Ton (PayPal.me)
Re: ESP Easy and Wi-Fi relays
this works but the readme states
Code: Select all
sendto,3,gpio,2,1
Edit: on newer builds of course
Re: ESP Easy and Wi-Fi relays
I tried both options, but it does not include and there is nothing in the Log.
I'm missing something somewhere.
I'm missing something somewhere.
Re: ESP Easy and Wi-Fi relays
It may help if you upgrade both your ESP's to a later edition of ESPEasy, as your builds are rather old (3.5 years on unit 3?), and many bugs have been fixed (and new features added) since then.
I know it is a bit tedious to upgrade an ESP01s, but I think it is worth the trouble.
I know it is a bit tedious to upgrade an ESP01s, but I think it is worth the trouble.
/Ton (PayPal.me)
Re: ESP Easy and Wi-Fi relays
Will try. Thanks.
Who is online
Users browsing this forum: Google [Bot] and 3 guests