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
21.97k stars 4.77k forks source link

Support for SONOFF Smart Power Meter Switch | POW Elite #15856

Closed nobodyman1 closed 2 years ago

nobodyman1 commented 2 years ago

PROBLEM DESCRIPTION

Is it possible to use Tasmota on the new SONOFF POW Elite? I found some Pictures here. It´s based on an ESP32 and the power measuring is done with a CSE7759B (same as used in SONOFF POW R2). But what´s about the LCD driver?

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

arendst commented 2 years ago

I just tried the sonoff sensor and it indeed works fine. So my suspection of missing pullup resistor is NOT AN ISSUE.

@vbokaty I suspect you mean tasmota32-display.bin firmware. In that case what version are you using? Only the latest development version supports both the LCD display and the optional bistable relay.

BTW the LCD display currently only works on the "normal" tasmota32.bin firmware.

vbokaty commented 2 years ago

Я только что попробовал датчик sonoff, и он действительно работает нормально. Так что мое подозрение на отсутствие подтягивающего резистора НЕ ЯВЛЯЕТСЯ ПРОБЛЕМОЙ.

@vbokaty Я подозреваю, что вы имеете в виду прошивку tasmota32-display.bin. В таком случае какую версию вы используете? Только последняя версия поддерживает как ЖК-дисплей, так и дополнительное бистабильное реле.

Кстати, ЖК-дисплей в настоящее время работает только на "обычной" прошивке tasmota32.bin.

Please giv me link to download tasmota32.bin ? I have tried different versions and no firmware is working LCD display

arendst commented 2 years ago

This one http://ota.tasmota.com/tasmota32/tasmota32.bin

vbokaty commented 2 years ago

http://ota.tasmota.com/tasmota32/tasmota32.bin

Thank you - it works!!!

LCD display shows DS18B20 Temperature and after a few seconds shows ESP32 temperature. How to show only DS18B20 ?

arendst commented 2 years ago

Disable ESP32 sensors with command SetSensor127 0 or force to select DS18B20 temperature with command GlobalTemp2 1 where you select the first temperature value from the JSON message.

vbokaty commented 2 years ago

Отключите датчики ESP32 с помощью команды SetSensor127 0или принудительно выберите температуру DS18B20 с помощью командыGlobalTemp2 1, в которой вы выбираете первое значение температуры из сообщения JSON.

Thanks everything works.

chu11u commented 2 years ago

I just tried the sonoff sensor and it indeed works fine. So my suspection of missing pullup resistor is NOT AN ISSUE.

Hi, this means I need to but a sensor with a built-in pullup resistor? this is weird because the standard firmware shows the temp. How do they do it?

arendst commented 2 years ago

No. As I wrote: the missing resistor is not an issue.

