v3.9639 Sonoff MQTT issues, flipping. Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
schumi2004
Posts: 12
Joined: Tuesday 17 October 2017 19:38
Target OS: NAS (Synology & others)
Domoticz version: 3.9639
Contact:

v3.9639 Sonoff MQTT issues, flipping.

Post by schumi2004 » Friday 15 June 2018 19:27

Just installed a Sonoff Basic with Tasmota and today i noticed (on the lights) the Sonoff switch flipping between on/off state so i checked the log.

2018-06-15 18:53:07.170 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 18:53:07.287 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 18:53:32.292 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 18:53:32.406 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 18:55:56.356 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":3}
2018-06-15 18:55:56.472 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 18:58:42.951 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 18:58:43.067 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 18:58:43.632 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 18:58:43.747 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":3}
2018-06-15 18:59:29.673 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 18:59:29.795 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:00:10.070 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":5}
2018-06-15 19:00:10.184 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:00:32.075 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:00:32.194 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:04:23.874 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:04:23.997 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:04:52.792 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:04:52.906 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:10:05.727 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:10:05.847 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:10:39.711 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:10:39.826 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:12:40.364 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":5}
2018-06-15 19:12:40.482 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":4}
2018-06-15 19:13:07.788 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":5}
2018-06-15 19:13:07.911 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":5}
2018-06-15 19:13:19.407 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":5}
2018-06-15 19:13:19.531 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":5}
2018-06-15 19:14:20.119 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":1,"svalue":"","Battery":55,"RSSI":5}
2018-06-15 19:14:20.239 MQTT: Topic: domoticz/in, Message: {"idx":23,"nvalue":0,"svalue":"","Battery":55,"RSSI":5}

Does anyone have a idea what is going on here?
It seems the switch is constantly switching on/off for no reason

All is installed on a Synology NAS with Mosquito package with default config and Domoticz Beta v3.9639
Image
Image

Sonoff Basic Information:

Code: Select all

Sonoff Basic Module
Sonoff
Program Version	5.14.0
Build Date & Time	2018-06-12T01:04:54
Core/SDK Version	2_3_0/1.5.3(aec24ac9)
Uptime	1T21:34:39
Flash write Count	151 at F5000
Boot Count	4
Restart Reason	Software/System restart
Friendly Name 1	Sonoff
 
AP1 SSId (RSSI)	Wifi (40%)
Hostname	sonoff-2840
IP Address	10.0.0.33
Gateway	10.0.0.1
Subnet Mask	255.255.255.0
DNS Server	10.0.0.1
MAC Address	12:34:56:78:AB:CD
 
MQTT Host	10.0.0.100
MQTT Port	1883
MQTT Client &
 Fallback Topic	DVES_AFAB18
MQTT User	DVES_USER
MQTT Topic	sonoff
MQTT Group Topic	sonoffs
MQTT Full Topic	cmnd/sonoff/
 
Emulation	None
mDNS Discovery	Enabled
mDNS Advertise	Web Server
 
ESP Chip Id	11512600
Flash Chip Id	1327198
Flash Size	1024kB
Program Flash Size	1024kB
Program Size	528kB
Free Program Space	472kB
Free Memory	19kB

SweetPants
Posts: 2101
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.9701
Location: The Netherlands
Contact:

Re: v3.9639 Sonoff MQTT issues, flipping.

Post by SweetPants » Saturday 16 June 2018 13:36

Assuming IDX 23 is your switch, it continuiously updates domoticz state. I'm not familiar with Tasmota, but could it be that something else is switching your Switch and the switch updates domoticz with that? With supplied information it's hard to know what is really going on here.
Ubuntu 16.04.3 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (source)

schumi2004
Posts: 12
Joined: Tuesday 17 October 2017 19:38
Target OS: NAS (Synology & others)
Domoticz version: 3.9639
Contact:

Re: v3.9639 Sonoff MQTT issues, flipping.

Post by schumi2004 » Saturday 16 June 2018 13:47

I did some more digging and it seems I'm dealing with a floating pin issue behavior here.
https://programmingelectronics.com/floa ... d-arduino/

Going to get the needed material today to see if it's indeed a floating pin issue.

SweetPants
Posts: 2101
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.9701
Location: The Netherlands
Contact:

Re: v3.9639 Sonoff MQTT issues, flipping.

Post by SweetPants » Sunday 17 June 2018 9:38

Please mark your topic as Solved when the problem is solved. as the red forum rules state.
Ubuntu 16.04.3 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (source)

schumi2004
Posts: 12
Joined: Tuesday 17 October 2017 19:38
Target OS: NAS (Synology & others)
Domoticz version: 3.9639
Contact:

Re: v3.9639 Sonoff MQTT issues, flipping.

Post by schumi2004 » Sunday 17 June 2018 21:44

It was indeed a floating pin issue.

Added a 10k resistor and 33uf capacitor.

Post Reply

Who is online

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