Rules switch Problem on 148

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Mihadongle
Normal user
Posts: 25
Joined: 07 Jan 2016, 17:18

Rules switch Problem on 148

#1 Post by Mihadongle » 20 Apr 2017, 23:33

Hallo i have a problem with the release 148

My rule:
On Tur_Schalter#Switch do
If [Relay#State]=0
Gpio 5,0
Else
Gpio 5,1
Endif
Endon

on toggle do
if [Relay#State] = 0
GPIO,5,0
else
GPIO,5,1
endif
Endon

On domoticz i call the relay with ip call.

My problem is with this rule on r135 all ok i can turn on the switch and the light relay go on, when i turn now the light of with domoticz it turn off. The switch is on.
On r148 i turn the switch on the light go on, when i now turn the light with domoticz off the light goes off but in 20 seconds it goes on because the Switch is on.in 20 seconds the light goes off and the light is in a loop all 20 seconds on/off. I can break the loop when i turn off the switch or i turn on in domoticz.
Have any one a solution for me

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Rules switch Problem on 148

#2 Post by toffel969 » 21 Apr 2017, 11:19

What do you mean by ipcall. Please post the on/o action called by the switch in domoticz
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8


User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Rules switch Problem on 148

#4 Post by toffel969 » 21 Apr 2017, 12:13

Is "inversed" activated on relay#state?
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Mihadongle
Normal user
Posts: 25
Joined: 07 Jan 2016, 17:18

Re: Rules switch Problem on 148

#5 Post by Mihadongle » 21 Apr 2017, 12:20

No isn't invers

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Rules switch Problem on 148

#6 Post by toffel969 » 22 Apr 2017, 19:19

toffel969 wrote: 21 Apr 2017, 12:13
Is "inversed" activated on relay#state?
Try to either inverse or

On Action: http://192.168.1.170/control?cmd=GPIO,5,0
Off Action: http://192.168.1.170/control?cmd=GPIO,5,1
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Mihadongle
Normal user
Posts: 25
Joined: 07 Jan 2016, 17:18

Re: Rules switch Problem on 148

#7 Post by Mihadongle » 22 Apr 2017, 21:34

With invers its the same

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 22 guests