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.71k stars 4.72k forks source link

SonOff MiniR4 looses MQTT subscription domoticz/out #21506

Closed Hans-Sh closed 1 month ago

Hans-Sh commented 1 month ago

PROBLEM DESCRIPTION

Sonoff MiniR4 (ESP32-D0WD-V3 v3.1) serial flashed with Tasmota 14.0.0 (GPIO26 FAN connected to Relais1 as idx1, PIR connected to GPIO 27 as Switch idx2) connected to Domoticz. A dzventz script starts the fan for an amount of time after signal of the PIR. Works fine, but after several hours upto days the relais isn't activated anymore despite there is a domoticz/out command to switch on or off. In this state:

REQUESTED INFORMATION

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

- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:

- [V ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:
As the command subscribe isn't available in the regular firmware I only could make a screendump after an reconnect with also shows the subscribed topics:
![image](https://github.com/arendst/Tasmota/assets/62076285/60add4df-b56d-4118-91f5-109880664d7b)

### TO REPRODUCE
_Steps to reproduce the behavior:_
Restart Tasmota and wait till it fails after hours upto days

### EXPECTED BEHAVIOUR
_A clear and concise description of what you expected to happen._
Tasmota to repond allways after MQTT message in domoticz/out for this device

### SCREENSHOTS
_If applicable, add screenshots to help explain your problem._
Screenshot with all subscribed topicz after restart:
![image](https://github.com/arendst/Tasmota/assets/62076285/66fb9b7c-ceba-4c99-8b68-98143f9b2516)

### ADDITIONAL CONTEXT
_Add any other context about the problem here._
Is all occations I could track and trace the command sequence:
PIR fires > Tasmota sents MQTT to Domoticz 
Domoticz MQTT respons via Musquitto is visual in MQTT Explorer:
{
    "Battery" : 255,
    "LastUpdate" : "2024-05-27 12:05:04",
    "RSSI" : 12,
    "description" : "",
    "dtype" : "Light/Switch",
    "hwid" : "52",
    "id" : "000141A0",
    "idx" : 336,
    "name" : "HLso37 Relais",
    "nvalue" : 0,
    "org_hwid" : "52",
    "stype" : "Switch",
    "svalue1" : "0",
    "switchType" : "On/Off",
    "unit" : 1
}
{
    "Battery" : 255,
    "LastUpdate" : "2024-05-27 12:05:02",
    "RSSI" : 12,
    "description" : "",
    "dtype" : "Light/Switch",
    "hwid" : "52",
    "id" : "000141A0",
    "idx" : 336,
    "name" : "HLso37 Relais",
    "nvalue" : 1,
    "org_hwid" : "52",
    "stype" : "Switch",
    "svalue1" : "0",
    "switchType" : "On/Off",
    "unit" : 1
}
But there is nothing visual in Tasmota Console and Relais isn't activated.

**(Please, remember to close the issue when the problem has been addressed)**
arendst commented 1 month ago

Already fixed in v14.0.0.1

Hans-Sh commented 1 month ago

Txs for your quick response I will update this case after upgrade and test period. Thanks for your superb work!

Hans-Sh commented 1 month ago

After 2 days of testing the device keeps communicating with Domoticz via MQTT. But I do see several Restarts with reason Software reset CPU. I prosume the MQTT subscription issue occured after an underlaying issue which is visual now. As there is no crash logging visual I have started to Log to my Synology Log server. Thanks for resolving the MQTT domoticz/out subscription issue. I will continue to investigate the frequent Software reset CPU issue