[ST Edge] •• Tasmota Edge •• for Sonoff, Tuya & many other ESP WiFi & HTTP devices - over 2000 Tasmota supported devices

Yes, it works like any other output (relay).

Thanks for fixing it… it is working as expected now. Like you said, it is a little “slow” (i have 14 sensors config). I need to compare it to one with only 8 sensors. thank you!

How slow is this? I’m expecting < ~1sec, depending on your Wifi and Tasmota device.

I’m checking.

1 Like

it’s a good 2-3 seconds.

I’m not sure what has changed recently, but this seems to be working for the most part now, so thank you for whatever it is that you did!

My results are similar to @MagicMike’s. Connections are much more reliable, but not perfect. Thanks for the improvement!

Tasmota Edge Update!

  • Added a new setting option to Contact / Motion Sensor to allow switching of profile between Contact Sensor, Motion Sensor, Water Leak Sensor, Smoke Detector, CO Detector or Alarm Siren.

Update will automatically be pushed and installed to your hub. Version: 2023.2.1

1 Like

How does the Alarm Siren option work? What is the tasmota configuration set to for this pin? I thought sirens are connected via a relay.

Hi @hongtat
This is the output for the BLE device. (Instructions I’ve read says I should add the bindkey for the sensor, but i don’t get it to be stable at the moment. I still see the measured temperature of the sensor in the Tasmota user interface though without the bindkey. ) Edit: no difference of output with bindkey OK

