Closed vampywiz17 closed 2 years ago
what version of tasmota ?? never seen this happen in the years I have been using it 35+ devices. Console log 3 might give you insite whats happening.
@PVerburg
Latest Tasmota stable. But i affect it with previous version, also.
here the console output.
I install a fresh Tasmota 11.
After you see in the log the ESP is restarting a couple of time and the end, it set the Sonoff basic config.....
Edit:
now i test it with a simple ESP01S (Clean install, self-compailed Tasmota 11 stable)
Set everything in web interface (template, mqtt, gpio, etc...) It works well. After, i start tdm and it set it to sonoff basic immediately... Really strange...
I also try it with original tasmota bin (downloaded on github) same result.
Problem starts when applying the template (module 0
) which creates a problem and then boot loops until Tasmota disable the template.
There is no relation to TDM and would probably occur the same if you apply your template from Tasmota webconsole without TDM running
@barbudor
It only happen, if open tdm. If i set it via webpage, it working well. I create a video, to show exact problem (need some min to google drive make the video, or able to download it, if you want):
Sorry the language... (but i think the essence is understandable)
https://drive.google.com/file/d/1t8f_lakv8bP6A4wF18W6Kr3A9HwHIsIN/view?usp=sharing
Can't reproduce
I don't know what you're doing wrong
Please provide serial logs of the nodeMCU (trash the ESP01) when starting TDM this may give some hints
@barbudor
I create a serial log.First i set everything in web interface. No problem, works well... Connect putty to serial port and start tdm...
It happen this (attach log)
It seems that is a restart loop...
Strange At line 3 it states that the current module is 0 and line 14 confirm module 0 is "Generic" But the at line 23 the template in Sonoff Basic / Base: 1 instead of Generic / Base 18
Could you please redo the same with Seriallog 3
to have more debug logs ?
And right before starting TDM, please type also backlog module; template
Which TDM are you using ? Python downloaded from Github ? Or a pre-built exe ? for which OS ?
When building Tasmota in TasmoCompiler, appart from Wifi and MQTT settings, what are you setting ?
DO you have the same problem with standard tasmote.bin.gz from http://ota.tasmota.com/tasmota ?
For information, here are my own logs when starting TDM:
18:23:03.742 MQT: stat/nodemcu/STATUS = {"Status":{"Module":0,"DeviceName":"Tasmota","FriendlyName":["Tasmota"],"Topic":"nodemcu","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,"InfoRetain":0,"StateRetain":0}}
18:23:03.773 MQT: stat/nodemcu/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Software/System restart","Uptime":"0T00:33:09","StartupUTC":"2022-03-05T16:49:54","Sleep":50,"CfgHolder":4617,"BootCount":9,"BCResetTime":"2022-03-05T17:26:54","SaveCount":17,"SaveAddress":"FB000"}}
18:23:03.806 MQT: stat/nodemcu/STATUS2 = {"StatusFWR":{"Version":"11.0.0(tasmota)","BuildDateTime":"2022-02-12T14:13:50","Boot":31,"Core":"2_7_4_9","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"346/699"}}
18:23:03.825 MQT: stat/nodemcu/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["mado-wifi",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C80001000600003C5A0A190000000000","00000080","00006000","00004000"]}}
18:23:03.861 MQT: stat/nodemcu/STATUS4 = {"StatusMEM":{"ProgramSize":620,"Free":380,"Heap":20,"ProgramFlashSize":1024,"FlashSize":4096,"FlashChipId":"1640EF","FlashFrequency":40,"FlashMode":3,"Features":["00000809","8FDAC787","04368001","000000CF","010013C0","C000F981","00004004","00001000","00000020"],"Drivers":"1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,27,29,30,35,37,45","Sensors":"1,2,3,4,5,6"}}
18:23:03.895 MQT: stat/nodemcu/STATUS5 = {"StatusNET":{"Hostname":"nodemcu-5763","IPAddress":"192.168.1.112","Gateway":"192.168.1.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.1.1","DNSServer2":"0.0.0.0","Mac":"18:FE:34:A6:D6:83","Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}
18:23:03.918 MQT: stat/nodemcu/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.1.2","MqttPort":1883,"MqttClientMask":"nodemcu_%012X","MqttClient":"nodemcu_18FE34A6D683","MqttUser":"nodemcu","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
18:23:03.944 MQT: stat/nodemcu/STATUS7 = {"StatusTIM":{"UTC":"2022-03-05T17:23:03","Local":"2022-03-05T18:23:03","StartDST":"2022-03-27T02:00:00","EndDST":"2022-10-30T03:00:00","Timezone":"+01:00","Sunrise":"07:24","Sunset":"18:39"}}
18:23:03.963 MQT: stat/nodemcu/STATUS10 = {"StatusSNS":{"Time":"2022-03-05T18:23:03"}}
18:23:03.972 MQT: stat/nodemcu/STATUS11 = {"StatusSTS":{"Time":"2022-03-05T18:23:03","Uptime":"0T00:33:09","UptimeSec":1989,"Heap":22,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mado-wifi","BSSId":"E8:1B:69:02:D4:AA","Channel":1,"Mode":"11n","RSSI":44,"Signal":-78,"LinkCount":1,"Downtime":"0T00:00:03"}}}
18:23:04.001 MQT: stat/nodemcu/RESULT = {"Modules":{"0":"Generic","1":"Sonoff Basic","2":"Sonoff RF","4":"Sonoff TH","5":"Sonoff Dual","39":"Sonoff Dual R2","6":"Sonoff Pow","43":"Sonoff Pow R2","7":"Sonoff 4CH","23":"Sonoff 4CH Pro","41":"Sonoff S31","8":"Sonoff S2X","10":"Sonoff Touch","28":"Sonoff T1 1CH","29":"Sonoff T1 2CH","30":"Sonoff T1 3CH","74":"Sonoff D1","11":"Sonoff LED","22":"Sonoff BN-SZ","70":"Sonoff L1","26":"Sonoff B1","9":"Slampher","21":"Sonoff SC","44":"Sonoff iFan02","71":"Sonoff iFan03","25":"Sonoff Bridge","3":"Sonoff SV","19":"Sonoff Dev","12":"1 Channel","13":"4 Channel","14":"Motor C/AC","15":"ElectroDragon","16":"EXS Relay(s)","31":"Supla Espablo","35":"Luani HVIO","33":"Yunshan Relay","17":"WiOn","46":"Shelly 1","47":"Shelly 2","45":"BlitzWolf SHP","52":"Teckin","59":"Teckin US","53":"AplicWDP303075","55":"Gosund SP1 v23","65":"Luminea ZX2820","57":"SK03 Outdoor","63":"Digoo DG-SP202","64":"KA10","67":"SP10","68":"WAGA CHCZ02MB","49":"Neo Coolcam","51":"OBI Socket","61":"OBI Socket 2","60":"Manzoku strip","50":"ESP Switch","54":"Tuya MCU","56":"ARMTR Dimmer","58":"PS-16-DZ","72":"EXS Dimmer","73":"PWM Dimmer","20":"H801","34":"MagicHome","37":"Arilux LC01","40":"Arilux LC06","38":"Arilux LC11","42":"Zengge WF017","24":"Huafan SS","66":"Mi Desk Lamp","36":"KMC 70011","27":"AiLight","48":"Xiaomi Philips","69":"SYF05","62":"YTF IR Bridge","32":"Witty Cloud","18":"Generic"}}
18:23:04.280 MQT: stat/nodemcu/RESULT = {"GPIOs1":{"0":"None","32":"Button","64":"Button_n","96":"Button_i","128":"Button_in","160":"Switch","192":"Switch_n","224":"Relay","256":"Relay_i","288":"Led","320":"Led_i","352":"Counter","384":"Counter_n","416":"PWM","448":"PWM_i","480":"Buzzer","512":"Buzzer_i","544":"LedLink","576":"LedLink_i","608":"I2C SCL","640":"I2C SDA","672":"SPI MISO","704":"SPI MOSI","736":"SPI CLK","768":"SPI CS","800":"SPI DC","832":"SSPI MISO","864":"SSPI MOSI","896":"SSPI SCLK","928":"SSPI CS","960":"SSPI DC","992":"Backlight","1024":"Display Rst","1056":"IRsend","1088":"IRrecv","1120":"RFSend","1152":"RFrecv","1184":"DHT11","1216":"AM2301","1248":"SI7021","1280":"DHT11_o","1312":"DS18x20","1344":"DS18x20_o","1376":"WS2812","1408":"MHZ Tx","1440":"MHZ Rx","1472":"PZEM0XX Tx","1504":"PZEM004 Rx","1536":"PZEM016 Rx","1568":"PZEM017 Rx","1600":"SAir Tx","1632":"SAir Rx","1664":"PMS5003 Tx","1696":"PMS5003 Rx","1728":"SDS0X1 Tx","1760":"SDS0X1 Rx","1792":"SerBr Tx","1824":"SerBr Rx","1856":"SR04 Tri/TX","1888":"SR04 Ech/RX","1920":"SDMx20 Tx","1952":"SDMx20 Rx","1984":"SDM630 Tx","2016":"SDM630 Rx","2048":"TM1638 CLK","2080":"TM1638 DIO","2112":"TM1638 STB","2144":"MP3 Player","2176":"HX711 SCK","2208":"HX711 DAT","2240":"TX2x","2272":"Tuya Tx","2304":"Tuya Rx","2336":"MGC3130 Xfr","2368":"MGC3130 Rst","2400":"RF Sensor","2432":"AZ Tx","2464":"AZ Rx","2496":"MX31855 CS","2528":"MX31855 CLK","2560":"MX31855 DO","2592":"HLWBL SEL","2624":"HLWBL SEL_i","2656":"HLWBL CF1","2688":"HLW8012 CF","2720":"BL0937 CF","2752":"MCP39F5 Tx","2784":"MCP39F5 Rx","2816":"MCP39F5 Rst","2848":"PN532 Tx","2880":"PN532 Rx","2912":"SM16716 CLK","2944":"SM16716 DAT","2976":"SM16716 PWR","3008":"MY92x1 DI","3040":"MY92x1 DCKI","3072":"CSE7766 Tx","3104":"CSE7766 Rx","3136":"ALux IrRcv","3168":"ALux IrSel","3200":"Serial Tx","3232":"Serial Rx","3264":"Rotary A","3296":"Rotary B","3328":"ADC Joystick","3360":"MX31865 CS","3392":"HRE Clock","3424":"HRE Data","3456":"ADE7953 IRQ","3488":"SolaxX1 Tx","3520":"SolaxX1 Rx","3552":"Zigbee Tx","3584":"Zigbee Rx","3616":"RDM6300 RX","3648":"iBeacon TX","3680":"iBeacon RX","3712":"A4988 DIR","3744":"A4988 STP","3776":"A4988 ENA","3808":"A4988 MS1","3840":"Output Hi","3872":"Output Lo","3904":"DDS238-2 Tx","3936":"DDS238-2 Rx","3968":"DDSU666 Tx","4000":"DDSU666 Rx","4032":"SM2135 Clk","4064":"SM2135 Dat","4096":"DeepSleep","4128":"EXS Enable","4160":"Client TX","4192":"Client RX","4224":"Client RST","4256":"Client RST_i","4288":"HPMA Rx","4320":"HPMA Tx","4352":"GPS RX","4384":"GPS TX","4416":"HM10 RX","4448":"HM10 TX","4480":"LE-01MR Rx","4512":"LE-01MR Tx","4544":"CC1101 GDO0","4576":"CC1101 GDO2","4608":"HRXL Rx","4640":"MOODL Tx","4672":"AS3935","4704":"ADC Input","4736":"ADC Temp","4768":"ADC Light","4800":"ADC Button","4832":"ADC Button_i","4864":"ADC Range","4896":"ADC CT Power","4928":"OpenTherm RX","4960":"OpenTherm TX","4992":"WindMeter Spd","5024":"Button_tc","5056":"BL0940 Rx","5088":"TCP Tx","5120":"TCP Rx","5152":"TInfo Rx","5184":"TInfo EN","5216":"LMT01 Pulse","5248":"iEM3000 TX","5280":"iEM3000 RX","5312":"Zigbee Rst","5344":"DYP Rx","5376":"MiEl HVAC Tx","5408":"MiEl HVAC Rx","5440":"WE517 Tx","5472":"WE517 Rx","5504":"AS608 Tx","5536":"AS608 Rx","5568":"SHD Boot 0","5600":"SHD Reset","5632":"RC522 Rst","5664":"P9813 Clk","5696":"P9813 Dat","5728":"Option A","5760":"FTC532","5792":"RC522 CS","5824":"NRF24 CS","5856":"NRF24 DC","5888":"ILI9341 CS","5920":"ILI9341 DC","5952":"ILI9488 CS","5984":"EPaper29 CS","6016":"EPaper42 CS","6048":"SSD1351 CS","6080":"RA8876 CS","6112":"ST7789 CS","6144":"ST7789 DC","6176":"SSD1331 CS","6208":"SSD1331 DC","6240":"SDCard CS","6272":"Rotary A_n","6304":"Rotary B_n","6336":"ADC pH","6368":"BS814 CLK","6400":"BS814 DAT","6432":"Wiegand D0","6464":"Wiegand D1","6496":"NeoPool Tx","6528":"NeoPool Rx","6560":"SDM72 Tx","6592":"SDM72 Rx","6624":"TM1637 CLK"}}
18:23:04.678 MQT: stat/nodemcu/RESULT = {"GPIOs2":{"6656":"TM1637 DIO","6688":"DLP Tx","6720":"DLP Rx","6752":"SSD1351 DC","6784":"XPT2046 CS","6816":"CSE7761 Tx","6848":"CSE7761 Rx","6880":"VL53L0X XSHUT","6912":"MAX7219 CLK","6944":"MAX7219 DIN","6976":"MAX7219 CS","7008":"TFmini+ TX","7040":"TFmini+ RX","7072":"ZC Pulse","7104":"Input","7136":"I2S Out Data","7168":"I2S Out Clk","7200":"I2S Out Slct","7232":"I2S In Data","7264":"I2S In Clk","7296":"I2S In Slct","7328":"Interrupt","7360":"MCP2515 CS","7392":"HRG15 Tx","7424":"HRG15 Rx","7456":"VINDRIKTNING","7488":"BL0939 Rx","7520":"BL0942 Rx","7552":"HM330X SET","7584":"Heartbeat","7616":"Heartbeat_i","7648":"74x595 SRCLK","7680":"74x595 RCLK","7712":"74x595 OE","7744":"74x595 SER","7776":"SolaxX1 RTS","7808":"Option E","7840":"SDM230 Tx","7872":"SDM230 Rx","7904":"ADC MQ","7936":"CM110x TX","7968":"CM110x RX"}}
18:23:04.761 MQT: stat/nodemcu/RESULT = {"SwitchDebounce":50}
18:23:04.810 MQT: stat/nodemcu/RESULT = {"BlinkTime":10}
18:23:04.862 MQT: stat/nodemcu/RESULT = {"MqttLog":0}
18:23:04.911 MQT: stat/nodemcu/RESULT = {"PulseTime2":{"Set":0,"Remaining":0}}
18:23:04.961 MQT: stat/nodemcu/RESULT = {"PulseTime4":{"Set":0,"Remaining":0}}
18:23:05.043 MQT: stat/nodemcu/RESULT = {"PulseTime6":{"Set":0,"Remaining":0}}
18:23:05.093 MQT: stat/nodemcu/RESULT = {"PulseTime8":{"Set":0,"Remaining":0}}
18:23:05.145 MQT: stat/nodemcu/RESULT = {"NAME":"Generic","GPIO":[1,1,1,1,1,1,1,1,1,1,1,1,1,1],"FLAG":0,"BASE":18}
18:23:05.193 MQT: stat/nodemcu/RESULT = {"ButtonDebounce":50}
18:23:05.243 MQT: stat/nodemcu/RESULT = {"BlinkCount":10}
18:23:05.343 MQT: stat/nodemcu/RESULT = {"PulseTime3":{"Set":0,"Remaining":0}}
18:23:05.393 MQT: stat/nodemcu/RESULT = {"PulseTime7":{"Set":0,"Remaining":0}}
18:23:05.497 MQT: stat/nodemcu/RESULT = {"GPIO0":{"0":"None"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"0":"None"},"GPIO4":{"0":"None"},"GPIO5":{"0":"None"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"0":"None"},"GPIO13":{"0":"None"},"GPIO14":{"0":"None"},"GPIO15":{"0":"None"},"GPIO16":{"0":"None"},"GPIO17":{"0":"None"}}
18:23:05.543 MQT: stat/nodemcu/RESULT = {"PulseTime1":{"Set":0,"Remaining":0}}
18:23:05.643 MQT: stat/nodemcu/RESULT = {"Interlock":"OFF"}
18:23:05.693 MQT: stat/nodemcu/RESULT = {"PulseTime5":{"Set":0,"Remaining":0}}
18:25:03.425 MQT: tele/nodemcu/STATE = {"Time":"2022-03-05T18:25:03","Uptime":"0T00:35:09","UptimeSec":2109,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mado-wifi","BSSId":"E8:1B:69:02:D4:AA","Channel":1,"Mode":"11n","RSSI":46,"Signal":-77,"LinkCount":1,"Downtime":"0T00:00:03"}}
This is my log with serialog 3
All working expected, no restarting, not bootloop nor crash
Note that I will be unavailable for the next 2 hours or so
18:42:05.108 CMD: backlog module ; template
18:42:05.110 SRC: Serial
18:42:05.111 CMD: Grp 0, Cmnd 'BACKLOG', Idx 1, Len 17, Data 'module ; template'
18:42:05.155 SRC: Backlog
18:42:05.156 CMD: Grp 0, Cmnd 'MODULE', Idx 1, Len 0, Data ''
18:42:05.161 MQT: stat/nodemcu/RESULT = {"Module":{"0":"Generic"}}
18:42:05.405 SRC: Backlog
18:42:05.406 CMD: Grp 0, Cmnd 'TEMPLATE', Idx 1, Len 0, Data ''
18:42:05.411 MQT: stat/nodemcu/RESULT = {"NAME":"Generic","GPIO":[1,1,1,1,1,1,1,1,1,1,1,1,1,1],"FLAG":0,"BASE":18}
18:42:17.280 SRC: MQTT
18:42:17.281 CMD: Grp 0, Cmnd 'STATUS', Idx 1, Len 1, Data '0'
18:42:17.287 MQT: stat/nodemcu/STATUS = {"Status":{"Module":0,"DeviceName":"Tasmota","FriendlyName":["Tasmota"],"Topic":"nodemcu","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,"InfoRetain":0,"StateRetain":0}}
18:42:17.316 MQT: stat/nodemcu/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Software/System restart","Uptime":"0T00:00:42","StartupUTC":"2022-03-05T17:41:35","Sleep":50,"CfgHolder":4617,"BootCount":10,"BCResetTime":"2022-03-05T17:26:54","SaveCount":19,"SaveAddress":"F9000"}}
18:42:17.352 MQT: stat/nodemcu/STATUS2 = {"StatusFWR":{"Version":"11.0.0(tasmota)","BuildDateTime":"2022-02-12T14:13:50","Boot":31,"Core":"2_7_4_9","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"346/699"}}
18:42:17.371 MQT: stat/nodemcu/STATUS3 = {"StatusLOG":{"SerialLog":3,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["mado-wifi",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C80001000600003C5A0A190000000000","00000080","00006000","00004000"]}}
18:42:17.404 MQT: stat/nodemcu/STATUS4 = {"StatusMEM":{"ProgramSize":620,"Free":380,"Heap":26,"ProgramFlashSize":1024,"FlashSize":4096,"FlashChipId":"1640EF","FlashFrequency":40,"FlashMode":3,"Features":["00000809","8FDAC787","04368001","000000CF","010013C0","C000F981","00004004","00001000","00000020"],"Drivers":"1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,27,29,30,35,37,45","Sensors":"1,2,3,4,5,6"}}
18:42:17.437 MQT: stat/nodemcu/STATUS5 = {"StatusNET":{"Hostname":"nodemcu-5763","IPAddress":"192.168.1.112","Gateway":"192.168.1.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.1.1","DNSServer2":"0.0.0.0","Mac":"18:FE:34:A6:D6:83","Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}
18:42:17.463 MQT: stat/nodemcu/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.1.2","MqttPort":1883,"MqttClientMask":"nodemcu_%012X","MqttClient":"nodemcu_18FE34A6D683","MqttUser":"nodemcu","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
18:42:17.487 MQT: stat/nodemcu/STATUS7 = {"StatusTIM":{"UTC":"2022-03-05T17:42:17","Local":"2022-03-05T18:42:17","StartDST":"2022-03-27T02:00:00","EndDST":"2022-10-30T03:00:00","Timezone":"+01:00","Sunrise":"07:24","Sunset":"18:39"}}
18:42:17.508 MQT: stat/nodemcu/STATUS10 = {"StatusSNS":{"Time":"2022-03-05T18:42:17"}}
18:42:17.516 MQT: stat/nodemcu/STATUS11 = {"StatusSTS":{"Time":"2022-03-05T18:42:17","Uptime":"0T00:00:42","UptimeSec":42,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mado-wifi","BSSId":"E8:1B:69:02:D4:AA","Channel":1,"Mode":"11n","RSSI":38,"Signal":-81,"LinkCount":1,"Downtime":"0T00:00:03"}}}
18:42:17.546 SRC: MQTT
18:42:17.547 CMD: Grp 0, Cmnd 'MODULES', Idx 1, Len 0, Data ''
18:42:17.581 MQT: stat/nodemcu/RESULT = {"Modules":{"0":"Generic","1":"Sonoff Basic","2":"Sonoff RF","4":"Sonoff TH","5":"Sonoff Dual","39":"Sonoff Dual R2","6":"Sonoff Pow","43":"Sonoff Pow R2","7":"Sonoff 4CH","23":"Sonoff 4CH Pro","41":"Sonoff S31","8":"Sonoff S2X","10":"Sonoff Touch","28":"Sonoff T1 1CH","29":"Sonoff T1 2CH","30":"Sonoff T1 3CH","74":"Sonoff D1","11":"Sonoff LED","22":"Sonoff BN-SZ","70":"Sonoff L1","26":"Sonoff B1","9":"Slampher","21":"Sonoff SC","44":"Sonoff iFan02","71":"Sonoff iFan03","25":"Sonoff Bridge","3":"Sonoff SV","19":"Sonoff Dev","12":"1 Channel","13":"4 Channel","14":"Motor C/AC","15":"ElectroDragon","16":"EXS Relay(s)","31":"Supla Espablo","35":"Luani HVIO","33":"Yunshan Relay","17":"WiOn","46":"Shelly 1","47":"Shelly 2","45":"BlitzWolf SHP","52":"Teckin","59":"Teckin US","53":"AplicWDP303075","55":"Gosund SP1 v23","65":"Luminea ZX2820","57":"SK03 Outdoor","63":"Digoo DG-SP202","64":"KA10","67":"SP10","68":"WAGA CHCZ02MB","49":"Neo Coolcam","51":"OBI Socket","61":"OBI Socket 2","60":"Manzoku strip","50":"ESP Switch","54":"Tuya MCU","56":"ARMTR Dimmer","58":"PS-16-DZ","72":"EXS Dimmer","73":"PWM Dimmer","20":"H801","34":"MagicHome","37":"Arilux LC01","40":"Arilux LC06","38":"Arilux LC11","42":"Zengge WF017","24":"Huafan SS","66":"Mi Desk Lamp","36":"KMC 70011","27":"AiLight","48":"Xiaomi Philips","69":"SYF05","62":"YTF IR Bridge","32":"Witty Cloud","18":"Generic"}}
18:42:17.707 SRC: MQTT
18:42:17.709 CMD: Grp 0, Cmnd 'GPIOS', Idx 1, Len 3, Data '255'
18:42:17.860 MQT: stat/nodemcu/RESULT = {"GPIOs1":{"0":"None","32":"Button","64":"Button_n","96":"Button_i","128":"Button_in","160":"Switch","192":"Switch_n","224":"Relay","256":"Relay_i","288":"Led","320":"Led_i","352":"Counter","384":"Counter_n","416":"PWM","448":"PWM_i","480":"Buzzer","512":"Buzzer_i","544":"LedLink","576":"LedLink_i","608":"I2C SCL","640":"I2C SDA","672":"SPI MISO","704":"SPI MOSI","736":"SPI CLK","768":"SPI CS","800":"SPI DC","832":"SSPI MISO","864":"SSPI MOSI","896":"SSPI SCLK","928":"SSPI CS","960":"SSPI DC","992":"Backlight","1024":"Display Rst","1056":"IRsend","1088":"IRrecv","1120":"RFSend","1152":"RFrecv","1184":"DHT11","1216":"AM2301","1248":"SI7021","1280":"DHT11_o","1312":"DS18x20","1344":"DS18x20_o","1376":"WS2812","1408":"MHZ Tx","1440":"MHZ Rx","1472":"PZEM0XX Tx","1504":"PZEM004 Rx","1536":"PZEM016 Rx","1568":"PZEM017 Rx","1600":"SAir Tx","1632":"SAir Rx","1664":"PMS5003 Tx","1696":"PMS5003 Rx","1728":"SDS0X1 Tx","1760":"SDS0X1 Rx","1792":"SerBr Tx","1824":"SerBr Rx","1856":"SR04 Tri/TX","1888":"SR04 Ech/RX","1920":"SDMx20 Tx","1952":"SDMx20 Rx","1984":"SDM630 Tx","2016":"SDM630 Rx","2048":"TM1638 CLK","2080":"TM1638 DIO","2112":"TM1638 STB","2144":"MP3 Player","2176":"HX711 SCK","2208":"HX711 DAT","2240":"TX2x","2272":"Tuya Tx","2304":"Tuya Rx","2336":"MGC3130 Xfr","2368":"MGC3130 Rst","2400":"RF Sensor","2432":"AZ Tx","2464":"AZ Rx","2496":"MX31855 CS","2528":"MX31855 CLK","2560":"MX31855 DO","2592":"HLWBL SEL","2624":"HLWBL SEL_i","2656":"HLWBL CF1","2688":"HLW8012 CF","2720":"BL0937 CF","2752":"MCP39F5 Tx","2784":"MCP39F5 Rx","2816":"MCP39F5 Rst","2848":"PN532 Tx","2880":"PN532 Rx","2912":"SM16716 CLK","2944":"SM16716 DAT","2976":"SM16716 PWR","3008":"MY92x1 DI","3040":"MY92x1 DCKI","3072":"CSE7766 Tx","3104":"CSE7766 Rx","3136":"ALux IrRcv","3168":"ALux IrSel","3200":"Serial Tx","3232":"Serial Rx","3264":"Rotary A","3296":"Rotary B","3328":"ADC Joystick","3360":"MX31865 CS","3392":"HRE Clock","3424":"HRE Data","3456":"ADE7953 IRQ","3488":"SolaxX1 Tx","3520":"SolaxX1 Rx","3552":"Zigbee Tx","3584":"Zigbee Rx","3616":"RDM6300 RX","3648":"iBeacon TX","3680":"iBeacon RX","3712":"A4988 DIR","3744":"A4988 STP","3776":"A4988 ENA","3808":"A4988 MS1","3840":"Output Hi","3872":"Output Lo","3904":"DDS238-2 Tx","3936":"DDS238-2 Rx","3968":"DDSU666 Tx","4000":"DDSU666 Rx","4032":"SM2135 Clk","4064":"SM2135 Dat","4096":"DeepSleep","4128":"EXS Enable","4160":"Client TX","4192":"Client RX","4224":"Client RST","4256":"Client RST_i","4288":"HPMA Rx","4320":"HPMA Tx","4352":"GPS RX","4384":"GPS TX","4416":"HM10 RX","4448":"HM10 TX","4480":"LE-01MR Rx","4512":"LE-01MR Tx","4544":"CC1101 GDO0","4576":"CC1101 GDO2","4608":"HRXL Rx","4640":"MOODL Tx","4672":"AS3935","4704":"ADC Input","4736":"ADC Temp","4768":"ADC Light","4800":"ADC Button","4832":"ADC Button_i","4864":"ADC Range","4896":"ADC CT Power","4928":"OpenTherm RX","4960":"OpenTherm TX","4992":"WindMeter Spd","5024":"Button_tc","5056":"BL0940 Rx","5088":"TCP Tx","5120":"TCP Rx","5152":"TInfo Rx","5184":"TInfo EN","5216":"LMT01 Pulse","5248":"iEM3000 TX","5280":"iEM3000 RX","5312":"Zigbee Rst","5344":"DYP Rx","5376":"MiEl HVAC Tx","5408":"MiEl HVAC Rx","5440":"WE517 Tx","5472":"WE517 Rx","5504":"AS608 Tx","5536":"AS608 Rx","5568":"SHD Boot 0","5600":"SHD Reset","5632":"RC522 Rst","5664":"P9813 Clk","5696":"P9813 Dat","5728":"Option A","5760":"FTC532","5792":"RC522 CS","5824":"NRF24 CS","5856":"NRF24 DC","5888":"ILI9341 CS","5920":"ILI9341 DC","5952":"ILI9488 CS","5984":"EPaper29 CS","6016":"EPaper42 CS","6048":"SSD1351 CS","6080":"RA8876 CS","6112":"ST7789 CS","6144":"ST7789 DC","6176":"SSD1331 CS","6208":"SSD1331 DC","6240":"SDCard CS","6272":"Rotary A_n","6304":"Rotary B_n","6336":"ADC pH","6368":"BS814 CLK","6400":"BS814 DAT","6432":"Wiegand D0","6464":"Wiegand D1","6496":"NeoPool Tx","6528":"NeoPool Rx","6560":"SDM72 Tx","6592":"SDM72 Rx","6624":"TM1637 CLK"}}
18:42:18.002 MQT: stat/nodemcu/RESULT = {"GPIOs2":{"6656":"TM1637 DIO","6688":"DLP Tx","6720":"DLP Rx","6752":"SSD1351 DC","6784":"XPT2046 CS","6816":"CSE7761 Tx","6848":"CSE7761 Rx","6880":"VL53L0X XSHUT","6912":"MAX7219 CLK","6944":"MAX7219 DIN","6976":"MAX7219 CS","7008":"TFmini+ TX","7040":"TFmini+ RX","7072":"ZC Pulse","7104":"Input","7136":"I2S Out Data","7168":"I2S Out Clk","7200":"I2S Out Slct","7232":"I2S In Data","7264":"I2S In Clk","7296":"I2S In Slct","7328":"Interrupt","7360":"MCP2515 CS","7392":"HRG15 Tx","7424":"HRG15 Rx","7456":"VINDRIKTNING","7488":"BL0939 Rx","7520":"BL0942 Rx","7552":"HM330X SET","7584":"Heartbeat","7616":"Heartbeat_i","7648":"74x595 SRCLK","7680":"74x595 RCLK","7712":"74x595 OE","7744":"74x595 SER","7776":"SolaxX1 RTS","7808":"Option E","7840":"SDM230 Tx","7872":"SDM230 Rx","7904":"ADC MQ","7936":"CM110x TX","7968":"CM110x RX"}}
18:42:18.079 SRC: MQTT
18:42:18.080 CMD: Grp 0, Cmnd 'SWITCHDEBOUNCE', Idx 1, Len 0, Data ''
18:42:18.083 MQT: stat/nodemcu/RESULT = {"SwitchDebounce":50}
18:42:18.129 SRC: MQTT
18:42:18.130 CMD: Grp 0, Cmnd 'BLINKTIME', Idx 1, Len 0, Data ''
18:42:18.134 MQT: stat/nodemcu/RESULT = {"BlinkTime":10}
18:42:18.179 SRC: MQTT
18:42:18.180 CMD: Grp 0, Cmnd 'MQTTLOG', Idx 1, Len 0, Data ''
18:42:18.184 MQT: stat/nodemcu/RESULT = {"MqttLog":0}
18:42:18.229 SRC: MQTT
18:42:18.231 CMD: Grp 0, Cmnd 'PULSETIME', Idx 2, Len 0, Data ''
18:42:18.234 MQT: stat/nodemcu/RESULT = {"PulseTime2":{"Set":0,"Remaining":0}}
18:42:18.328 SRC: MQTT
18:42:18.330 CMD: Grp 0, Cmnd 'PULSETIME', Idx 4, Len 0, Data ''
18:42:18.333 MQT: stat/nodemcu/RESULT = {"PulseTime4":{"Set":0,"Remaining":0}}
18:42:18.379 SRC: MQTT
18:42:18.380 CMD: Grp 0, Cmnd 'PULSETIME', Idx 6, Len 0, Data ''
18:42:18.384 MQT: stat/nodemcu/RESULT = {"PulseTime6":{"Set":0,"Remaining":0}}
18:42:18.429 SRC: MQTT
18:42:18.430 CMD: Grp 0, Cmnd 'PULSETIME', Idx 8, Len 0, Data ''
18:42:18.434 MQT: stat/nodemcu/RESULT = {"PulseTime8":{"Set":0,"Remaining":0}}
18:42:18.479 SRC: MQTT
18:42:18.481 CMD: Grp 0, Cmnd 'TEMPLATE', Idx 1, Len 0, Data ''
18:42:18.486 MQT: stat/nodemcu/RESULT = {"NAME":"Generic","GPIO":[1,1,1,1,1,1,1,1,1,1,1,1,1,1],"FLAG":0,"BASE":18}
18:42:18.530 SRC: MQTT
18:42:18.532 CMD: Grp 0, Cmnd 'BUTTONDEBOUNCE', Idx 1, Len 0, Data ''
18:42:18.535 MQT: stat/nodemcu/RESULT = {"ButtonDebounce":50}
18:42:18.580 SRC: MQTT
18:42:18.581 CMD: Grp 0, Cmnd 'BLINKCOUNT', Idx 1, Len 0, Data ''
18:42:18.584 MQT: stat/nodemcu/RESULT = {"BlinkCount":10}
18:42:18.630 SRC: MQTT
18:42:18.631 CMD: Grp 0, Cmnd 'PULSETIME', Idx 3, Len 0, Data ''
18:42:18.635 MQT: stat/nodemcu/RESULT = {"PulseTime3":{"Set":0,"Remaining":0}}
18:42:18.680 SRC: MQTT
18:42:18.681 CMD: Grp 0, Cmnd 'PULSETIME', Idx 7, Len 0, Data ''
18:42:18.685 MQT: stat/nodemcu/RESULT = {"PulseTime7":{"Set":0,"Remaining":0}}
18:42:18.730 SRC: MQTT
18:42:18.731 CMD: Grp 0, Cmnd 'GPIO', Idx 1, Len 0, Data ''
18:42:18.739 MQT: stat/nodemcu/RESULT = {"GPIO0":{"0":"None"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"0":"None"},"GPIO4":{"0":"None"},"GPIO5":{"0":"None"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"0":"None"},"GPIO13":{"0":"None"},"GPIO14":{"0":"None"},"GPIO15":{"0":"None"},"GPIO16":{"0":"None"},"GPIO17":{"0":"None"}}
18:42:19.019 SRC: MQTT
18:42:19.020 CMD: Grp 0, Cmnd 'PULSETIME', Idx 1, Len 0, Data ''
18:42:19.024 MQT: stat/nodemcu/RESULT = {"PulseTime1":{"Set":0,"Remaining":0}}
18:42:19.069 SRC: MQTT
18:42:19.070 CMD: Grp 0, Cmnd 'INTERLOCK', Idx 1, Len 0, Data ''
18:42:19.074 MQT: stat/nodemcu/RESULT = {"Interlock":"OFF"}
18:42:19.119 SRC: MQTT
18:42:19.120 CMD: Grp 0, Cmnd 'PULSETIME', Idx 5, Len 0, Data ''
18:42:19.124 MQT: stat/nodemcu/RESULT = {"PulseTime5":{"Set":0,"Remaining":0}}
@barbudor
And right before starting TDM, please type also backlog module; template
I do this, here the log: log.log
Which TDM are you using ? Python downloaded from Github ? Or a pre-built exe ? for which OS ?
I try pre build exe and github python. Both of them run on Windows.
When building Tasmota in TasmoCompiler, appart from Wifi and MQTT settings, what are you setting ?
Not set anything. Wifi and mqtt setting i set it after first start.
DO you have the same problem with standard tasmote.bin.gz from http://ota.tasmota.com/tasmota ?
yes
Hmm i dont start tdm, but when i run backlog module; template
i get a same error. It cause to restart the NodeMCU and set it back to Sonoff Basic.
Looks like nothing to do with TDM It's either the module or template commands but when used with no argument they are supposed just to print the current setting, not doing anything I'm not at my PC right now so I can't look at the log yet Try to erase fully the device and flash staard tasmota
@barbudor
Ok, i went a full erase (a 4mb blank bin) and i flash a vanilla Tasmota, (again, i check the "erase before flashing" option, so "duble delete") downloaded from tasmota github page.
Set the template, activate it and run this command: backlog module; template
Full same problem.... Here the log:
Now i think i configure it wrong, or i dont know....
No idea for niw Can you please open a discussion on Tasmota providing this log? It will get more attention there
And close the issue here as it is not a TDM problem Thanks
@barbudor
Ehhhhh i found the problem....
At this time, i use tasmota_HU.bin (or change the hungarian language in tasmocompiler)
Now, i flash tasmota.bin (default english language) and now it working like a charm!!!
I need to learn again, my language (Hungarian) special chars are mess up everything.. :)
Means like you found the starting point. Well done. I'lm try the Hungary version too in 30 minutes
plus info: Seems it only affect esp8266 code. With esp32, it work well with hungarian language.
I'm investigating
wrong, -FR is ok
Getting closer to the problem but not yet there...
@vampywiz17 I found the problem the below string for D_START shouldn't be empty
#define D_SSID "SSID"
#define D_START ""
#define D_STD_TIME "STD"
Can you please provide me with the proper translation for "Start" ? Google say "Rajt"
@barbudor the Start is same with hungarian. Simly "Start" :)
It's used for the "Start Upgrade" button for exemple So if I'm using "Start" the button will be "Start Frissítés" If that's ok for you, I will go for "Start"
In this context mean "Frissítés indítása" the correct syntax. If i change to to "Indítás frissítés", word order is bad.
In hungarian language, the word order is usually turns around compared to English.
Possible, this is the reason that this translation is missing...
Unfortunately in that context you can't change the order because the button name is build from D_START and D_UPGRADE in this order.
I know it's not perfect. May be some day we will see how we can do better but we try to avoid creating a string for each and every simple text if we can just concatenate 2 words because that is saving flash space.
That will makes:
Don't ask me why the 1st button doesn't have "Start" At least this will stop breaking now with TDM You will have to wait for Theo to merge the PR
@barbudor
Thanks a lot! "Start frissítés" is completely acceptable :)
Well done I would have not been able to find that problem!!!.
Paul V.
Hello there,
I tried this program and it is very nice! Really good option to remote control a away ESP that only connect to smart home via MQTT (no port forward, etc...)
But i expreience a really srtange thing. If i connect to my NodeMCU (latest stable tasmota, build with Tasmocompiler) it tdm set it back to "Sonoff Basic" device type every time. If i close the app and set it again to Generic type via web interface it working well, only that i not start the tdm again...
Other people expreience this problem?
Hint: i only expreience it, if use template to set up NodeMCU. If i set it Device type and set the GPIO-s manually it seems that this problem is not appears