arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.2k stars 4.81k forks source link

Sonoff SC Sensors not available anymore Webgui/MQTT/Status 8 #5005

Closed WaaromZoMoeilijk closed 5 years ago

WaaromZoMoeilijk commented 5 years ago

Make sure these boxes are checked [x] before submitting your issue - Thank you!

Status 8 should give me the info, but only reports time:

19:19:48 CMD: status 8
19:19:48 SRC: WebConsole from 192.168.3.3
19:19:48 RSL: Received Topic /status, Data Size 1, Data 8
19:19:48 RSL: Group 0, Index 1, Command STATUS, Data 8
19:19:48 MQT: sonoffsc/stat/STATUS8 = {"StatusSNS":{"Time":"2019-01-22T19:19:48"}}

This all did not happen after an upgrade or anything, just was gone, rebooting, reflashing etc etc doesnt work. Some more info:

19:21:26 CMD: I2Cscan
19:21:26 SRC: WebConsole from 192.168.3.3
19:21:26 RSL: Received Topic /I2Cscan, Data Size 0, Data 
19:21:26 RSL: Group 0, Index 1, Command I2CSCAN, Data 
19:21:26 MQT: sonoffsc/stat/RESULT = {"Command":"Unknown"}
19:21:45 CMD: Gpio
19:21:45 SRC: WebConsole from 192.168.3.3
19:21:45 RSL: Received Topic /Gpio, Data Size 0, Data 
19:21:45 RSL: Group 0, Index 1, Command GPIO, Data 
19:21:45 MQT: sonoffsc/stat/RESULT = {"GPIO2":"0 (None)"}
19:21:59 CMD: gpios
19:21:59 SRC: WebConsole from 192.168.3.3
19:21:59 RSL: Received Topic /gpios, Data Size 0, Data 
19:21:59 RSL: Group 0, Index 1, Command GPIOS, Data 
19:21:59 MQT: sonoffsc/stat/RESULT = {"GPIOs1":["0 (None)","18 (Button2)","91 (Button2n)","19 (Button3)","92 (Button3n)","20 (Button4)","93 (Button4n)","9 (Switch1)","82 (Switch1n)","10 (Switch2)","83 (Switch2n)","11 (Switch3)","84 (Switch3n)","12 (Switch4)","85 (Switch4n)","13 (Switch5)","86 (Switch5n)","14 (Switch6)","87 (Switch6n)","15 (Switch7)","88 (Switch7n)","16 (Switch8)","89 (Switch8n)","21 (Relay1)","29 (Relay1i)","22 (Relay2)","30 (Relay2i)","23 (Relay3)"]}
19:21:59 MQT: sonoffsc/stat/RESULT = {"GPIOs2":["31 (Relay3i)","24 (Relay4)","32 (Relay4i)","25 (Relay5)","33 (Relay5i)","26 (Relay6)","34 (Relay6i)","27 (Relay7)","35 (Relay7i)","28 (Relay8)","36 (Relay8i)","53 (Led2)","57 (Led2i)","54 (Led3)","58 (Led3i)","55 (Led4)","59 (Led4i)","37 (PWM1)","46 (PWM1i)","38 (PWM2)","47 (PWM2i)","39 (PWM3)","48 (PWM3i)","40 (PWM4)","49 (PWM4i)","41 (PWM5)","50 (PWM5i)","42 (Counter1)","94 (Counter1n)","43 (Counter2)","95 (Counter2n)"]}
19:21:59 MQT: sonoffsc/stat/RESULT = {"GPIOs3":["44 (Counter3)","96 (Counter3n)","45 (Counter4)","97 (Counter4n)","5 (I2C SCL)","6 (I2C SDA)","1 (DHT11)","2 (AM2301)","3 (SI7021)","4 (DS18x20)","7 (WS2812)","8 (IRsend)","51 (IRrecv)","105 (RFSend)","106 (RFrecv)","116 (RF Sensor)","73 (SR04 Tri)","74 (SR04 Ech)","79 (TM16 CLK)","80 (TM16 DIO)","81 (TM16 STB)","102 (HX711 SCK)","103 (HX711 DAT)","71 (SerBr Tx)","72 (SerBr Rx)","60 (MHZ Tx)","61 (MHZ Rx)","64 (SAir Tx)"]}
19:22:00 MQT: sonoffsc/stat/RESULT = {"GPIOs4":["65 (SAir Rx)","101 (SDS0X1 Tx)","70 (SDS0X1 Rx)","62 (PZEM0XX Tx)","63 (PZEM004 Rx)","98 (PZEM016 Rx)","99 (PZEM017 Rx)","75 (SDM120/220 Tx)","76 (SDM120/220 Rx)","77 (SDM630 Tx)","78 (SDM630 Rx)","69 (PMS5003)","104 (TX20)","100 (MP3 Player)","107 (Tuya Tx)","108 (Tuya Rx)"]}
arendst commented 5 years ago

No problem at all:

