ESP Easy and Wi-Fi relays

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
MarioNed
New user
Posts: 8
Joined: 24 Mar 2022, 20:49

ESP Easy and Wi-Fi relays

#1 Post by MarioNed » 27 Mar 2022, 18:34

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.
ESP 5.jpg
ESP 5.jpg (243.92 KiB) Viewed 5926 times
Attachments
ESP 4.jpg
ESP 4.jpg (292.88 KiB) Viewed 5926 times
ESP 3.jpg
ESP 3.jpg (356.77 KiB) Viewed 5926 times
ESP 2.jpg
ESP 2.jpg (380.1 KiB) Viewed 5926 times
ESP 1.jpg
ESP 1.jpg (289.25 KiB) Viewed 5926 times
ESP 0.jpg
ESP 0.jpg (402.2 KiB) Viewed 5926 times

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: ESP Easy and Wi-Fi relays

#2 Post by chromo23 » 27 Mar 2022, 19:48

the right syntax would be:

Code: Select all

sendto 3,gpio,2,1
or on older builds this seems to do the trick:

Code: Select all

sendto 3,"gpio,2,1"
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....
Bildschirmfoto 2022-03-27 um 19.56.44.png
Bildschirmfoto 2022-03-27 um 19.56.44.png (41.37 KiB) Viewed 5916 times
Last edited by chromo23 on 27 Mar 2022, 20:00, edited 1 time in total.

MarioNed
New user
Posts: 8
Joined: 24 Mar 2022, 20:49

Re: ESP Easy and Wi-Fi relays

#3 Post by MarioNed » 27 Mar 2022, 19:58

I write it and it comes out to me: Too many arguments, try using quotes! Command unknown: sendto 4, gpio, 2,1

MarioNed
New user
Posts: 8
Joined: 24 Mar 2022, 20:49

Re: ESP Easy and Wi-Fi relays

#4 Post by MarioNed » 27 Mar 2022, 20:00

Too many arguments, try using quotes!Command unknown: sendto 1, gpio,12,1

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: ESP Easy and Wi-Fi relays

#5 Post by chromo23 » 27 Mar 2022, 20:00

i just updated my last post...

try:

Code: Select all

sendto 3,"gpio,2,1"

MarioNed
New user
Posts: 8
Joined: 24 Mar 2022, 20:49

Re: ESP Easy and Wi-Fi relays

#6 Post by MarioNed » 27 Mar 2022, 20:02

Do I have to write something in the rules?

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ESP Easy and Wi-Fi relays

#7 Post by Ath » 27 Mar 2022, 20:03

Adding quotes will help here,

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
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.
/Ton (PayPal.me)

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: ESP Easy and Wi-Fi relays

#8 Post by chromo23 » 27 Mar 2022, 20:07

chromo23 wrote: 27 Mar 2022, 19:48 the right syntax would be:

Code: Select all

sendto 3,gpio,2,1
this works but the readme states

Code: Select all

sendto,3,gpio,2,1
which works too.

Edit: on newer builds of course

MarioNed
New user
Posts: 8
Joined: 24 Mar 2022, 20:49

Re: ESP Easy and Wi-Fi relays

#9 Post by MarioNed » 27 Mar 2022, 20:38

I tried both options, but it does not include and there is nothing in the Log.
I'm missing something somewhere.

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ESP Easy and Wi-Fi relays

#10 Post by Ath » 27 Mar 2022, 20:59

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.
/Ton (PayPal.me)

MarioNed
New user
Posts: 8
Joined: 24 Mar 2022, 20:49

Re: ESP Easy and Wi-Fi relays

#11 Post by MarioNed » 27 Mar 2022, 21:20

Will try. Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests