Closed netmaster01 closed 5 years ago
For normal operation with Tasmota the following settings are recommended: S6: 1 K5: all 1 K6: all 0 (0 and 1 are printed onto the board next to the switch names)
my settings are S6: 1 k5: ch1=0 ch2 =1 ch3=0 ch4=1 k6= 1110
This is controlling a motor. if i setup with mqtt timers with homeassistant. will depend on that If mqtt broker is down the motor will be working forever instead of xx seconds. with hardware setup its more reliable.
Retain is off in HA? And mqtt contains no retained messages?
yeah that topic was created just after the upgrade. is the only device that is using. no interaction with home assistant and mqtt messages. only managed via tasmota web interface.
below decode status
decode-status.py v20180730 by Theo Arends Decoding information for device Sonoffgg1 from status report taken at 2018-12-02T18:12:38
Options 0 (OFF) Save power state and use after restart 1 (OFF) Restrict button actions to single, double and hold 2 (OFF) Show value units in JSON messages 3 (ON ) MQTT enabled 4 (OFF) Respond as Command topic instead of RESULT 5 (OFF) MQTT retain on Power 6 (OFF) MQTT retain on Button 7 (OFF) MQTT retain on Switch 8 (OFF) Convert temperature to Fahrenheit 9 (OFF) MQTT retain on Sensor 10 (OFF) MQTT retained LWT to OFFLINE when topic changes 11 (OFF) Swap Single and Double press Button 12 (OFF) Do not use flash page rotate 13 (OFF) Button single press only 14 (OFF) Power interlock mode 15 (ON ) Do not allow PWM control 16 (OFF) Reverse clock 17 (OFF) Allow entry of decimal color values 18 (OFF) CO2 color to light signal 19 (OFF) HASS discovery 20 (OFF) Do not control Power with Dimmer 21 (OFF) Energy monitoring while powered off 22 (OFF) MQTT serial 23 (OFF) MQTT serial binary 24 (OFF) Convert pressure to mmHg 25 (OFF) KNX enabled 26 (OFF) Use Power device index on single relay devices 27 (OFF) KNX enhancement 28 (OFF) RF receive decimal 29 (OFF) IR receive decimal 30 (OFF) Enforce HASS light group 31 (OFF) Do not show Wifi and Mqtt state using Led 50 (ON ) Timers enabled 51 (OFF) Generic ESP8285 GPIO enabled 52 (OFF) Add UTC time offset to JSON message 53 (OFF) Show hostname and IP address in GUI 54 (OFF) Apply SetOption20 to Tuya 55 (OFF) Use short Hass discovery messages 56 (OFF) Use wifi network scan at restart 57 (OFF) Use wifi network rescan regularly 58 (OFF) Add IR raw data to JSON message 59 (OFF) Change state topic from tele/STATE to stat/RESULT 60 (OFF) Enable normal sleep instead of dynamic sleep
Features Language LCID = 2057 MQTT_HOST_DISCOVERY MQTT_PUBSUBCLIENT USE_ADC_VCC USE_ARILUX_RF USE_ARMTRONIX_DIMMERS USE_BH1750 USE_BMP USE_CSE7766 USE_DHT USE_DISCOVERY USE_DISPLAY_LCD USE_DISPLAY_MATRIX USE_DISPLAY_MODES1TO5 USE_DISPLAY_SSD1306 USE_DOMOTICZ USE_DS18x20 USE_EMULATION USE_ENERGY_SENSOR USE_HLW8012 USE_HOME_ASSISTANT USE_HTU USE_HX711 USE_I2C USE_IR_RECEIVE USE_IR_REMOTE USE_LM75AD USE_MCP39F501 USE_MHZ19 USE_NOVA_SDS USE_PMS5003 USE_PZEM004T USE_PZEM_AC USE_PZEM_DC USE_RC_SWITCH USE_RULES USE_SENSEAIR USE_SERIAL_BRIDGE USE_SGP30 USE_SHT USE_SHT3X USE_SR04 USE_SUNRISE USE_TIMERS USE_TIMERS_WEB USE_TUYA_DIMMER USE_TX20_WIND_SENSOR USE_WEBSERVER USE_WS2812 WEBSERVER_ADVERTISE
use command weblog 4
to have more debug information and please re do the test to see the origin of the the toggle. You will see SRC: SWITCH or SRC: MQTT
If SRC: MQTT, your issue is that you have retained values in your broker
here the new test. i belive that power on works ok, but in the software you never performed a power off, this create a false ON state that during reboot proccess will bring on again.
is like hardware auto shutoff inching mode setup in the dip switchs are afecting in some manner the boot proccess state of relays.
New Test MQTT new topic configured and set weblog 4. restart
00:00:00 CFG: Loaded from flash at F5, Count 10264 00:00:00 APP: Boot Count 4970 00:00:00 SRC: Restart 00:00:00 Project sonoff Sonoff (Topic bugtest, Fallback DVES_A35EF6, GroupTopic sonoffs) Version 6.3.0-2_3_0 00:00:00 CFG: Saved to flash at F4, Count 10265, Bytes 3584 00:00:00 WIF: Checking connection... 00:00:00 WIF: Attempting connection... 00:00:00 WIF: Patch issue 2186 00:00:00 WIF: Connecting to AP1 NetXtreme in mode 11N as bugtest-7926... 00:00:01 WIF: Checking connection... 00:00:01 WIF: Attempting connection... 00:00:02 WIF: Checking connection... 00:00:02 WIF: Attempting connection... 00:00:03 WIF: Checking connection... 00:00:03 WIF: Attempting connection... 00:00:04 WIF: Checking connection... 00:00:04 WIF: Connected 00:00:04 DNS: Initialized 00:00:04 HTP: Web server active on bugtest-7926.local with IP address 10.0.1.30 00:00:05 HTP: Main Menu 00:00:05 MQT: Attempting connection... 00:00:05 MQT: Connected 00:00:05 MQT: tele/bugtest/LWT = Online (retained) 00:00:05 MQT: cmnd/bugtest/POWER = 00:00:05 MQT: Subscribe to cmnd/bugtest/# 00:00:05 MQT: Subscribe to cmnd/sonoffs/# 00:00:05 MQT: Subscribe to cmnd/DVES_A35EF6/# 00:00:05 MQT: tele/bugtest/INFO1 = {"Module":"Sonoff 4CH Pro","Version":"6.3.0","FallbackTopic":"DVES_A35EF6","GroupTopic":"sonoffs"} 00:00:05 MQT: tele/bugtest/INFO2 = {"WebServerMode":"Admin","Hostname":"bugtest-7926","IPAddress":"10.0.1.30"} 00:00:05 MQT: tele/bugtest/INFO3 = {"RestartReason":"Software/System restart"} 00:00:05 MQT: stat/bugtest/RESULT = {"POWER1":"OFF"} 00:00:05 MQT: stat/bugtest/POWER1 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER2":"OFF"} 00:00:05 MQT: stat/bugtest/POWER2 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER3":"OFF"} 00:00:05 MQT: stat/bugtest/POWER3 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER4":"OFF"} 00:00:05 MQT: stat/bugtest/POWER4 = OFF 00:00:07 APP: (UTC) Sun Dec 02 18:04:51 2018, (DST) Sun Mar 25 02:00:00 2018, (STD) Sun Oct 28 03:00:00 2018 19:04:52 HTP: Console
no interaction with web interface. made a restart. no relays were trigger during start up process
00:00:00 CFG: Loaded from flash at F4, Count 10265 00:00:00 APP: Boot Count 4971 00:00:00 SRC: Restart 00:00:00 Project sonoff Sonoff (Topic bugtest, Fallback DVES_A35EF6, GroupTopic sonoffs) Version 6.3.0-2_3_0 00:00:00 CFG: Saved to flash at FB, Count 10266, Bytes 3584 00:00:00 WIF: Checking connection... 00:00:00 WIF: Attempting connection... 00:00:00 WIF: Patch issue 2186 00:00:00 WIF: Connecting to AP1 NetXtreme in mode 11N as bugtest-7926... 00:00:01 WIF: Checking connection... 00:00:01 WIF: Attempting connection... 00:00:02 WIF: Checking connection... 00:00:02 WIF: Attempting connection... 00:00:03 WIF: Checking connection... 00:00:03 WIF: Attempting connection... 00:00:04 WIF: Checking connection... 00:00:04 WIF: Connected 00:00:04 DNS: Initialized 00:00:04 HTP: Web server active on bugtest-7926.local with IP address 10.0.1.30 00:00:05 MQT: Attempting connection... 00:00:05 MQT: Connected 00:00:05 MQT: tele/bugtest/LWT = Online (retained) 00:00:05 MQT: cmnd/bugtest/POWER = 00:00:05 MQT: Subscribe to cmnd/bugtest/# 00:00:05 MQT: Subscribe to cmnd/sonoffs/# 00:00:05 MQT: Subscribe to cmnd/DVES_A35EF6/# 00:00:05 MQT: tele/bugtest/INFO1 = {"Module":"Sonoff 4CH Pro","Version":"6.3.0","FallbackTopic":"DVES_A35EF6","GroupTopic":"sonoffs"} 00:00:05 MQT: tele/bugtest/INFO2 = {"WebServerMode":"Admin","Hostname":"bugtest-7926","IPAddress":"10.0.1.30"} 00:00:05 MQT: tele/bugtest/INFO3 = {"RestartReason":"Software/System restart"} 00:00:05 MQT: stat/bugtest/RESULT = {"POWER1":"OFF"} 00:00:05 MQT: stat/bugtest/POWER1 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER2":"OFF"} 00:00:05 MQT: stat/bugtest/POWER2 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER3":"OFF"} 00:00:05 MQT: stat/bugtest/POWER3 = OFF 00:00:06 MQT: stat/bugtest/RESULT = {"POWER4":"OFF"} 00:00:06 MQT: stat/bugtest/POWER4 = OFF 00:00:07 APP: (UTC) Sun Dec 02 18:06:03 2018, (DST) Sun Mar 25 02:00:00 2018, (STD) Sun Oct 28 03:00:00 2018 19:06:08 HTP: Main Menu 19:06:10 MQT: tele/bugtest/STATE = {"Time":"2018-12-02T19:06:10","Uptime":"0T00:00:14","Vcc":3.122,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","Wifi":{"AP":1,"SSId":"NetXtreme","BSSId":"14:CC:20:8E:C9:E6","Channel":11,"RSSI":68}} 19:06:10 HTP: Console
second restart with no interaction. no relays were trigger
00:00:00 CFG: Loaded from flash at FB, Count 10266 00:00:00 APP: Boot Count 4972 00:00:00 SRC: Restart 00:00:00 Project sonoff Sonoff (Topic bugtest, Fallback DVES_A35EF6, GroupTopic sonoffs) Version 6.3.0-2_3_0 00:00:00 CFG: Saved to flash at FA, Count 10267, Bytes 3584 00:00:00 WIF: Checking connection... 00:00:00 WIF: Attempting connection... 00:00:00 WIF: Patch issue 2186 00:00:00 WIF: Connecting to AP1 NetXtreme in mode 11N as bugtest-7926... 00:00:01 WIF: Checking connection... 00:00:01 WIF: Attempting connection... 00:00:02 WIF: Checking connection... 00:00:02 WIF: Attempting connection... 00:00:03 WIF: Checking connection... 00:00:03 WIF: Attempting connection... 00:00:04 WIF: Checking connection... 00:00:04 WIF: Connected 00:00:04 DNS: Initialized 00:00:04 HTP: Web server active on bugtest-7926.local with IP address 10.0.1.30 00:00:04 HTP: Main Menu 00:00:05 MQT: Attempting connection... 00:00:05 MQT: Connected 00:00:05 MQT: tele/bugtest/LWT = Online (retained) 00:00:05 MQT: cmnd/bugtest/POWER = 00:00:05 MQT: Subscribe to cmnd/bugtest/# 00:00:05 MQT: Subscribe to cmnd/sonoffs/# 00:00:05 MQT: Subscribe to cmnd/DVES_A35EF6/# 00:00:05 MQT: tele/bugtest/INFO1 = {"Module":"Sonoff 4CH Pro","Version":"6.3.0","FallbackTopic":"DVES_A35EF6","GroupTopic":"sonoffs"} 00:00:05 MQT: tele/bugtest/INFO2 = {"WebServerMode":"Admin","Hostname":"bugtest-7926","IPAddress":"10.0.1.30"} 00:00:05 MQT: tele/bugtest/INFO3 = {"RestartReason":"Software/System restart"} 00:00:05 MQT: stat/bugtest/RESULT = {"POWER1":"OFF"} 00:00:05 MQT: stat/bugtest/POWER1 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER2":"OFF"} 00:00:05 MQT: stat/bugtest/POWER2 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER3":"OFF"} 00:00:05 MQT: stat/bugtest/POWER3 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER4":"OFF"} 00:00:06 MQT: stat/bugtest/POWER4 = OFF 00:00:06 APP: (UTC) Sun Dec 02 18:07:12 2018, (DST) Sun Mar 25 02:00:00 2018, (STD) Sun Oct 28 03:00:00 2018 19:07:20 MQT: tele/bugtest/STATE = {"Time":"2018-12-02T19:07:20","Uptime":"0T00:00:14","Vcc":3.122,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","Wifi":{"AP":1,"SSId":"NetXtreme","BSSId":"14:CC:20:8E:C9:E6","Channel":11,"RSSI":72}} 19:07:30 WIF: Checking connection... 19:07:30 WIF: Connected 19:07:33 HTP: Console
Relay 2 activated via tasmota web interface. on for 10 seconds then auto off. as expected
logs
19:07:20 MQT: tele/bugtest/STATE = {"Time":"2018-12-02T19:07:20","Uptime":"0T00:00:14","Vcc":3.122,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","Wifi":{"AP":1,"SSId":"NetXtreme","BSSId":"14:CC:20:8E:C9:E6","Channel":11,"RSSI":72}} 19:07:30 WIF: Checking connection... 19:07:30 WIF: Connected 19:07:33 HTP: Console 19:07:43 HTP: Main Menu 19:07:47 SRC: WebGui from 10.0.1.109 19:07:47 MQT: stat/bugtest/RESULT = {"POWER2":"ON"} 19:07:47 MQT: stat/bugtest/POWER2 = ON 19:07:47 CFG: Saved to flash at F9, Count 10268, Bytes 3584 19:07:50 WIF: Checking connection... 19:07:50 WIF: Connected 19:07:57 APP: Button2 level 1-0 19:07:57 SRC: Button 19:07:57 MQT: stat/bugtest/RESULT = {"POWER2":"OFF"} 19:07:57 MQT: stat/bugtest/POWER2 = OFF 19:07:58 CFG: Saved to flash at F8, Count 10269, Bytes 3584 19:08:10 WIF: Checking connection... 19:08:10 WIF: Connected 19:08:24 HTP: Console 19:08:30 WIF: Checking connection... 19:08:30 WIF: Connected 19:08:50 WIF: Checking connection... 19:08:50 WIF: Connected
perform a restart via web interface
relay 2 was trigger during boot proccess.
00:00:00 CFG: Loaded from flash at F8, Count 10269 00:00:00 APP: Boot Count 4973 00:00:00 SRC: Restart 00:00:00 Project sonoff Sonoff (Topic bugtest, Fallback DVES_A35EF6, GroupTopic sonoffs) Version 6.3.0-2_3_0 00:00:00 APP: Button2 level 1-0 00:00:00 SRC: Button 00:00:00 RSL: stat/bugtest/RESULT = {"POWER2":"ON"} 00:00:00 RSL: stat/bugtest/POWER2 = ON 00:00:00 CFG: Saved to flash at F7, Count 10270, Bytes 3584 00:00:00 WIF: Checking connection... 00:00:00 WIF: Attempting connection... 00:00:00 WIF: Patch issue 2186 00:00:00 WIF: Connecting to AP1 NetXtreme in mode 11N as bugtest-7926... 00:00:01 WIF: Checking connection... 00:00:01 WIF: Attempting connection... 00:00:02 WIF: Checking connection... 00:00:02 WIF: Attempting connection... 00:00:03 WIF: Checking connection... 00:00:03 WIF: Attempting connection... 00:00:04 WIF: Checking connection... 00:00:04 WIF: Connected 00:00:04 DNS: Initialized 00:00:04 HTP: Web server active on bugtest-7926.local with IP address 10.0.1.30 00:00:05 MQT: Attempting connection... 00:00:05 MQT: Connected 00:00:05 MQT: tele/bugtest/LWT = Online (retained) 00:00:05 MQT: cmnd/bugtest/POWER = 00:00:05 MQT: Subscribe to cmnd/bugtest/# 00:00:05 MQT: Subscribe to cmnd/sonoffs/# 00:00:05 MQT: Subscribe to cmnd/DVES_A35EF6/# 00:00:05 MQT: tele/bugtest/INFO1 = {"Module":"Sonoff 4CH Pro","Version":"6.3.0","FallbackTopic":"DVES_A35EF6","GroupTopic":"sonoffs"} 00:00:05 MQT: tele/bugtest/INFO2 = {"WebServerMode":"Admin","Hostname":"bugtest-7926","IPAddress":"10.0.1.30"} 00:00:05 MQT: tele/bugtest/INFO3 = {"RestartReason":"Software/System restart"} 00:00:05 MQT: stat/bugtest/RESULT = {"POWER1":"OFF"} 00:00:05 MQT: stat/bugtest/POWER1 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER2":"ON"} 00:00:05 MQT: stat/bugtest/POWER2 = ON 00:00:05 MQT: stat/bugtest/RESULT = {"POWER3":"OFF"} 00:00:05 MQT: stat/bugtest/POWER3 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER4":"OFF"} 00:00:05 MQT: stat/bugtest/POWER4 = OFF 00:00:07 APP: (UTC) Sun Dec 02 18:10:14 2018, (DST) Sun Mar 25 02:00:00 2018, (STD) Sun Oct 28 03:00:00 2018 19:10:17 APP: Button2 level 0-1 19:10:17 SRC: Button 19:10:17 MQT: stat/bugtest/RESULT = {"POWER2":"OFF"} 19:10:17 MQT: stat/bugtest/POWER2 = OFF 19:10:18 CFG: Saved to flash at F6, Count 10271, Bytes 3584 19:10:21 MQT: tele/bugtest/STATE = {"Time":"2018-12-02T19:10:21","Uptime":"0T00:00:14","Vcc":3.122,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","Wifi":{"AP":1,"SSId":"NetXtreme","BSSId":"14:CC:20:8E:C9:E6","Channel":11,"RSSI":74}} 19:10:26 HTP: Main Menu 19:10:28 HTP: Console
second restart performed without activacting anything on web interface. normal boot proccess, no relays were trigger
00:00:00 CFG: Loaded from flash at F5, Count 10272 00:00:00 APP: Boot Count 4975 00:00:00 SRC: Restart 00:00:00 Project sonoff Sonoff (Topic bugtest, Fallback DVES_A35EF6, GroupTopic sonoffs) Version 6.3.0-2_3_0 00:00:00 CFG: Saved to flash at F4, Count 10273, Bytes 3584 00:00:00 WIF: Checking connection... 00:00:00 WIF: Attempting connection... 00:00:00 WIF: Patch issue 2186 00:00:00 WIF: Connecting to AP1 NetXtreme in mode 11N as bugtest-7926... 00:00:01 WIF: Checking connection... 00:00:01 WIF: Attempting connection... 00:00:02 WIF: Checking connection... 00:00:02 WIF: Attempting connection... 00:00:03 WIF: Checking connection... 00:00:03 WIF: Attempting connection... 00:00:04 WIF: Checking connection... 00:00:04 WIF: Connected 00:00:04 DNS: Initialized 00:00:04 HTP: Web server active on bugtest-7926.local with IP address 10.0.1.30 00:00:05 MQT: Attempting connection... 00:00:05 MQT: Connected 00:00:05 MQT: tele/bugtest/LWT = Online (retained) 00:00:05 MQT: cmnd/bugtest/POWER = 00:00:05 MQT: Subscribe to cmnd/bugtest/# 00:00:05 MQT: Subscribe to cmnd/sonoffs/# 00:00:05 MQT: Subscribe to cmnd/DVES_A35EF6/# 00:00:05 MQT: tele/bugtest/INFO1 = {"Module":"Sonoff 4CH Pro","Version":"6.3.0","FallbackTopic":"DVES_A35EF6","GroupTopic":"sonoffs"} 00:00:05 MQT: tele/bugtest/INFO2 = {"WebServerMode":"Admin","Hostname":"bugtest-7926","IPAddress":"10.0.1.30"} 00:00:05 MQT: tele/bugtest/INFO3 = {"RestartReason":"Software/System restart"} 00:00:05 MQT: stat/bugtest/RESULT = {"POWER1":"OFF"} 00:00:05 MQT: stat/bugtest/POWER1 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER2":"OFF"} 00:00:05 MQT: stat/bugtest/POWER2 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER3":"OFF"} 00:00:05 MQT: stat/bugtest/POWER3 = OFF 00:00:05 MQT: stat/bugtest/RESULT = {"POWER4":"OFF"} 00:00:05 MQT: stat/bugtest/POWER4 = OFF 00:00:06 APP: (UTC) Sun Dec 02 18:11:47 2018, (DST) Sun Mar 25 02:00:00 2018, (STD) Sun Oct 28 03:00:00 2018 19:11:55 MQT: tele/bugtest/STATE = {"Time":"2018-12-02T19:11:54","Uptime":"0T00:00:14","Vcc":3.122,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","Wifi":{"AP":1,"SSId":"NetXtreme","BSSId":"14:CC:20:8E:C9:E6","Channel":11,"RSSI":72}} 19:12:02 HTP: Main Menu 19:12:05 WIF: Checking connection... 19:12:05 WIF: Connected 19:12:26 WIF: Checking connection... 19:12:26 WIF: Connected 19:12:46 WIF: Checking connection... 19:12:46 WIF: Connected 19:12:49 HTP: Console
now activate on tasmota web interface relay control 3, works ok.
19:13:06 WIF: Connected 19:13:26 WIF: Checking connection... 19:13:26 WIF: Connected 19:13:41 SRC: WebGui from 10.0.1.109 19:13:41 MQT: stat/bugtest/RESULT = {"POWER3":"ON"} 19:13:41 MQT: stat/bugtest/POWER3 = ON 19:13:41 CFG: Saved to flash at FB, Count 10274, Bytes 3584 19:13:42 HTP: Console 19:13:46 WIF: Checking connection... 19:13:46 WIF: Connected 19:13:51 APP: Button3 level 1-0 19:13:51 SRC: Button 19:13:51 MQT: stat/bugtest/RESULT = {"POWER3":"OFF"} 19:13:51 MQT: stat/bugtest/POWER3 = OFF 19:13:52 CFG: Saved to flash at FA, Count 10275, Bytes 3584
perform a restart via web interface, and relays 3 turn on during boot proccess
00:00:00 CFG: Loaded from flash at FA, Count 10275 00:00:00 APP: Boot Count 4976 00:00:00 SRC: Restart 00:00:00 Project sonoff Sonoff (Topic bugtest, Fallback DVES_A35EF6, GroupTopic sonoffs) Version 6.3.0-2_3_0 00:00:00 APP: Button3 level 1-0 00:00:00 SRC: Button 00:00:00 RSL: stat/bugtest/RESULT = {"POWER3":"ON"} 00:00:00 RSL: stat/bugtest/POWER3 = ON 00:00:00 CFG: Saved to flash at F9, Count 10276, Bytes 3584 00:00:00 WIF: Checking connection... 00:00:00 WIF: Attempting connection... 00:00:00 WIF: Patch issue 2186 00:00:00 WIF: Connecting to AP1 NetXtreme in mode 11N as bugtest-7926... 00:00:01 WIF: Checking connection... 00:00:01 WIF: Attempting connection... 00:00:02 WIF: Checking connection... 00:00:02 WIF: Attempting connection... 00:00:03 WIF: Checking connection... 00:00:03 WIF: Attempting connection... 00:00:04 WIF: Checking connection... 00:00:04 WIF: Attempting connection... 00:00:05 WIF: Checking connection... 00:00:05 WIF: Attempting connection... 00:00:06 WIF: Checking connection... 00:00:06 WIF: Connected 00:00:06 DNS: Initialized 00:00:06 HTP: Web server active on bugtest-7926.local with IP address 10.0.1.30 00:00:06 MQT: Attempting connection... 00:00:06 MQT: Connected 00:00:06 MQT: tele/bugtest/LWT = Online (retained) 00:00:06 MQT: cmnd/bugtest/POWER = 00:00:06 MQT: Subscribe to cmnd/bugtest/# 00:00:06 MQT: Subscribe to cmnd/sonoffs/# 00:00:06 MQT: Subscribe to cmnd/DVES_A35EF6/# 00:00:06 MQT: tele/bugtest/INFO1 = {"Module":"Sonoff 4CH Pro","Version":"6.3.0","FallbackTopic":"DVES_A35EF6","GroupTopic":"sonoffs"} 00:00:06 MQT: tele/bugtest/INFO2 = {"WebServerMode":"Admin","Hostname":"bugtest-7926","IPAddress":"10.0.1.30"} 00:00:06 MQT: tele/bugtest/INFO3 = {"RestartReason":"Software/System restart"} 00:00:06 MQT: stat/bugtest/RESULT = {"POWER1":"OFF"} 00:00:06 MQT: stat/bugtest/POWER1 = OFF 00:00:06 MQT: stat/bugtest/RESULT = {"POWER2":"OFF"} 00:00:06 MQT: stat/bugtest/POWER2 = OFF 00:00:06 MQT: stat/bugtest/RESULT = {"POWER3":"ON"} 00:00:06 MQT: stat/bugtest/POWER3 = ON 00:00:06 MQT: stat/bugtest/RESULT = {"POWER4":"OFF"} 00:00:07 MQT: stat/bugtest/POWER4 = OFF 00:00:07 APP: (UTC) Sun Dec 02 18:14:39 2018, (DST) Sun Mar 25 02:00:00 2018, (STD) Sun Oct 28 03:00:00 2018 19:14:42 APP: Button3 level 0-1 19:14:42 SRC: Button 19:14:42 MQT: stat/bugtest/RESULT = {"POWER3":"OFF"} 19:14:42 MQT: stat/bugtest/POWER3 = OFF 19:14:43 HTP: Main Menu 19:14:43 CFG: Saved to flash at F8, Count 10277, Bytes 3584 19:14:47 MQT: tele/bugtest/STATE = {"Time":"2018-12-02T19:14:47","Uptime":"0T00:00:15","Vcc":3.122,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","Wifi":{"AP":1,"SSId":"NetXtreme","BSSId":"14:CC:20:8E:C9:E6","Channel":11,"RSSI":72}} 19:14:54 HTP: Console
Thanks a lot for your testings.
If you set the hardware inching mode, Tasmota will never now that. The hardware inching mode is controlled by another mcu. That is why Jason told you to use the recommend config of the wiki. Any other config will do this type of issues.
Sorry, you need to set the internal dip switches as Jason and the wiki states.
ok. any suggestions to make the relays auto off after 10 seconds of operations ? or how to create a pulse of 2 seconds ?
i don't want to relay on homeassistant scripts or mqtt brokers since network some time may be unreliable
See pulsetime command in the wiki
Have you managed to solve your issue?
yeah. i change the dip switches as the suggestion For normal operation with Tasmota the following settings are recommended: S6: 1 K5: all 1 K6: all 0 (0 and 1 are printed onto the board next to the switch names)
the configure the pulsetime 22:51:09 RSL: Received Topic /pulsetime, Data Size 0, Data 22:51:09 RSL: Group 0, Index 1, Command PULSETIME, Data 22:51:09 MQT: stat/bugtest/RESULT = {"PulseTime1":"112 (Active 0)"}
that worked and solve the problem. no more relay trigger during boot proccess. Thanks
The problem is that during restart of the sonoff 4ch pro R2, the relays are turned on during the boot process. that is causing unwanted behavior with the garage door. Searched in the forums and find similar cases that were left behind, no more feedbacks from the users.
[ x] Searched the problem in issues (https://github.com/arendst/Sonoff-Tasmota/issues)
[x ] Searched the problem in the wiki (https://github.com/arendst/Sonoff-Tasmota/wiki/Troubleshooting)
[x ] Searched the problem in the forum (https://groups.google.com/d/forum/sonoffusers) find similar problems on forums, related to mqtt broker and HA, remove HA configurations, create a new mqtt topic. using only web tasmota interface and the problem still perssits.
[x ] Searched the problem in the chat (https://discord.gg/Ks2Kzd4) found info about ghost switches. never experience this. only during reboot proceess.
[ x] Development/Compiler/Upload tools used : Atom Platfornio espressif8266 @ 1.7.0
[x ] Hardware used : Sonoff 4ch pro R2
[x] If a pre-compiled release or development binary was used, which one? : Version 6.3.0.15(f3d625d-sonoff)-2_3_0
[x] You have tried latest release or development binaries? : yes, same problem
[x ] Provide the output of command
status 0
:New version installed, new mqtt topic created, first boot logs. all normal, no relays triggered in boot proccess, no hard button pressed, only via web interface
00:00:00 CFG: Loaded from flash at FB, Count 2266 00:00:00 CFG: Saved to flash at FB, Count 2267, Bytes 3584 00:00:00 Project sonoff Sonoffgg1 (Topic sonoffgg1dgsdgsdgsdgds, Fallback DVES_A35958, GroupTopic sonoffs) Version 6.3.0.15(f3d625d-sonoff)-2_3_0 00:00:00 WIF: Checking connection... 00:00:00 WIF: Attempting connection... 00:00:00 WIF: Patch issue 2186 00:00:00 WIF: Connecting to AP1 NetXtreme in mode 11N as sonoffgg1dgsdgsdgsdgds-6488... 00:00:01 WIF: Checking connection... 00:00:01 WIF: Attempting connection... 00:00:02 WIF: Checking connection... 00:00:02 WIF: Attempting connection... 00:00:03 WIF: Checking connection... 00:00:03 WIF: Attempting connection... 00:00:04 WIF: Checking connection... 00:00:04 WIF: Connected 00:00:04 DNS: Initialized 00:00:04 HTP: Web server active on sonoffgg1dgsdgsdgsdgds-6488.local with IP address 10.0.1.29 00:00:05 CFG: Saved to flash at FA, Count 2268, Bytes 3584 00:00:05 MQT: Attempting connection... 00:00:05 MQT: Connected 00:00:05 MQT: tele/sonoffgg1dgsdgsdgsdgds/LWT = Online (retained) 00:00:05 MQT: cmnd/sonoffgg1dgsdgsdgsdgds/POWER = 00:00:05 MQT: Subscribe to cmnd/sonoffgg1dgsdgsdgsdgds/# 00:00:05 MQT: Subscribe to cmnd/sonoffs/# 00:00:05 MQT: Subscribe to cmnd/DVES_A35958/# 00:00:05 MQT: tele/sonoffgg1dgsdgsdgsdgds/INFO1 = {"Module":"Sonoff 4CH Pro","Version":"6.3.0.15(f3d625d-sonoff)","FallbackTopic":"DVES_A35958","GroupTopic":"sonoffs"} 00:00:06 MQT: tele/sonoffgg1dgsdgsdgsdgds/INFO2 = {"WebServerMode":"Admin","Hostname":"sonoffgg1dgsdgsdgsdgds-6488","IPAddress":"10.0.1.29"} 00:00:06 MQT: tele/sonoffgg1dgsdgsdgsdgds/INFO3 = {"RestartReason":"Software/System restart"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER1":"OFF"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER1 = OFF 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER2":"OFF"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER2 = OFF 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER3":"OFF"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER3 = OFF 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER4":"OFF"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER4 = OFF 00:00:06 APP: (UTC) Sun Dec 02 13:30:22 2018, (DST) Sun Mar 25 02:00:00 2018, (STD) Sun Oct 28 03:00:00 2018 14:30:23 CFG: Saved to flash at F9, Count 2269, Bytes 3584 14:30:26 APP: Boot Count 547 14:30:26 CFG: Saved to flash at F8, Count 2270, Bytes 3584 14:30:27 HTP: Main Menu 14:30:30 MQT: tele/sonoffgg1dgsdgsdgsdgds/STATE = {"Time":"2018-12-02T14:30:30","Uptime":"0T00:00:14","Vcc":3.196,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","Wifi":{"AP":1,"SSId":"NetXtreme","BSSId":"14:CC:20:8E:C9:E6","Channel":11,"RSSI":100}} 14:30:35 HTP: Configuration 14:30:37 HTP: Configure Module 14:30:40 HTP: Configuration 14:30:40 WIF: Checking connection... 14:30:40 WIF: Connected 14:30:43 HTP: Main Menu 14:30:44 HTP: Console 14:31:00 WIF: Checking connection... 14:31:00 WIF: Connected
in tasmota web interface, activate button 4 to trigger the relay
14:31:50 HTP: Main Menu 14:31:51 SRC: WebGui from 10.0.1.109 14:31:51 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER4":"ON"} 14:31:51 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER4 = ON 14:31:52 APP: Button4 level 1-0 14:31:52 SRC: Button 14:31:52 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER4":"OFF"} 14:31:52 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER4 = OFF 14:32:00 WIF: Checking connection... 14:32:00 WIF: Connected 14:32:10 HTP: Console
you can see in the logs the auto off that is setting in hardware, inching mode. all normal until now. i made a system restart and the 4 relay is triggered again during the boot process.
second boot logs relay 4 triggered (unwanted)
00:00:00 CFG: Loaded from flash at F8, Count 2270 00:00:00 Project sonoff Sonoffgg1 (Topic sonoffgg1dgsdgsdgsdgds, Fallback DVES_A35958, GroupTopic sonoffs) Version 6.3.0.15(f3d625d-sonoff)-2_3_0 00:00:00 APP: Button4 level 1-0 00:00:00 SRC: Button 00:00:00 RSL: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER4":"ON"} 00:00:00 RSL: stat/sonoffgg1dgsdgsdgsdgds/POWER4 = ON 00:00:00 WIF: Checking connection... 00:00:00 WIF: Attempting connection... 00:00:00 WIF: Patch issue 2186 00:00:00 WIF: Connecting to AP1 NetXtreme in mode 11N as sonoffgg1dgsdgsdgsdgds-6488... 00:00:01 WIF: Checking connection... 00:00:01 WIF: Attempting connection... 00:00:01 APP: Button4 level 0-1 00:00:01 APP: Button4 level 1-0 00:00:01 SRC: Button 00:00:01 RSL: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER4":"OFF"} 00:00:01 RSL: stat/sonoffgg1dgsdgsdgsdgds/POWER4 = OFF 00:00:02 WIF: Checking connection... 00:00:02 WIF: Attempting connection... 00:00:03 WIF: Checking connection... 00:00:03 WIF: Attempting connection... 00:00:04 WIF: Checking connection... 00:00:04 WIF: Connected 00:00:04 DNS: Initialized 00:00:04 HTP: Web server active on sonoffgg1dgsdgsdgsdgds-6488.local with IP address 10.0.1.29 00:00:05 HTP: Main Menu 00:00:05 MQT: Attempting connection... 00:00:05 MQT: Connected 00:00:05 MQT: tele/sonoffgg1dgsdgsdgsdgds/LWT = Online (retained) 00:00:05 MQT: cmnd/sonoffgg1dgsdgsdgsdgds/POWER = 00:00:05 MQT: Subscribe to cmnd/sonoffgg1dgsdgsdgsdgds/# 00:00:05 MQT: Subscribe to cmnd/sonoffs/# 00:00:05 MQT: Subscribe to cmnd/DVES_A35958/# 00:00:05 MQT: tele/sonoffgg1dgsdgsdgsdgds/INFO1 = {"Module":"Sonoff 4CH Pro","Version":"6.3.0.15(f3d625d-sonoff)","FallbackTopic":"DVES_A35958","GroupTopic":"sonoffs"} 00:00:05 MQT: tele/sonoffgg1dgsdgsdgsdgds/INFO2 = {"WebServerMode":"Admin","Hostname":"sonoffgg1dgsdgsdgsdgds-6488","IPAddress":"10.0.1.29"} 00:00:06 MQT: tele/sonoffgg1dgsdgsdgsdgds/INFO3 = {"RestartReason":"Software/System restart"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER1":"OFF"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER1 = OFF 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER2":"OFF"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER2 = OFF 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER3":"OFF"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER3 = OFF 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER4":"OFF"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER4 = OFF 00:00:06 APP: (UTC) Sun Dec 02 13:32:38 2018, (DST) Sun Mar 25 02:00:00 2018, (STD) Sun Oct 28 03:00:00 2018 14:32:40 HTP: Console 14:32:42 APP: Boot Count 548 14:32:42 CFG: Saved to flash at F7, Count 2271, Bytes 3584 14:32:46 MQT: tele/sonoffgg1dgsdgsdgsdgds/STATE = {"Time":"2018-12-02T14:32:46","Uptime":"0T00:00:14","Vcc":3.196,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","Wifi":{"AP":1,"SSId":"NetXtreme","BSSId":"14:CC:20:8E:C9:E6","Channel":11,"RSSI":100}}
made a third reboot and same problem.
00:00:00 CFG: Loaded from flash at F6, Count 2272 00:00:00 Project sonoff Sonoffgg1 (Topic sonoffgg1dgsdgsdgsdgds, Fallback DVES_A35958, GroupTopic sonoffs) Version 6.3.0.15(f3d625d-sonoff)-2_3_0 00:00:00 APP: Button4 level 1-0 00:00:00 SRC: Button 00:00:00 RSL: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER4":"ON"} 00:00:00 RSL: stat/sonoffgg1dgsdgsdgsdgds/POWER4 = ON 00:00:00 WIF: Checking connection... 00:00:00 WIF: Attempting connection... 00:00:00 WIF: Patch issue 2186 00:00:00 WIF: Connecting to AP1 NetXtreme in mode 11N as sonoffgg1dgsdgsdgsdgds-6488... 00:00:01 WIF: Checking connection... 00:00:01 WIF: Attempting connection... 00:00:01 APP: Button4 level 0-1 00:00:01 APP: Button4 level 1-0 00:00:01 SRC: Button 00:00:01 RSL: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER4":"OFF"} 00:00:01 RSL: stat/sonoffgg1dgsdgsdgsdgds/POWER4 = OFF 00:00:02 WIF: Checking connection... 00:00:02 WIF: Attempting connection... 00:00:03 WIF: Checking connection... 00:00:03 WIF: Attempting connection... 00:00:04 WIF: Checking connection... 00:00:04 WIF: Connected 00:00:04 DNS: Initialized 00:00:04 HTP: Web server active on sonoffgg1dgsdgsdgsdgds-6488.local with IP address 10.0.1.29 00:00:05 HTP: Main Menu 00:00:05 MQT: Attempting connection... 00:00:05 MQT: Connected 00:00:05 MQT: tele/sonoffgg1dgsdgsdgsdgds/LWT = Online (retained) 00:00:05 MQT: cmnd/sonoffgg1dgsdgsdgsdgds/POWER = 00:00:05 MQT: Subscribe to cmnd/sonoffgg1dgsdgsdgsdgds/# 00:00:05 MQT: Subscribe to cmnd/sonoffs/# 00:00:05 MQT: Subscribe to cmnd/DVES_A35958/# 00:00:06 MQT: tele/sonoffgg1dgsdgsdgsdgds/INFO1 = {"Module":"Sonoff 4CH Pro","Version":"6.3.0.15(f3d625d-sonoff)","FallbackTopic":"DVES_A35958","GroupTopic":"sonoffs"} 00:00:06 MQT: tele/sonoffgg1dgsdgsdgsdgds/INFO2 = {"WebServerMode":"Admin","Hostname":"sonoffgg1dgsdgsdgsdgds-6488","IPAddress":"10.0.1.29"} 00:00:06 MQT: tele/sonoffgg1dgsdgsdgsdgds/INFO3 = {"RestartReason":"Software/System restart"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER1":"OFF"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER1 = OFF 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER2":"OFF"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER2 = OFF 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER3":"OFF"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER3 = OFF 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/RESULT = {"POWER4":"OFF"} 00:00:06 MQT: stat/sonoffgg1dgsdgsdgsdgds/POWER4 = OFF 00:00:07 APP: (UTC) Sun Dec 02 13:35:22 2018, (DST) Sun Mar 25 02:00:00 2018, (STD) Sun Oct 28 03:00:00 2018 14:35:23 HTP: Console 14:35:25 APP: Boot Count 550 14:35:25 CFG: Saved to flash at F5, Count 2273, Bytes 3584
if you create a new topic and don't activate relay the reboot proccess is normal. no relays are turning on. Also read about ghost switches, but i only have this unwanted trigger during a restart or a wifi network down. i change my wifi equipments 3 days ago, thats is when I found the problem. tastmota 4ch was restarting in loop looking for a wifi network. every reboot triggerd the relay4 opening and closing the garage. i have 7 more tasmota units in my house, including a 4ch (not the pro version). only the 4ch pro R2 version witch inching hardware settings experience this behavior