{“Status”:{“Module”:1,“DeviceName”:“Tasmota”,“FriendlyName”:[“Tasmota”],“Topic”:“tasmota_77C604”,“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,“StatusRetain”:0},“StatusPRM”:{“Baudrate”:115200,“SerialConfig”:“8N1”,“GroupTopic”:“tasmotas”,“OtaUrl”:“https://ota.tasmota.com/tasmota32/release/tasmota32.bin",“RestartReason”:"Software reset CPU”,“Uptime”:“0T00:16:07”,“StartupUTC”:“2023-02-03T20:20:07”,“Sleep”:50,“CfgHolder”:4617,“BootCount”:10,“BCResetTime”:“2023-01-28T18:25:22”,“SaveCount”:20},“StatusFWR”:{“Version”:“12.3.1(bluetooth)”,“BuildDateTime”:“2023-01-24T09:37:44”,“Core”:“2_0_5_3”,“SDK”:“v4.4.3”,“CpuFrequency”:160,“Hardware”:“ESP32-D0WD-V3 rev.3”,“CR”:“471/699”},“StatusLOG”:{“SerialLog”:2,“WebLog”:2,“MqttLog”:0,“SysLog”:0,“LogHost”:“”,“LogPort”:514,“SSId”:[“xxx”,“”],“TelePeriod”:300,“Resolution”:“558180C0”,“SetOption”:[“00008009”,“2805C80001000600003C5A0A192800000000”,“00000080”,“00006000”,“00004002”,“00000000”]},“StatusMEM”:{“ProgramSize”:1611,“Free”:1268,“Heap”:75,“StackLowMark”:3,“PsrMax”:0,“PsrFree”:0,“ProgramFlashSize”:4096,“FlashSize”:4096,“FlashChipId”:“16405E”,“FlashFrequency”:40,“FlashMode”:“DIO”,“Features”:[“00000809”,“8F9AC7C7”,“00148001”,“000000CF”,“010013C0”,“C0000981”,“40004080”,“00200000”,“5400082C”,“00000080”],“Drivers”:“1,2,3,4,5,7,8,9,10,12,16,20,21,24,26,27,29,35,38,50,52,59,62,79,82,85”,“Sensors”:“1,2,3,5,6,52,62,127”},“StatusNET”:{“Hostname”:“tasmota-77C604-1540”,“IPAddress”:“192.168.1.121”,“Gateway”:“192.168.1.1”,“Subnetmask”:“255.255.255.0”,“DNSServer1”:“192.168.1.1”,“DNSServer2”:“0.0.0.0”,“Mac”:“40:22:D8:77:C6:04”,“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},“StatusMQT”:{“MqttHost”:“”,“MqttPort”:1883,“MqttClientMask”:“DVES_%06X”,“MqttClient”:“DVES_77C604”,“MqttUser”:“DVES_USER”,“MqttCount”:0,“MAX_PACKET_SIZE”:1200,“KEEPALIVE”:30,“SOCKET_TIMEOUT”:4},“StatusTIM”:{“UTC”:“2023-02-03T20:36:14”,“Local”:“2023-02-03T21:36:14”,“StartDST”:“2023-03-26T02:00:00”,“EndDST”:“2023-10-29T03:00:00”,“Timezone”:“+01:00”,“Sunrise”:“08:17”,“Sunset”:“17:49”},“StatusSNS”:{“Time”:“2023-02-03T21:36:14”},“StatusSTS”:{“Time”:“2023-02-03T21:36:14”,“Uptime”:“0T00:16:07”,“UptimeSec”:967,“Heap”:74,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“MqttCount”:0,“Berry”:{“HeapUsed”:4,“Objects”:48},“Wifi”:{“AP”:1,“SSId”:“xxx”,“BSSId”:“DA:07:B6:FF:F1:69”,“Channel”:5,“Mode”:“11n”,“RSSI”:86,“Signal”:-57,“LinkCount”:1,“Downtime”:“0T00:00:08”}}}

Console says:
22:28:39.053 RSL: SENSOR = {“Time”:“2023-02-03T22:28:39”,“LYWSD030b0154”:{“mac”:“a4c1380b0154”,“Temperature”:21.9,“Humidity”:31.0,“DewPoint”:4.0,“Battery”:88,“RSSI”:-59},“TempUnit”:“C”}

22:28:48.061 RSL: BLE = {“BLEOperation”:{“opid”:“3”,“stat”:“7”,“state”:“DONENOTIFIED”,“MAC”:“A4C1380B0154”,“u”:“84213760”,“svc”:“ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6”,“notifychar”:“ebe0ccc1-7a0a-4b0c-8a1a-6ff2997da3a6”,“notify”:“85081F2E0B”}}

22:28:52.061 RSL: STATE = {“Time”:“2023-02-03T22:28:52”,“Uptime”:“0T00:20:23”,“UptimeSec”:1223,“Heap”:78,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“MqttCount”:0,“Berry”:{“HeapUsed”:3,“Objects”:43},“Wifi”:{“AP”:1,“SSId”:“xxx”,“BSSId”:“DA:07:B6:FF:F1:69”,“Channel”:5,“Mode”:“11n”,“RSSI”:80,“Signal”:-60,“LinkCount”:1,“Downtime”:“0T00:00:09”}}

22:28:52.092 RSL: BLE = {“Time”:“2023-02-03T22:28:52”,“BLEDevices”:{“total”:3,“14BB6ED4C40E”:{“i”:0,“r”:-76},“C655A806BDB2”:{“i”:1,“r”:-82},“A4C1380B0154”:{“i”:2,“r”:-60}}}

22:28:52.107 RSL: BLE = {“Time”:“2023-02-03T22:28:52”,“BLE”:{“scans”:60,“adverts”:8475,“devices”:3,“resets”:0}}

I am noticing recently that some of the events on my Tasmota Edge devices are not being registered in Smartthings, but they are appearing in the Tasmota console. I can consistently see “Switch2” go “On” and “Off” in the Tasmota console when I open/close the door, but i only sometimes see the status change in Smartthings and only see some of the events in the device history. This seems to be a recent development. Any ideas?

I tried rebooting my hub, but the contact sensor device is still reporting inconsistently. I noticed that the settings of my front door tasmota contact sensor is different than the back door tasmota contact sensor. They are both on the same esp8266 board. Is this normal? Or is something wrong ?

Here’s the front door settings. I think it is reporting consistently.


Here’s the backdoor settings which is behaving inconsistently.

How many switches do you have in the same ESP board? What is the interval between each on/off (event)?

I have 7 switches and 1 relay. The interval can be a few seconds as someone opens, exits, and closes a door. The front door and back door are the two switches that get the most activity like this. It is rare that both are active at the same time.

i have a device connected to tasmota connect and new tasmota edge. Tasmota connect updates status in <1s, while tasmota edge takes about 15s to update. Can you help me?

Please remove Tasmota Connect and all devices created under it.

And delete and recreate them under Tasmota Edge.

Thanks Hongtat, i did as you said. Worked perfectly.
I am a purchasing the unlimited version and supporting your work. Congratulations

1 Like

@hongtat when I view the console log the switch that works consistently looks like this:

21:00:36.006 RUL: SWITCH1#STATE performs “backlog event sw=SW1_1”
21:00:36.013 RSL: RESULT = {“Switch1”:{“Action”:“ON”}}
21:00:37.016 RSL: RESULT = {“Event”:“Done”}
21:00:37.056 RUL: EVENT#SW performs “WebQuery http://192.168.1.197:35353/j POST [Content-Type:application/json] {“Mac”:“CC50E3DC888C”,“cb”: “Status 0”}”
21:00:37.437 RSL: RESULT = {“WebQuery”:“Done”}

But the switch that is mostly failing looks like this:

21:06:21.630 RSL: RESULT = {“Switch2”:{“Action”:“ON”}}
21:06:25.520 RSL: RESULT = {“Switch2”:{“Action”:“OFF”}}

Is something wrong with the edge device installation? Or could I be missing something in the tasmota configuration for this switch?

my devices stopped talking to the hub. :frowning:
Getting this error in the console. 02:57:20.232 RSL: RESULT = {“WebQuery”:“Connect failed”}
Opened the ST app and tried to access to tasmota edge gateway, and it doesn’t open.
The IP and port matches in the ST app, and on the tasmota console log.

02:55:18.197 RSL: STATE = {“Time”:“2023-02-06T02:55:18”,“Uptime”:“15T19:38:54”,“UptimeSec”:1366734,“Heap”:144,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“MqttCount”:0,“Berry”:{“HeapUsed”:3,“Objects”:43},“POWER”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“Indigo-IOT”,“BSSId”:“F0:3E:90:DA:CF:78”,“Channel”:1,“Mode”:“11n”,“RSSI”:100,“Signal”:-50,“LinkCount”:32,“Downtime”:“0T00:08:55”}}
02:55:18.214 RSL: SENSOR = {“Time”:“2023-02-06T02:55:18”,“Switch1”:“ON”,“Switch2”:“ON”,“Switch3”:“ON”,“Switch4”:“ON”,“Switch5”:“ON”,“Switch6”:“ON”,“Switch7”:“ON”,“Switch8”:“ON”,“Switch9”:“ON”,“Switch10”:“ON”,“Switch11”:“ON”,“Switch12”:“ON”,“Switch13”:“ON”,“Switch14”:“ON”}
02:56:43.595 RUL: SWITCH9#STATE performs “backlog event sw=SW9_0”
02:56:43.602 RSL: RESULT = {“Switch9”:{“Action”:“OFF”}}
02:56:43.618 RSL: RESULT = {“Event”:“Done”}
02:56:43.650 RUL: EVENT#SW performs “WebQuery http://192.168.1.103:40375/j POST [Content-Type:application/json] {“Mac”:“94B555F49600”,“cb”: “Status 0”}”
02:57:01.707 RSL: RESULT = {“WebQuery”:“Connect failed”}
02:57:01.784 RUL: SWITCH9#STATE performs “backlog event sw=SW9_1”
02:57:01.792 RSL: RESULT = {“Switch9”:{“Action”:“ON”}}
02:57:01.807 RSL: RESULT = {“Event”:“Done”}
02:57:01.841 RUL: EVENT#SW performs “WebQuery http://192.168.1.103:40375/j POST [Content-Type:application/json] {“Mac”:“94B555F49600”,“cb”: “Status 0”}”
02:57:20.232 RSL: RESULT = {“WebQuery”:“Connect failed”}

rebooted the ST hub and all is working again.
Did a new software version cause this? Do we need to restart after a new code release?

@hongtat I’ve removed and reinstalled all the Tasmota related devices in my Smartthings app. I think I had corrupted my installation of the contact sensors somehow. After performing the installation/configuration again, the switches seem to be behaving as expected.