The sonoff provided sensor should work fine as @vbokaty just verified (and I by using an original TH16 DS18B20 connected to the THR316D.

You must have another issue.

vbokaty commented 2 years ago

Я только что попробовал датчик sonoff, и он действительно работает нормально. Так что мое подозрение на отсутствие подтягивающего резистора НЕ ЯВЛЯЕТСЯ ПРОБЛЕМОЙ.

Привет, это означает, что мне нужен датчик со встроенным подтягивающим резистором? это странно, потому что стандартная прошивка показывает температуру. Как они это делают? I bought this https://aliexpress.ru/item/1005003674650332.html?gatewayAdapt=glo2rus&sku_id=12000026753220145&spm=a2g0o.order_list.0.0.21efa3965Ootqx

chu11u commented 2 years ago

I think I still have the old one from the old TH I replaced. Ill give it a try

freddysherman commented 2 years ago

Just received Sonoff POW Elite 20A, managed to flash it and get the functionality using the latest development release of tasmota23.bin and the following template

{"NAME":"Sonoff POWEL20","GPIO":[32,0,9344,0,9345,576,0,0,0,0,9280,0,3104,0,320,0,0,0,0,0,0,9184,9248,9216,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}

paulinchen14 commented 2 years ago

Hallo, ich habe heute einen Sonoff POWR316D erhalten und mit dem letzten development release of tasmota32-DE.bin geflasht. Leider finde ich kein Template, wo die Powermessung funktioniert. Auf dem Web-IF werden keine gültigen Werte angezeigt?

Was ich herausgefunden habe:

Woran könnte das liegen?

{"NAME":"Sonoff POWR316D","GPIO":[32,0,0,0,0,576,0,0,0,0,9280,0,3104,0,320,0,0,224,0,0,0,9184,9248,9216,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}

blacknell commented 2 years ago

Is there anyway to connect up I2C by repurposing GPIO25 and one other? I can't see any other 'User' GPIO's listed but wondered if one more is accessible via a board hack? I'd forgo the display or an LED if there was. I can't find a schematic or board layout yet.

arendst commented 2 years ago

@paulinchen14 gpio21 is a relay in THR316D. You do not have a POWR316D.

@blacknell On the THR3xxD you can try to use the serial flash connector. On the POWR3xxD we do not support ANY ATTACHMENT AS IT WILL BE CONNECTED TO AC VOLTAGE.

blacknell commented 2 years ago

I should have been more explicit - I'm looking at THR3xxD, so I believe it'll BE GPIO 1&3 (?) although this is not clear. I'll buy one and have a look

paulinchen14 commented 2 years ago

@arendst: Du hast Recht, ich habe einen THR316D. Ich werde mir jetzt noch einen POWR316D kaufen.

stone17 commented 2 years ago

I notice that my Powr320d gets considerably warmer with this FW than with the standard Sonoff FW. Is that normal? Any way to lower the temp?

arendst commented 2 years ago

Make sure to use the correct supported template:

{"NAME":"Sonoff POWR320D","GPIO":[32,0,9313,0,9312,576,0,0,0,0,9280,0,3104,0,320,0,0,0,0,0,0,9184,9248,9216,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}

There are user templates floating around using the wrong bistable relay gpio config. The wrong ones keep supplying power to the relay instead of providing only a pulse. This heats up the device and breaks the relay very soon.

So pls check your template and report back.

stone17 commented 2 years ago

Make sure to use the correct supported template:

{"NAME":"Sonoff POWR320D","GPIO":[32,0,9313,0,9312,576,0,0,0,0,9280,0,3104,0,320,0,0,0,0,0,0,9184,9248,9216,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}

There are user templates floating around using the wrong bistable relay gpio config. The wrong ones keep supplying power to the relay instead of providing only a pulse. This heats up the device and breaks the relay very soon.

So pls check your template and report back.

Thanks a lot for quick answer. Only value 3 and 5 differed slightly to the config that I used, but the temperature is already dropping several degrees with your config. Was at 61C, now falling steadily.

arendst commented 2 years ago

Great!! Yes those are the two pins driving the relay and should be set like in the latest template.

CyrielRct commented 2 years ago

Really I want to say thank you for all the work done here. My THR320D is working perfectly. It took me a bit to figure out how to enable the gpio25 for my DS18b20 and force the display to show only the temperature of the sensor and not the ESP using 'GlobalTemp2 1'

Again thanks guys

philmo85 commented 2 years ago

Is this template also working with the (identical?) TH Origin THR316/THR320 versions without a display?

arendst commented 2 years ago

I guess so. Otherwise change the template and change the display GPIO numbers 9184, 9216, 9248 and 9280 to 0

ikk33 commented 2 years ago

Hello, I used your last template for POWR320D. But unfortunately the relay switching does not work. It behaves in such a way that when the toggle is ON, nothing happens. When toggled to OFF, the relay only clicks. Thank you for your advice.

{"NAME":"Sonoff SOWR320D","GPIO":32,0,9313,0,9312,576,0,0,0,0,9280,0,3104,0,320,0,0,0,0,0,0,9184,9248,9216,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1} Tasmota last version 12.0.2.4

arendst commented 2 years ago

Pls chk result of command so45. It should at least be 40. If it is try to increase to 80 and see if it changes anything.

And make sure to connect AC power as the relay needs 5V to switch.

ikk33 commented 2 years ago

Hello, I found out that the supplied module is wrong. I am currently handling a complaint with the supplier. I'll let you know how I get on when I get the new module. Thanks for your advice anyway.

so45 was set to 40

Chris-7-5 commented 2 years ago

Hello, my new Pow Elite 20A is flashed mit Tasmota 12.0.2.4. I use: {"NAME":"Sonoff POWR320D","GPIO":[32,0,9313,0,9312,576,0,0,0,0,9280,0,3104,0,320,0,0,0,0,0,0,9184,9248,9216,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1} The Problem ist, that the ESP Temperature is over 50°C. But when I touch the ESP32 it is normaly warm. So the temperature is wrong. Is it possible to calibrate the temperature? Tasmota

sfromis commented 2 years ago

That "sensor" does not work. Just ignore that useless number without reflection of reality, and get rid of the display using SetSensor127 0

Chris-7-5 commented 2 years ago

Thanks, now it's off.

muebau commented 2 years ago

I did flash my 20A version like described above (and here https://bangertech.de/sonoff-pow-elite/) and got it working.

There is a problem (if I don't miss something) with the voltage. The voltage is 0V (most of the time), 14V (sometimes) and 226V (correct, but just 1-2 times for 1 sec.) .

I restored the original firmware (dumped it before) and I see the correct voltage (225,9V) in the display if the relay is switched on.

What part do I miss?

muebau commented 2 years ago

For better understanding this are the steps is did:

arendst commented 2 years ago

Where did you get the template from? It's wrong.

The correct template is here https://templates.blakadder.com/sonoff_POWR320D.html and should be

 {"NAME":"Sonoff POWR320D","GPIO":[32,0,9313,0,9312,576,0,0,0,0,9280,0,3104,0,320,0,0,0,0,0,0,9184,9248,9216,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
ejohb commented 2 years ago

Unsure if this is the right place to ask, but:

I'd like to use the TX/RX pins to add an extra sensor/switch etc. But I read that other Sonoff devices had those pins connected to mains voltage (which seems utterly deranged, but anyway). Does anyone know if it's possible on this device?

sfromis commented 2 years ago

With energy monitoring devices, just do not try to add stuff to the board, as you can indeed expect "ground" to be at mains power level.

muebau commented 2 years ago

Where did you get the template from? It's wrong.

I got it from here: https://bangertech.de/sonoff-pow-elite/ The correct template is here https://templates.blakadder.com/sonoff_POWR320D.html and should be

 {"NAME":"Sonoff POWR320D","GPIO":[32,0,9313,0,9312,576,0,0,0,0,9280,0,3104,0,320,0,0,0,0,0,0,9184,9248,9216,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}

When I made a diff and found the difference. I will try it now. Thank you.

BangerTech commented 2 years ago

@muebau i changed it a few days ago maybe it was an old testing template ;-)

muebau commented 2 years ago

@muebau i changed it a few days ago maybe it was an old testing template ;-)

Thank you for the info. I couldn't wrap my head around it the last half an hour. 😂

BangerTech commented 2 years ago

@muebau sorry for that!

muebau commented 2 years ago

@muebau sorry for that!

It works like a charm now. Thank you for all your work and the very good tutorial. There is nothing to be sorry about 👍 😉

mariusrugan commented 2 years ago

hi,

thanks for everybody's work until now,

piggybacking with a question about display driver, just flashed a Sonoff THR320D and using template from here:

https://templates.blakadder.com/sonoff_THR320D.html

i don't see TM1621 in the list, so display is not functional. using Tasmota 12.1.0 flashed both tasmota32.bin and tasmota32-display.bin from http://ota.tasmota.com/tasmota32/release/

anyone can advise ? do i need to compile locally ? thanks!

arendst commented 2 years ago

tasmota32.bin v12.1.0 works just fine with THR320D. There is TM1621 in the list.

mariusrugan commented 2 years ago

thanks for your fast reply Theo,

i'm afraid i don't have it and template parameters are not selected (screenshot below).

Screenshot 2022-08-19 at 11 22 21

10:24:37.022 CMD: Backlog Template; Module; GPIO 255:
10:24:37.072 MQT: stat/SNF_A68CD8/RESULT = {"NAME":"Sonoff THR320D","GPIO":[32,0,0,0,226,9280,0,0,0,321,0,576,320,9184,9216,9312,0,0,9313,9248,0,1,0,3840,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
10:24:37.292 MQT: stat/SNF_A68CD8/RESULT = {"Module":{"0":"Sonoff THR320D"}}
10:24:37.563 MQT: stat/SNF_A68CD8/RESULT = {"GPIO0":{"32":"Button1"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"0":"None"},"GPIO4":{"226":"Relay3"},"GPIO5":{"9280":"TM1621 DAT"},"GPIO6":{"0":"None"},"GPIO7":{"0":"None"},"GPIO8":{"0":"None"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO11":{"0":"None"},"GPIO12":{"0":"None"},"GPIO13":{"321":"Led_i2"},"GPIO14":{"0":"None"},"GPIO15":{"576":"LedLink_i"},"GPIO16":{"320":"Led_i1"},"GPIO17":{"9184":"TM1621 CS"},"GPIO18":{"9216":"TM1621 WR"},"GPIO19":{"9312":"Relay_b1"},"GPIO20":{"0":"None"},"GPIO21":{"0":"None"},"GPIO22":{"9313":"Relay_b2"},"GPIO23":{"9248":"TM1621 RD"},"GPIO24":{"0":"None"},"GPIO25":{"1248":"SI7021"},"GPIO26":{"0":"None"},"GPIO27":{"3840":"Output Hi"},"GPIO32":{"0":"None"},"GPIO33":{"0":"None"},"GPIO34":{"0":"None"},"GPIO35":{"0":"None"},"GPIO36":{"0":"None"},"GPIO37":{"0":"None"},"GPIO38":{"0":"None"},"GPIO39":{"0":"None"}}
arendst commented 2 years ago

Pls provide output of command status 0

mariusrugan commented 2 years ago

thanks!

here it is,

10:29:19.386 CMD: status 0
10:29:19.399 MQT: stat/SNF_A68CD8/STATUS = {"Status":{"Module":0,"DeviceName":"THR320D_001","FriendlyName":["THR320D_001","THR320D_001"],"Topic":"SNF_A68CD8","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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0}}
10:29:19.411 MQT: stat/SNF_A68CD8/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32.bin","RestartReason":"Software reset CPU","Uptime":"0T00:34:58","StartupUTC":"2022-08-19T08:54:21","Sleep":50,"CfgHolder":4617,"BootCount":27,"BCResetTime":"2022-08-18T20:40:49","SaveCount":121}}
10:29:19.421 MQT: stat/SNF_A68CD8/STATUS2 = {"StatusFWR":{"Version":"12.1.0(display)","BuildDateTime":"2022-08-18T10:31:04","Core":"2_0_4_1","SDK":"v4.4.3","CpuFrequency":80,"Hardware":"ESP32-D0WD-V3 rev.3","CR":"430/699"}}
10:29:19.432 MQT: stat/SNF_A68CD8/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["WIFI",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C80001000600003C5A00192800000000","00000080","00006000","00004000","00000000"]}}
10:29:19.449 MQT: stat/SNF_A68CD8/STATUS4 = {"StatusMEM":{"ProgramSize":1235,"Free":1644,"Heap":154,"StackLowMark":4,"PsrMax":0,"PsrFree":0,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"16405E","FlashFrequency":40,"FlashMode":3,"Features":["00000809","0FAA85CE","00049FA1","000000C3","00000000","00000080","000000A0","403E8000","54000008","00000000"],"Drivers":"1,2,4,5,8,9,10,12,13,16,38,50,52,62","Sensors":"1,2,5,6,127"}}
10:29:19.462 MQT: stat/SNF_A68CD8/STATUS5 = {"StatusNET":{"Hostname":"SNF-A68CD8-3288","IPAddress":"192.168.1.150","Gateway":"192.168.1.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.1.5","DNSServer2":"0.0.0.0","Mac":"B8:D6:1A:A6:8C:D8","Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}
10:29:19.475 MQT: stat/SNF_A68CD8/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.1.205","MqttPort":1883,"MqttClientMask":"SNF_A68CD8","MqttClient":"SNF_A68CD8","MqttUser":"sonoff","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
10:29:19.489 MQT: stat/SNF_A68CD8/STATUS7 = {"StatusTIM":{"UTC":"2022-08-19T09:29:19","Local":"2022-08-19T10:29:19","StartDST":"2022-03-27T02:00:00","EndDST":"2022-10-30T03:00:00","Timezone":"+01:00","Sunrise":"05:48","Sunset":"19:58"}}
10:29:19.510 MQT: stat/SNF_A68CD8/STATUS10 = {"StatusSNS":{"Time":"2022-08-19T10:29:19","SI7021":{"Temperature":26.4,"Humidity":62.1,"DewPoint":18.5},"ESP32":{"Temperature":55.0},"TempUnit":"C"}}
10: 29: 19.525 MQT: stat / SNF_A68CD8 / STATUS11 = { "StatusSTS": { "Time": "2022-08-19T10:29:19", "Uptime": "0T00:34:58", "UptimeSec": 2098, "Heap": 154, "SleepMode": "Dynamic", "Sleep": 50, "LoadAvg": 23, "MqttCount": 1, "Berry": { "HeapUsed": 3, "Objects": 32 }, "POWER1": "OFF", "POWER2": "OFF", "Wifi": { "AP": 1, "SSId": "WIFI", "BSSId":"00:00:00:00:00:00","Channel":6,"Mode":"11n","RSSI":46,"Signal":-77,"LinkCount":1,"Downtime":"0T00:00:04"}}}
10:29:31.818 MQT: tele/SNF_A68CD8/STATE = {"Time":"2022-08-19T10:29:31","Uptime":"0T00:35:10","UptimeSec":2110,"Heap":159,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":3,"Objects":32},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"WIFI","BSSId":"00:00:00:00:00:00","Channel":6,"Mode":"11n","RSSI":46,"Signal":-77,"LinkCount":1,"Downtime":"0T00:00:04"}}
10:29:31.838 MQT: tele/SNF_A68CD8/SENSOR = {"Time":"2022-08-19T10:29:31","SI7021":{"Temperature":26.4,"Humidity":62.1,"DewPoint":18.5},"ESP32":{"Temperature":54.4},"TempUnit":"C"}
arendst commented 2 years ago

Ah. Use tasmota32.bin instead of tasmota32-display.bin

mariusrugan commented 2 years ago

thanks a lot, i was under the impression i did, i used the OTA URL and pressed update but it seems it didn't replace the firmware. i downloaded tasmota32.bin and manually uploaded it and it works. thanks a lot again!

VincentRouwhorst commented 2 years ago

Hi, my THR320D doesn't quite work with these instructions yet. The main relay does not work. The dry relay does work well.

status 0

20:40:28.861 MQT: stat/tasmota_A6A020/STATUS = {"Status":{"Module":0,"DeviceName":"SonoffTHR320D1","FriendlyName":["SonoffTHR320D1",""],"Topic":"tasmota_A6A020","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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0}}
20:40:28.871 MQT: stat/tasmota_A6A020/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32.bin","RestartReason":"Software reset CPU","Uptime":"0T03:23:43","StartupUTC":"2022-08-22T16:16:45","Sleep":50,"CfgHolder":4617,"BootCount":44,"BCResetTime":"2022-08-13T22:38:43","SaveCount":305}}
20:40:28.881 MQT: stat/tasmota_A6A020/STATUS2 = {"StatusFWR":{"Version":"12.1.0(tasmota)","BuildDateTime":"2022-08-18T10:30:21","Core":"2_0_4_1","SDK":"v4.4.3","CpuFrequency":80,"Hardware":"ESP32-D0WD-V3 rev.3","CR":"415/699"}}
20:40:28.889 MQT: stat/tasmota_A6A020/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["Excalibur",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C80001000680003C5A0A192800000000","00000080","00006000","00004000","00000000"]}}
20:40:28.916 MQT: stat/tasmota_A6A020/STATUS4 = {"StatusMEM":{"ProgramSize":1414,"Free":1465,"Heap":142,"StackLowMark":3,"PsrMax":0,"PsrFree":0,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"16405E","FlashFrequency":40,"FlashMode":3,"Features":["00000809","9F9AD7CF","0015A001","B7F7BFCF","05DA9BC0","E0360DC7","400840D2","20200000","D434482D","00000000"],"Drivers":"1,2,3,4,5,7,8,9,10,11,12,14,16,17,20,21,24,26,27,29,34,35,38,50,52,59,62,63,82,86,87","Sensors":"1,2,3,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,22,26,28,31,34,37,39,40,42,43,45,51,52,55,56,58,59,64,66,67,74,85,92,95,127"}}
20:40:28.934 MQT: stat/tasmota_A6A020/STATUS5 = {"StatusNET":{"Hostname":"tasmota-A6A020-0032","IPAddress":"192.168.5.69","Gateway":"192.168.5.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.5.3","DNSServer2":"0.0.0.0","Mac":"B8:D6:1A:A6:A0:20","Ethernet":{"Hostname":"","IPAddress":"0.0.0.0","Gateway":"0.0.0.0","Subnetmask":"0.0.0.0","DNSServer1":"0.0.0.0","DNSServer2":"0.0.0.0","Mac":"00:00:00:00:00:00"},"Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}
20:40:28.947 MQT: stat/tasmota_A6A020/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.5.2","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_A6A020","MqttUser":"home","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
20:40:28.960 MQT: stat/tasmota_A6A020/STATUS7 = {"StatusTIM":{"UTC":"2022-08-22T19:40:28","Local":"2022-08-22T20:40:28","StartDST":"2022-03-27T02:00:00","EndDST":"2022-10-30T03:00:00","Timezone":"+01:00","Sunrise":"05:53","Sunset":"19:52"}}
20:40:28.994 MQT: stat/tasmota_A6A020/STATUS10 = {"StatusSNS":{"Time":"2022-08-22T20:40:28","DS18B20":{"Id":"3C28E3813639","Temperature":25.4},"ESP32":{"Temperature":48.9},"TempUnit":"C"}}
20:40:29.007 MQT: stat/tasmota_A6A020/STATUS11 = {"StatusSTS":{"Time":"2022-08-22T20:40:28","Uptime":"0T03:23:43","UptimeSec":12223,"Heap":145,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":3,"Objects":40},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Excalibur","BSSId":"94:A6:7E:B6:FE:01","Channel":6,"Mode":"11n","RSSI":100,"Signal":-42,"LinkCount":1,"Downtime":"0T00:00:06"}}}
idea-thinker commented 2 years ago

I found this thread about the thr316/20 Sonoff device. This is my first time working with this device. I am having difficulty getting the THR316 to boot correctly and broadcast its network so I can connect. I used ESP-Flasher-x86 to flash the device with the binary tasmota32.bin. I download tasmota32.bin from the site that was referenced by (mariusrugan) in this thread. It flashes ok. I have connected to the serial port after reboot and I get a repeating message like the one below:

00:00:00.003-212/50 HDW: ESP32-D0WD-V3 00:00:00.053-210/49 UFS: FlashFS mounted with 308 kB free 00:00:00.104 CFG: Loaded from File, Count 2 00:00:00.120 QPC: Count 4 00:00:00.237 BRY: Berry initialized, RAM used=3735 bytes 00:00:00.266 Project tasmota - Tasmota Version 12.1.0(tasmota)-2_0_4_1(2022-08-18T10:30:21) 00:00:00.492 WIF: WifiManager active for 3 minutes ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DOUT, clock div:2 load:0x3fff0030,len:1184 load:0x40078000,len:12784 load:0x40080400,len:3032 entry 0x400805e4

00:00:00.003-212/50 HDW: ESP32-D0WD-V3 00:00:00.053-210/49 UFS: FlashFS mounted with 308 kB free 00:00:00.104 CFG: Loaded from File, Count 2 00:00:00.120 QPC: Count 5 00:00:00.237 BRY: Berry initialized, RAM used=3735 bytes 00:00:00.266 Project tasmota - Tasmota Version 12.1.0(tasmota)-2_0_4_1(2022-08-18T10:30:21) 00:00:00.492 WIF: WifiManager active for 3 minutes ets Jul 29 2019 12:21:46

I was able to do a status 0 and received the following:

status 0 00:00:00.680 CMD: status 0 00:00:00.689 RSL: STATUS = {"Status":{"Module":1,"DeviceName":"Tasmota","FriendlyName":["Tasmota"],"Topic":"tasmota_BCBEC4","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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0}} 00:00:00.725 RSL: STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32.bin","RestartReason":"Vbat power on reset","Uptime":"0T00:00:01","StartupUTC":"","Sleep":50,"CfgHolder":4617,"BootCount":0,"BCResetTime":"1970-01-01T00:00:00","SaveCount":2}} 00:00:00.751 RSL: STATUS2 = {"StatusFWR":{"Version":"12.1.0(tasmota)","BuildDateTime":"2022-08-18T10:30:21","Core":"2_0_4_1","SDK":"v4.4.3","CpuFrequency":80,"Hardware":"ESP32-D0WD-V3 rev.3","CR":"382/699"}} 00:00:00.777 RSL: STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C80001000600003C5A0A192800000000","00000080","00006000","00004000","00000000"]}} 00:00:01.247 RSL: STATUS4 = {"StatusMEM":{"ProgramSize":1414,"Free":1856,"Heap":202,"StackLowMark":4,"PsrMax":0,"PsrFree":0,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"16405E","FlashFrequency":40,"FlashMode":3,"Features":["00000809","9F9AD7CF","0015A001","B7F7BFCF","05DA9BC0","E0360DC7","400840D2","20200000","D434482D","00000000"],"Drivers":"1,2,3,4,5,7,8,9,10,11,12,14,16,17,20,21,24,26,27,29,34,35,38,50,52,59,62,63,82,86,87","Sensors":"1,2,3,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,22,26,28,31,34,37,39,40,42,43,45,51,52,55,56,58,59,64,66,67,74,85,92,95,127"}} 00:00:01.296 RSL: STATUS5 = {"StatusNET":{"Hostname":"tasmota-BCBEC4-7876","IPAddress":"0.0.0.0","Gateway":"192.168.1.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.1.1","DNSServer2":"0.0.0.0","Mac":"78:21:84:BC:BE:C4","Ethernet":{"Hostname":"","IPAddress":"0.0.0.0","Gateway":"0.0.0.0","Subnetmask":"0.0.0.0","DNSServer1":"0.0.0.0","DNSServer2":"0.0.0.0","Mac":"00:00:00:00:00:00"},"Webserver":2,"HTTPAPI":1,"WifiConfig":4,"WifiPower":17.0}} 00:00:01.333 RSL: STATUS6 = {"StatusMQT":{"MqttHost":"","MqttPort":1883,"MqttClientMask":"DVES%06X","MqttClient":"DVES_BCBEC4","MqttUser":"DVES_USER","MqttCount":0,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}} 00:00:01.360 RSL: STATUS7 = {"StatusTIM":{"UTC":"1970-01-01T00:00:01","Local":"1970-01-01T00:00:01","StartDST":"1970-01-01T00:00:00","EndDST":"1970-01-01T00:00:00","Timezone":"+00:00","Sunrise":"20:13","Sunset":"05:47"}} 00:00:01.381 RSL: STATUS10 = {"StatusSNS":{"Time":"1970-01-01T00:00:01","ESP32":{"Temperature":53.3},"TempUnit":"C"}} 00:00:01.392 RSL: STATUS11 = {"StatusSTS":{"Time":"1970-01-01T00:00:01","Uptime":"0T00:00:01","UptimeSec":1,"Heap":200,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":0,"MqttCount":0,"Berry":{"HeapUsed":3,"Objects":37}}} 00:00:02.058 WIF: WifiManager active for 3 minutes ets Jul 29 2019 12:21:46

If any one can point me in the correct direction I would greatly appreciate it.

Thanks; idea-thinker

sfromis commented 2 years ago

Recommended for easier flashing is the Tasmota Web Installer, which includes starting the initial config.

Anyway, with what you have, you need to configure wifi. You can either do that by connecting to the AP, or by commands. After than, there are other steps, specifically at least setting the template to match the hardware.

idea-thinker commented 2 years ago

Sfromis; I have tried the Tasmota Web Installer and loaded Tasmota32BlueTooth and Tasmota32LVGL. Not sure which is the correct one. For the Wifi config, I am not sure what needs to be done for this device so I can talk to it. In the past with other Sonoff devices I flash them and when I restart it they broadcast their own Wifi signal which connect to with my computer and then enter the network name and the ssid for the network and reboot the device and it is on the network. I have 12 Sonoff devices on my network currently. This THR316D device does not broadcast a network that I can connect too. I tried using the command line to enter an Access Point by name and that did not work. I tried WifiTest with my network name and password and that did not work. Any suggestions. I feel I am missing something simple here.

Thanks in Advance; idea-thinker