Sonoff relay status - domoticz Update

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
jme
Normal user
Posts: 43
Joined: 11 Apr 2018, 14:20

Sonoff relay status - domoticz Update

#1 Post by jme » 04 Jul 2018, 09:15

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

jme
Normal user
Posts: 43
Joined: 11 Apr 2018, 14:20

Re: Sonoff relay status - domoticz Update

#2 Post by jme » 04 Jul 2018, 09:30

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

countcobolt
Normal user
Posts: 32
Joined: 12 Jun 2017, 11:12

Re: Sonoff relay status - domoticz Update

#3 Post by countcobolt » 04 Jul 2018, 10:47

is this a sonoff touch or a normal switch?

jme
Normal user
Posts: 43
Joined: 11 Apr 2018, 14:20

Re: Sonoff relay status - domoticz Update

#4 Post by jme » 04 Jul 2018, 10:49

It's a sonoff 4ch pro

countcobolt
Normal user
Posts: 32
Joined: 12 Jun 2017, 11:12

Re: Sonoff relay status - domoticz Update

#5 Post by countcobolt » 04 Jul 2018, 13:33

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

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests