Search found 28 matches

by potzkiin
17 Sep 2018, 11:07
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

Thanks for all the help!!!!!!!!! :) now it is working great!!!! here is all the configuration so everyone can use it ... on System#Boot do gpio,0,1 // Prevent relay turning on during boot endon On sw1#state Do Event,toggleRelay01 EndOn On toggleRelay01 Do if [Relay01#state]=0 Event,setRelay01=1 else...
by potzkiin
12 Sep 2018, 14:17
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

ill send you a PM with the DOWNLOAD link.
by potzkiin
12 Sep 2018, 13:55
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

the relay respond to 1 and 0 with mqtt and http command.
the mqtt event,toggleRelay01,not working.

the SW1 wont toggle the relay.
by potzkiin
12 Sep 2018, 12:44
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

yes im sending via http://10.0.80.108/control?cmd=GPIO,0,0 or 0,1 and the relay toggle.
also via mqtt command with payload":"event,setRelay01=1/0
by potzkiin
12 Sep 2018, 11:50
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

GPIO 0 is the relay.
gpio 12 is the sw.

for now i don't nee the state of the sw as it will always be as the state of the relay so..i
by potzkiin
12 Sep 2018, 11:02
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

yep that was the problem with SW. i change it to active low. so now sw1 change the status 1 to 0 and so on... but no relay toggle. also when i send setRelay01=0 or 1 the relay change status and sw1 stays at previous state without change. here is the log: 1760467: EVENT: sw1#state=1.00 1760477: ACT :...
by potzkiin
12 Sep 2018, 10:41
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

OK, thanks for the input i didn't noticed that.
i changed the name to be state

when pressing the SW1 nothing happening to relay.
on the mqtt console i can see it any press make the status go from 0 to 1 with single press.

/test/sw1/state 0
/test/sw1/state 1
by potzkiin
12 Sep 2018, 09:57
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

actually This is my current rule:

on System#Boot do
gpio,0,1 // Prevent relay turning on during boot
endon

On sw1#state Do
Event,toggleRelay01
EndOn

On toggleRelay01 Do
if [Relay01#state]=0
Event,setRelay01=1
else
Event,setRelay01=0
endif
EndOn

On setRelay01 Do
GPIO,0,%eventvalue%
EndOn
by potzkiin
12 Sep 2018, 09:31
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

i read somewhere that a virtual switch could help...can you suggest ho to make it with rules?
or maybe it is not relevant at all...
by potzkiin
12 Sep 2018, 09:30
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

hi again... i change the rules as you suggested but there are more issues, - if i manually change the relay with the command /control?cmd=GPIO,0,1 AND then toggle sw1, the relay toggles. but only once(additional sw1 press is doing nothing). - Also if i send payload: event,toggleRelay01 it only chang...
by potzkiin
06 Sep 2018, 19:23
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

Sorry..but i cant understand...im setting a start point when boot and calling gpio 0 (the relay) to start point of 1or0 of the relay .Im setting the relay not the switch.
Im confused..
by potzkiin
06 Sep 2018, 18:53
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

Im using this rule:
on System#Boot do
gpio,0,1 // Prevent relay turning on during boot
endon
by potzkiin
06 Sep 2018, 17:45
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

Hi,
i uploaded the devices and rule.
gpio 12 is the switch input
gpio 0 is the relay..
by potzkiin
06 Sep 2018, 13:35
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

Hi again. i updated the version. to Release mega-20180904 but got the same problem. 1.the SW1 won't toggle the relay.(i cant see any log for switch press either..) its seems that this rule: "On setRelay01 Do GPIO,12,%eventvalue% EndOn" when setting it to GPIO 12 where the switch is connect...
by potzkiin
05 Sep 2018, 18:45
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

Thanks! Will upload tommorow:-)
by potzkiin
05 Sep 2018, 18:42
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

What stable version do you suggest?
by potzkiin
05 Sep 2018, 09:47
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

your activity on the woods sound like so much fun :) ....in my place it is not allowed, any way... when i call the mqtt with event,setRelay01=1 i can see the rule respond but no relay toggle and also there is no switch action.(even no mqtt topic when pressing on the sw1) this is my rule: on System#B...
by potzkiin
05 Sep 2018, 08:16
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

toggeleRelay01 Check spelling. I also see that I misspelled "else" with "elese". I have updated the previous post now. on System#Boot do gpio,0,1 // Prevent relay turning on during boot endon On sw1#State Do Event,toggleRelay01 EndOn On toggleRelay01 Do if [Relay01#State]=0 even...
by potzkiin
05 Sep 2018, 08:12
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

Please note that not all GPIO pins are behaving the same. GPIO0 and 16 are 'special ones'. - GPIO 0-15 all have a built-in pull-up resistor, just like in an Arduino. GPIO16 has a built-in pull-down resistor. - GPIO15 is always pulled low, so you can’t use the internal pull-up resistor. You have to ...
by potzkiin
04 Sep 2018, 16:13
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

First Thnaks for all your effort to help is much appreciated! i changed the value to "State" as you suggested also the rule to fit my names...but i guessing i did something wrong because there is no switch action or mqtt action with event,toggeleRelay01 on System#Boot do gpio,0,1 // Preven...
by potzkiin
04 Sep 2018, 14:55
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

can i do something like this?
wherever the relay togle the input SW change also?

on Relay01#Relay01 do
if [Relay01#Relay01]=0
gpio,12,0
elese
gpio,12,1
endif
endon

i really dont know how to do what you suggested.
by potzkiin
04 Sep 2018, 14:34
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

went trough the wiki for days..can find a solution.
i found not only me struggling with this issue over the net..
by potzkiin
04 Sep 2018, 13:45
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

if you can help me with the rule? im pretty new to this..
by potzkiin
04 Sep 2018, 12:21
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

rule: on System#Boot do gpio,0,1 // Prevent relay turning on during boot endon on sw1#sw1 do Event,toggleSwitch endon On toggleSwitch Do if [sw1#sw1]=0 gpio,0,1 gpio,16,1 else gpio,0,0 gpio,16,0 endif EndOn Hardware.jpg Devices.jpg Config.jpg i don't want to use switch toggle in mqtt.. as i want to ...
by potzkiin
04 Sep 2018, 11:26
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

as i understand i need some rule to listen to my mqtt command an execute the switch mode according to the mqtt topic...
by potzkiin
04 Sep 2018, 11:12
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

yes i try it and i got the same results..
by potzkiin
04 Sep 2018, 10:25
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Re: Help With Rules

im using
"payload": "GPIO,0,1 or 0",
"topic": "/test/cmd"

that's controlling the relay...but button get out of sync....
by potzkiin
04 Sep 2018, 09:21
Forum: ESP Easy: General Discussion
Topic: Help With Rules
Replies: 61
Views: 24420

Help With Rules

hello, im trying to setup a physical SW with Relay and Mqtt. so far i managed to control relay via the switch the problem is when i controlling via mqtt the sw status remain as it was before and it need 2 pulses to sync to the current status and toggle the relay.. this is the rule im using: on Syste...