Page 1 of 1

Sonoff relay status - domoticz Update

Posted: 04 Jul 2018, 09:15
by jme
Hi,

I just reconfigure my Sonoff with espeasy.

Everything is working fine, but i stille have a issue.

If i use the swithc on the sonoff, i didn't get the status on domoticz.
I mean i can't see in domotics that the relay is on if it's not activated from domoticz.

I don't know if i have to post here of in domoticz forum.
Image

Re: Sonoff relay status - domoticz Update

Posted: 04 Jul 2018, 09:30
by jme
I also have a nother issue, i've set the button on the sonoff to the same IDX as the relay ( buton 1 as same idx as relay one.)

If i switch the relay on from domoticz, it automatically switch off the relay after a few seconds.

I changed the idx of teh button, and the issue didn't apear again.

Is it maybe a conflict between the rule and domoticz ?

Code: Select all

on Bouton1#Bouton1=1 do
if [Relais1#Relais1]=1
GPIO,12,0
else
GPIO,12,1
endif
endon

Image

Re: Sonoff relay status - domoticz Update

Posted: 04 Jul 2018, 10:47
by countcobolt
is this a sonoff touch or a normal switch?

Re: Sonoff relay status - domoticz Update

Posted: 04 Jul 2018, 10:49
by jme
It's a sonoff 4ch pro

Re: Sonoff relay status - domoticz Update

Posted: 04 Jul 2018, 13:33
by countcobolt
Hey

I have no idx set in my devices and only use the relay for a 2CH sonoff. What I do is in the rules send my status to domoticz over HTTP.

SendToHTTP 192.168.xxx.xxx,8080,/json.htm?type=command&param=switchlight&idx=64&switchcmd=Set%20Level&level=0

Maybe you can send the status also using http and purely in the rules?

KR
Steve