Page 1 of 1

Rules switch Problem on 148

Posted: 20 Apr 2017, 23:33
by Mihadongle
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

Re: Rules switch Problem on 148

Posted: 21 Apr 2017, 11:19
by toffel969
What do you mean by ipcall. Please post the on/o action called by the switch in domoticz

Re: Rules switch Problem on 148

Posted: 21 Apr 2017, 12:08
by Mihadongle

Re: Rules switch Problem on 148

Posted: 21 Apr 2017, 12:13
by toffel969
Is "inversed" activated on relay#state?

Re: Rules switch Problem on 148

Posted: 21 Apr 2017, 12:20
by Mihadongle
No isn't invers

Re: Rules switch Problem on 148

Posted: 22 Apr 2017, 19:19
by toffel969
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

Re: Rules switch Problem on 148

Posted: 22 Apr 2017, 21:34
by Mihadongle
With invers its the same