00:00:00 CFG: Loaded from flash at FB, Count 308
00:00:00 CFG: Saved to flash at FB, Count 309, Bytes 3584
00:00:00 SRC: Restart
00:00:00 Project sonoff Sc Version 6.5.0.16(sonoff)-2_4_2
00:00:00 SER: Transmit AT+START
00:00:00 WIF: Checking connection...
00:00:00 WIF: Attempting connection...
00:00:00 WIF: Connecting to AP2 indebuurt2 in mode 11N as sc...
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:02 SER: Received AT+UPDATE="humidity":95,"temperature":23,"light":9,"noise":2,"dusty":1
00:00:02 SER: Transmit AT+SEND=ok
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 HTP: Web server active on sc with IP address 192.168.2.195
14:07:59 APP: (UTC) Wed Jun 19 12:07:59 2019, (DST) Sun Mar 31 02:00:00 2019, (STD) Sun Oct 27 03:00:00 2019
14:08:00 MQT: Attempting connection...
14:08:00 MQT: Connected
14:08:00 MQT: tele/sc/LWT = Online (retained)
14:08:00 MQT: cmnd/sc/POWER = 
14:08:00 MQT: Subscribe to cmnd/sc/#
14:08:00 MQT: Subscribe to cmnd/sonoffs/#
14:08:00 MQT: Subscribe to cmnd/DVES_F8B22E_fb/#
14:08:00 MQT: tele/sc/INFO1 = {"Module":"Sonoff SC","Version":"6.5.0.16(sonoff)","FallbackTopic":"cmnd/DVES_F8B22E_fb/","GroupTopic":"sonoffs"}
14:08:00 MQT: tele/sc/INFO2 = {"WebServerMode":"Admin","Hostname":"sc","IPAddress":"192.168.2.195"}
14:08:00 MQT: tele/sc/INFO3 = {"RestartReason":"Software/System restart"}
14:08:01 HTP: Main Menu
14:08:02 APP: Boot Count 125
14:08:02 CFG: Saved to flash at FA, Count 310, Bytes 3584
14:08:04 SER: Received AT+STATUS?
14:08:04 SER: Transmit AT+STATUS=4
14:08:04 HTP: Console
14:08:08 MQT: tele/sc/STATE = {"Time":"2019-06-19T14:08:08","Uptime":"0T00:00:16","SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"Wifi":{"AP":2,"SSId":"indebuurt2","BSSId":"A0:AB:1B:7D:42:AC","Channel":5,"RSSI":100,"LinkCount":1,"Downtime":"0T00:00:06"}}
14:08:08 MQT: tele/sc/SENSOR = {"Time":"2019-06-19T14:08:08","SonoffSC":{"Temperature":23,"Humidity":95,"Light":20,"Noise":20,"AirQuality":100},"TempUnit":"C"}
14:08:14 SER: Received AT+STATUS?
14:08:14 SER: Transmit AT+STATUS=4
14:08:18 SER: Received AT+UPDATE="humidity":82,"temperature":23,"light":9,"noise":2,"dusty":1
14:08:18 SER: Transmit AT+SEND=ok
14:08:18 WIF: Checking connection...
14:08:18 WIF: Connected
14:08:22 SER: Received AT+UPDATE="humidity":76,"temperature":23,"light":9,"noise":2,"dusty":1
14:08:22 SER: Transmit AT+SEND=ok
14:08:28 SER: Received AT+UPDATE="humidity":85,"temperature":23,"light":9,"noise":2,"dusty":1
14:08:28 SER: Transmit AT+SEND=ok
14:08:32 SER: Received AT+UPDATE="humidity":90,"temperature":23,"light":9,"noise":2,"dusty":1
14:08:32 SER: Transmit AT+SEND=ok
14:08:36 SER: Received AT+UPDATE="humidity":87,"temperature":23,"light":9,"noise":2,"dusty":1
14:08:36 SER: Transmit AT+SEND=ok
14:08:38 WIF: Checking connection...
14:08:38 WIF: Connected
14:08:40 SER: Received AT+UPDATE="humidity":77,"temperature":23,"light":9,"noise":2,"dusty":1
14:08:40 SER: Transmit AT+SEND=ok
14:08:46 SER: Received AT+UPDATE="humidity":82,"temperature":23,"light":9,"noise":2,"dusty":1
14:08:46 SER: Transmit AT+SEND=ok
14:08:50 SER: Received AT+UPDATE="humidity":92,"temperature":23,"light":9,"noise":2,"dusty":1
14:08:50 SER: Transmit AT+SEND=ok
14:08:56 SER: Received AT+UPDATE="humidity":80,"temperature":23,"light":9,"noise":2,"dusty":1
14:08:56 SER: Transmit AT+SEND=ok
DasUrmel commented 4 years ago

I know this is an old issue.... but I stumpled into this today as well.

A fatal error occurred: ESP8266 ROM does not support function erase_flash.

After switching from Ubuntu 16.04 to Mint 19.2 I realized I couldn't erase my flash of an ESP8266 any more. It took my almost two hours to realise the provided esptool from Mint is Version 2.1 while the most current version on github is 2.8!

So... "apt remove esptool", "apt install pip; pip install setuptools wheel pyaes esptool" - voila! I can use "erase_flash" again.

I hope this helps someone.

Thorsten