inexplicable Event

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
rira2005
Normal user
Posts: 30
Joined: 25 Jun 2017, 21:09

inexplicable Event

#1 Post by rira2005 » 29 Apr 2020, 20:35

Hi

I have a Sonoff S20, with the Release : ESP_Easy_mega-20200410_normal_ESP8266_1M.bin
i have button switch & a relay swtich configured...

+1 Rule
on Button#State do
if [Relay#State]=0
gpio,12,1
Publish domoticz/in,'{"idx":145,"nvalue":1,"svalue":""}'
else
gpio,12,0
Publish domoticz/in,'{"idx":145,"nvalue":0,"svalue":""}'
endif
endon

i get at every day at
06.30 a button event(toggle on)
07.00 a button event(toggle off)
same at
19.00 a button event(toggle on)
19.30 a button event(toggle off)

i have a connection to domoticz but i have no time switch with a timer oder an event programed...

But i get a unbeliveable toggle every day (and see this at the log)....
WHERE IT COMES?! Any Idea?
AND NOONE!! (also ghost and eletctromagnetic sunstorms too push the button on the s20!!!
--------------------------------------------------------------
290403399: EVENT: Clock#Time=Wed,19:00
290403475: Command: inputSwitchState
290403496: Command: inputSwitchState
290403515: EVENT: Button#State=0.00
290403524: ACT : gpio,12,1
290403525: Command: gpio
290403527: SW : GPIO 12 Set to 1
290403531: ACT : Publish domoticz/in,'{'idx':145,'nvalue':1,'svalue':''}'
290403534: Command: Publish
290403588: SW : GPIO=12 State=1 Output value=1
290403591: EVENT: Relay#State=0.00
290403687: EVENT: Relay#State=1.00
-------------------------------------------------------------

Many Thanks.
Rira

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: inexplicable Event

#2 Post by TD-er » 29 Apr 2020, 21:14

Maybe some other device or rule uses IDX 145?

Also double-check the unit doesn't reboot around that time.

rira2005
Normal user
Posts: 30
Joined: 25 Jun 2017, 21:09

Re: inexplicable Event

#3 Post by rira2005 » 30 Apr 2020, 07:15

HI

No other device is using the 145idx (and soon i only send a mqtt msg with my rule) there is no idx configured at the button/relay itself... so its only a status info für domoticz...

Uptime : 3 days 20 hours 54 min.....

anyone any idea?

tia
rira

rira2005
Normal user
Posts: 30
Joined: 25 Jun 2017, 21:09

Re: inexplicable Event

#4 Post by rira2005 » 30 Apr 2020, 07:34

hi again

i found something... in domoticz i send to a led easyesp at 06.30 and 19.00 a http command...(but it is an other ip...)

06.30 http://192.168.253.179/control?cmd=event,gruen (it an other ip as the sonoff 20 (192.168.253.182)
19.00 http://192.168.253.179/control?cmd=event,rot (it an other ip as the sonoff 20 (192.168.253.182)

this esp has idx 139 in domoticz....


in the esp 192.168.253.179 ... following rules :
on rot do
pwm,14,128,5000
pwm,12,0,5000
pwm,13,0,5000
endon

on gruen do
pwm,12,128,5000
pwm,14,0,5000
pwm,13,0,5000
endon

no device configured....

Any Idea yet?
Many Thanks
Rira

rira2005
Normal user
Posts: 30
Joined: 25 Jun 2017, 21:09

Re: inexplicable Event

#5 Post by rira2005 » 30 Apr 2020, 09:47

Hello AGAIN....

i found it! i is interresting....
the device with the wrong "switching" has no idx configured at the both switches (button&relay) --> both 0 null
(i have only this rule)
---------------------------------------------
on Button#State do
if [Relay#State]=0
gpio,12,1
Publish domoticz/in,'{"idx":145,"nvalue":1,"svalue":""}'
else
gpio,12,0
Publish domoticz/in,'{"idx":145,"nvalue":0,"svalue":""}'
endif
endon
---------------------------------------------

in the domoticz i do for another device the allready explained (at the time) scheduled command:
06.30 http://192.168.253.179/control?cmd=event,gruen (it an other ip as the sonoff 20 (192.168.253.182)
19.00 http://192.168.253.179/control?cmd=event,rot (it an other ip as the sonoff 20 (192.168.253.182)

BUT i have also a mqtt service connected to the domoticz and the sonoff S20...

I think the domoticz send the http command to the right ESP (192.168.253.179) this is OK.(this device has the idx 139 in domoticz) --> also ok....(but it isnt used in the esp...)
the mqtt send also the command ... (i have not really traced what the mqtt sents(i hope i have time todo wireshark trace...)

BUT the wrong going Sonoff S20 gets a mqtt msg (i have to debug it)--> do a button toggle...
Solution (quick and dirty)... i add to both device switches a idx that doesnt exist (998+999) and unchecked "send to controller" --> and the inexplicable Event is gone....

i will gone to debug the situation....

many thanks -> at this moment i need no help any more... pls close the post.
rira

wim16
Normal user
Posts: 88
Joined: 01 May 2017, 20:35

Re: inexplicable Event

#6 Post by wim16 » 30 Apr 2020, 10:38

I think you've bumped into this bug maybe:
https://github.com/letscontrolit/ESPEasy/issues/2834

rira2005
Normal user
Posts: 30
Joined: 25 Jun 2017, 21:09

Re: inexplicable Event

#7 Post by rira2005 » 30 Apr 2020, 11:22

HI

Yes Sir, it sounds like this bug... MANY THANKS to wim16 for this Hint!
BG
Rira

kollj
New user
Posts: 1
Joined: 02 May 2020, 12:26

Re: inexplicable Event

#8 Post by kollj » 02 May 2020, 12:31

can I find out the status of gpio if I sent a pvm command, 13,500.
in /dashboard.esp, shows 0 or 1. not 500

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 29 guests