Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeepSleep is not working with Rule1 5 setting. Device does not stay ON but instead goes right back into DeepSleep after Wakeup. #23044

Open
1 of 6 tasks
LucidEye opened this issue Feb 21, 2025 · 0 comments

Comments

@LucidEye
Copy link

LucidEye commented Feb 21, 2025

PROBLEM DESCRIPTION

DeepSleep Wakeup rule is not working with Timers correctly when setting Rule1 5 (wakeup ONCE and then STAY ON).
My goal is to run an ESP32-CAM module using a solar panel/battery as a power source, so I need the ESP32-CAM to go to into DeepSleep at sunset to conserve battery power at night, and then come out of DeepSleep at Sunrise... I need this to happen every day.

When setting Rule1 Wakeup, then setting Rule1 5, then setting a Timer to wakeup the device from DeepSleep ONCE and NOT go back to sleep... this fails... instead of staying awake, the device goes back into DeepSleep Countdown immediately after waking up.

REQUESTED INFORMATION

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

  • [ X] Read the Contributing Guide and Policy and the Code of Conduct
  • [ X] Searched the problem in issues
  • [ X] Searched the problem in discussions
  • [ X] Searched the problem in the docs
  • [ X] Searched the problem in the chat
  • Problem is not scripter related, in this case open a discussion and tag gemu2015
  • [ X] Device used (e.g., Sonoff Basic): Generic ESP32-CAM module
  • [ X] Tasmota binary firmware version number used: Tasmota32 WebCam 14.4.1
    • [X ] Pre-compiled
    • Self-compiled
  • [ X] Flashing tools used: Tasmota Web Page Installer
  • Provide the output of command: Backlog Template; Module; GPIO 255:
  Configuration output here:
14:40:27.947 MQT: stat/tasmota-cam/RESULT = {"NAME":"ESP32-Cam","GPIO":[4992,1,672,1,416,5088,1,1,1,6720,736,704,1,1,5089,5090,0,5091,5184,5152,0,5120,5024,5056,0,0,0,0,4928,1,5094,5095,5092,0,0,5093],"FLAG":0,"BASE":2}
14:40:28.174 MQT: stat/tasmota-cam/RESULT = {"Module":{"0":"ESP32-Cam"}}
14:40:28.433 MQT: stat/tasmota-cam/RESULT = {"GPIO0":{"4992":"CAM_XCLK"},"GPIO1":{"0":"None"},"GPIO2":{"672":"SPI MISO1"},"GPIO3":{"0":"None"},"GPIO4":{"416":"PWM1"},"GPIO5":{"5088":"CAM_DATA1"},"GPIO6":{"0":"None"},"GPIO7":{"0":"None"},"GPIO8":{"0":"None"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO11":{"0":"None"},"GPIO12":{"0":"None"},"GPIO13":{"6720":"SDCard CS"},"GPIO14":{"736":"SPI CLK1"},"GPIO15":{"704":"SPI MOSI1"},"GPIO16":{"0":"None"},"GPIO17":{"0":"None"},"GPIO18":{"5089":"CAM_DATA2"},"GPIO19":{"5090":"CAM_DATA3"},"GPIO20":{"0":"None"},"GPIO21":{"5091":"CAM_DATA4"},"GPIO22":{"5184":"CAM_PCLK"},"GPIO23":{"5152":"CAM_HREF"},"GPIO24":{"0":"None"},"GPIO25":{"5120":"CAM_VSYNC"},"GPIO26":{"5024":"CAM_SIOD"},"GPIO27":{"5056":"CAM_SIOC"},"GPIO32":{"4928":"CAM_PWDN"},"GPIO33":{"0":"None"},"GPIO34":{"5094":"CAM_DATA7"},"GPIO35":{"5095":"CAM_DATA8"},"GPIO36":{"5092":"CAM_DATA5"},"GPIO37":{"0":"None"},"GPIO38":{"0":"None"},"GPIO39":{"5093":"CAM_DATA6"}}
  • If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
  Rules output here:
14:37:03.073 MQT: stat/tasmota-cam/RESULT = {"Rule1":{"State":"ON","Once":"ON","StopOnError":"OFF","Length":6,"Free":505,"Rules":"Wakeup"}}
14:37:03.302 MQT: stat/tasmota-cam/RESULT = {"Rule2":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
14:37:03.552 MQT: stat/tasmota-cam/RESULT = {"Rule3":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
  • Provide the output of this command: Status 0:
  STATUS 0 output here:
14:37:33.363 MQT: stat/tasmota-cam/STATUS = {"Status":{"Module":0,"DeviceName":"Tasmota-CAM","FriendlyName":["Tasmota-CAM"],"Topic":"tasmota-cam","ButtonTopic":"0","Power":"0","PowerLock":"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,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0,"StatusRetain":0}}
14:37:33.396 MQT: stat/tasmota-cam/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32-webcam.bin","RestartReason":"Vbat power on reset","Uptime":"0T00:01:44","StartupUTC":"2025-02-21T21:35:49","Sleep":50,"CfgHolder":4617,"BootCount":143,"BCResetTime":"2024-02-22T06:42:25","SaveCount":711}}
14:37:33.432 MQT: stat/tasmota-cam/STATUS2 = {"StatusFWR":{"Version":"14.4.1(release-webcam)","BuildDateTime":"2024-12-15T13:32:56","Core":"3_1_0","SDK":"5.3.2","CpuFrequency":240,"Hardware":"ESP32-D0WDQ6 v1.0","CR":"405/699"}}
14:37:33.456 MQT: stat/tasmota-cam/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["LucidWerks",""],"TelePeriod":900,"Resolution":"558180C0","SetOption":["00008109","2805C80000000600003C5A00192800000000","000080A8","00406000","00004000","00000001"]}}
14:37:33.485 MQT: stat/tasmota-cam/STATUS4 = {"StatusMEM":{"ProgramSize":1297,"Free":1582,"Heap":117,"StackLowMark":4,"PsrMax":4096,"PsrFree":3309,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"1640D8","FlashFrequency":80,"FlashMode":"DIO","Features":["0809","0F0005CE","00040001","00000001","00000000","00000880","80000080","00200000","54000008","00000080","00000004"],"Drivers":"1,2,4,9,10,12,29,38,50,52,62,81,!121","Sensors":"1,127","I2CDriver":""}}
14:37:33.522 MQT: stat/tasmota-cam/STATUS5 = {"StatusNET":{"Hostname":"Tasmota-CAM","IPAddress":"192.168.3.65","Gateway":"192.168.3.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.3.1","DNSServer2":"0.0.0.0","Mac":"40:22:D8:06:28:74","IP6Global":"","IP6Local":"fe80::4222:d8ff:fe06:2874%st1","Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":7.0}}
14:37:33.558 MQT: stat/tasmota-cam/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.3.39","MqttPort":1883,"MqttClientMask":"Tasmota-CAM","MqttClient":"Tasmota-CAM","MqttUser":"lucid","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
14:37:33.585 MQT: stat/tasmota-cam/STATUS7 = {"StatusTIM":{"UTC":"2025-02-21T21:37:33Z","Local":"2025-02-21T14:37:33","StartDST":"2025-03-30T02:00:00","EndDST":"2025-10-26T03:00:00","Timezone":"-07:00","Sunrise":"06:51","Sunset":"18:13"}}
14:37:33.602 MQT: stat/tasmota-cam/STATUS10 = {"StatusSNS":{"Time":"2025-02-21T14:37:33","ESP32":{"Temperature":119.0},"TempUnit":"F"}}
14:37:33.622 MQT: stat/tasmota-cam/STATUS11 = {"StatusSTS":{"Time":"2025-02-21T14:37:33","Uptime":"0T00:01:44","UptimeSec":104,"Heap":117,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":3,"Objects":34},"POWER":"OFF","Dimmer":100,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"LucidWerks","BSSId":"E4:F4:C6:14:AE:49","Channel":3,"Mode":"HT40","RSSI":100,"Signal":-32,"LinkCount":1,"Downtime":"0T00:00:04"}}}
  • Set weblog to 4 and then, when you experience your issue, provide the output of the Console log:
  Console output here:
There is nothing different that occurs in the weblog between a wakeup and a full reboot.

TO REPRODUCE

Steps to reproduce the behavior:
I followed the Documentation exactly...
I set "Rule1 Wakeup"
Then I set "Rule1 5" which is supposed to wake up the device from deepsleep oon the next wakeup event and then STAY ON and NOT go back into DeepSleep mode unless specifically commanded to do so again.

EXPECTED BEHAVIOUR

I expected this to behave like it is described in the Documentation...
When setting "Rule1 Wakeup" to mode ONCE by setting "Rule1 5" and then having a timer wake the device from DeepSleep the device is supposed to stay ON and NOT go back into DeepSleep immediately after waking up.

Image

SCREENSHOTS

If applicable, add screenshots to help explain your problem.
Here is my Timer setting that I used to wake the device from DeepSleep at a specific time... the device does wake up at the set time, but then immediately goes back into DeepSleep Countdown instead of staying awake like it is supposed to.

Image

ADDITIONAL CONTEXT

Add any other context about the problem here.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant