Closed thomas-lentz closed 5 years ago
The Tasmota device does not recognise the deepsleep command.
status 0
22:48:11 CMD: status 0 22:48:11 RSL: stat/sonoff/STATUS = {"Status":{"Module":1,"FriendlyName":["Sonoff"],"Topic":"sonoff","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}} 22:48:11 RSL: stat/sonoff/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://thehackbox.org/tasmota/release/sonoff.bin","RestartReason":"Deep-Sleep Wake","Uptime":"0T00:00:05","StartupUTC":"2019-08-17T21:48:06","Sleep":50,"CfgHolder":4617,"BootCount":10,"SaveCount":16,"SaveAddress":"FF4000"}} 22:48:11 RSL: stat/sonoff/STATUS2 = {"StatusFWR":{"Version":"6.6.0.3 stb-1.6(sonoff)","BuildDateTime":"2019-08-17T23:40:09","Boot":31,"Core":"2_5_0","SDK":"3.0.0-dev(c0f7b44)"}} 22:48:11 RSL: stat/sonoff/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["????????",""],"TelePeriod":30,"Resolution":"558180C0","SetOption":["00008009","280500000100060000005A00000000000000","00000000"]}} 22:48:11 RSL: stat/sonoff/STATUS4 = {"StatusMEM":{"ProgramSize":599,"Free":1448,"Heap":24760,"ProgramFlashSize":16384,"FlashSize":16384,"FlashChipId":"1840EF","FlashMode":2,"Features":["00000809","0FDAE396","001683A0","22B617CD","01001BC0"]}} 22:48:11 RSL: stat/sonoff/STATUS5 = {"StatusNET":{"Hostname":"Sleeper","IPAddress":"192.168.24.56","Gateway":"192.168.24.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.24.1","Mac":"80:7D:3A:47:59:E1","Webserver":2,"WifiConfig":4}} 22:48:11 RSL: stat/sonoff/STATUS6 = {"StatusMQT":{"MqttHost":"","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_4759E1","MqttUser":"DVES_USER","MqttCount":0,"MAX_PACKET_SIZE":1000,"KEEPALIVE":30}} 22:48:11 RSL: stat/sonoff/STATUS7 = {"StatusTIM":{"UTC":"Sat Aug 17 21:48:11 2019","Local":"Sat Aug 17 22:48:11 2019","StartDST":"Sun Mar 31 02:00:00 2019","EndDST":"Sun Oct 27 03:00:00 2019","Timezone":"+01:00","Sunrise":"05:45","Sunset":"20:03"}} 22:48:11 RSL: stat/sonoff/STATUS10 = {"StatusSNS":{"Time":"2019-08-17T22:48:11","Epoch":1566078491}} 22:48:11 RSL: stat/sonoff/STATUS11 = {"StatusSTS":{"Time":"2019-08-17T22:48:11","Epoch":1566078491,"Uptime":"0T00:00:05","UptimeSec":5,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"POWER":"OFF","Wifi":{"AP":1,"SSId":"????????","BSSId":"44:4E:6D:40:73:00","Channel":6,"RSSI":64,"LinkCount":1,"Downtime":"0T00:00:04","DeepSleep":120,"Heap":24696}}}
weblog 4
CONSOLE OUTPUT HERE: 00:00:02 CMD: DeepSleep 00:00:02 RSL: stat/sonoff/RESULT = {"Command":"Unknown"}
Steps to reproduce the behavior: just enter deepsleep at console or via mqtt
Hi Stefan, it seems that somehow the definition of "D_CMND_DEEPSLEEP" in function "const char kTasmotaCommands[]" disappeared.
After changing the definition to:
const char kTasmotaCommands[] PROGMEM = D_CMND_BACKLOG "|" D_CMND_DELAY "|" D_CMND_POWER "|" D_CMND_STATUS "|" D_CMND_STATE "|" D_CMND_SLEEP "|" D_CMND_UPGRADE "|" D_CMND_UPLOAD "|" D_CMND_OTAURL "|" D_CMND_SERIALLOG "|" D_CMND_RESTART "|" D_CMND_POWERONSTATE "|" D_CMND_PULSETIME "|" D_CMND_BLINKTIME "|" D_CMND_BLINKCOUNT "|" D_CMND_SAVEDATA "|" D_CMND_SETOPTION "|" D_CMND_TEMPERATURE_RESOLUTION "|" D_CMND_HUMIDITY_RESOLUTION "|" D_CMND_PRESSURE_RESOLUTION "|" D_CMND_POWER_RESOLUTION "|" D_CMND_VOLTAGE_RESOLUTION "|" D_CMND_FREQUENCY_RESOLUTION "|" D_CMND_CURRENT_RESOLUTION "|" D_CMND_ENERGY_RESOLUTION "|" D_CMND_WEIGHT_RESOLUTION "|" D_CMND_MODULE "|" D_CMND_MODULES "|" D_CMND_GPIO "|" D_CMND_GPIOS "|" D_CMND_TEMPLATE "|" D_CMND_PWM "|" D_CMND_PWMFREQUENCY "|" D_CMND_PWMRANGE "|" D_CMND_BUTTONDEBOUNCE "|" D_CMND_SWITCHDEBOUNCE "|" D_CMND_SYSLOG "|" D_CMND_LOGHOST "|" D_CMND_LOGPORT "|" D_CMND_SERIALSEND "|" D_CMND_BAUDRATE "|" D_CMND_SERIALDELIMITER "|" D_CMND_IPADDRESS "|" D_CMND_NTPSERVER "|" D_CMND_AP "|" D_CMND_SSID "|" D_CMND_PASSWORD "|" D_CMND_HOSTNAME "|" D_CMND_WIFICONFIG "|" D_CMND_FRIENDLYNAME "|" D_CMND_SWITCHMODE "|" D_CMND_INTERLOCK "|" D_CMND_TELEPERIOD "|" D_CMND_RESET "|" D_CMND_TIME "|" D_CMND_TIMEZONE "|" D_CMND_TIMESTD "|" D_CMND_TIMEDST "|" D_CMND_ALTITUDE "|" D_CMND_LEDPOWER "|" D_CMND_LEDSTATE "|" D_CMND_LEDMASK "|" //stb mode -------------------------------------- D_CMND_DEEPSLEEP "|" //end ------------------------------------------- #ifdef USE_I2C D_CMND_I2CSCAN "|" #endif D_CMND_SENSOR "|" D_CMND_DRIVER;
the command is recognised.
And while you are at it, would you change "_disbale_deepsleepswitch" to "_disable_deepsleepswitch" please?
Thank you for your help. Greetings Tom
Hi Stefan,
//stb mode -------------------------------------- D_CMND_DEEPSLEEP "|" //end -------------------------------------------
is still missing in "const char kTasmotaCommands[]".
BUG DESCRIPTION
The Tasmota device does not recognise the deepsleep command.
REQUESTED INFORMATION
status 0
:weblog 4
for more debug information)TO REPRODUCE
Steps to reproduce the behavior: just enter deepsleep at console or via mqtt
ADDITIONAL CONTEXT
Hi Stefan, it seems that somehow the definition of "D_CMND_DEEPSLEEP" in function "const char kTasmotaCommands[]" disappeared.
After changing the definition to:
the command is recognised.
And while you are at it, would you change "_disbale_deepsleepswitch" to "_disable_deepsleepswitch" please?
Thank you for your help. Greetings Tom