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

Tasmota on the rainpoint device does not retain the state at which the power was lost #21552

Closed ArrowPrint closed 1 month ago

ArrowPrint commented 1 month ago

PROBLEM DESCRIPTION

Hello, I got the rainpoint device setup and set the rules on the tasmota console. {"NAME":"RainPoint","GPIO":[0,0,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":54,"CMND":"TuyaMCU 81,107|TuyaMCU 12,109|TuyaMCU 11,1|TuyaMCU 82,104"}

the problem is when the device reboots eg. loss of power, the automation stops and goes from

"Time":"2024-06-03T14:00:20","Uptime":"0T00:10:09","UptimeSec":609,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":22,"MqttCount":1,"POWER1":"OFF","POWER2":"ON","Wifi":{"AP":1,"SSId":"xxxxx 2g","BSSId":"xxxxxx","Channel":1,"Mode":"11n","RSSI":74,"Signal":-63,"LinkCount":1,"Downtime":"0T00:00:03"}}

{"Time":"2024-06-03T14:00:20","TuyaSNS":{"Timer1":5391,"Timer2":0}

to

stat/rainpoint/STATUS11 = {"StatusSTS":{"Time":"2024-06-03T14:04:17","Uptime":"0T00:00:06","UptimeSec":6,"Heap":22,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":31,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"xxxxx 2g","BSSId":"xxxxxx","Channel":1,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":1,"Downtime":"0T00:00:03"}}}

{"Time":"2024-06-03T14:04:17","TuyaSNS":{"Timer1":11547,"Timer2":null}

How to get it go back to the last auto run and timer 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:
rule3
on tuyareceived#dptype2id102 do publish %topic%/duration %value% endon 
on var2#state do tuyasend2 102,%value% endon 
on tuyareceived#dptype2id103 do publish %topic%/frequency %value% endon 
on var3#state do tuyasend2 103,%value% endon 
on tuyareceived#dptype4id106 do publish %topic%/mode %value% endon 
on tuyareceived#dptype4id108 do publish %topic%/battery %value% endon 
- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:

TO REPRODUCE

turn power off and on to the rainpoint device

EXPECTED BEHAVIOUR

Need to make sure that the Power2 and timer1 retains the state at which it was turned off

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)