inexplicable Event
Moderators: grovkillen, Stuntteam, TD-er
inexplicable Event
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
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
Re: inexplicable Event
Maybe some other device or rule uses IDX 145?
Also double-check the unit doesn't reboot around that time.
Also double-check the unit doesn't reboot around that time.
Re: inexplicable Event
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
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
Re: inexplicable Event
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
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
Re: inexplicable Event
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
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
Re: inexplicable Event
I think you've bumped into this bug maybe:
https://github.com/letscontrolit/ESPEasy/issues/2834
https://github.com/letscontrolit/ESPEasy/issues/2834
Re: inexplicable Event
HI
Yes Sir, it sounds like this bug... MANY THANKS to wim16 for this Hint!
BG
Rira
Yes Sir, it sounds like this bug... MANY THANKS to wim16 for this Hint!
BG
Rira
Re: inexplicable Event
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
in /dashboard.esp, shows 0 or 1. not 500
Who is online
Users browsing this forum: No registered users and 99 guests