logo elektroda
logo elektroda
X
logo elektroda

How to Enter Safe Mode on Battery Powered Temp & Humidity Sensor with OpenBeken?

minusync 204 2
ADVERTISEMENT
  • #1 21528451
    minusync
    Level 9  
    Hi
    I have battery powered simple temp and humidity sensor and I just can't get it to the safe mode.
    I have tried power cycle 5 times 8 times 10 times actually dozens and dozens of times, I tried rest button but it just reboots to initial setup.
    So I have 2 questions.

    How to I do it?
    Why doesn't openbeken just use reset button that every device has, as safe mode initiation?
    Thanks
  • ADVERTISEMENT
  • #2 21528492
    p.kaczmarek2
    Moderator Smart Home
    Are they using deep sleep? Maybe it interferes.

    Or are they TuyaMCU?

    How else would you like to reset? Tasmota has long press to reset, and it was often causing problems for me, when I was testing various GPIO configurations. When I set wrong pin and it was in high state, the Tasmota was interpreting it as RESET and returning to AP mode...
    Helpful post? Buy me a coffee.
  • #3 21528652
    minusync
    Level 9  
    p.kaczmarek2 wrote:
    Are they using deep sleep? Maybe it interferes.

    It is 2 years, unfortunately I dont remember anymore...
    p.kaczmarek2 wrote:
    Or are they TuyaMCU?

    This could be true.
    Behavior implements for me that and I actually really like that. I have set up (at least I tried) so that it would report temperature only every 90 minutes. But when temperature changes rapidly it actually ignores that and reports even every minute until some stable temperature is achieved again. In my mind that's how every battery device should function. When temperature does not change there is no need to waste energy to report the same numbers again and again. It only wakes up when there is something to report. I got battery life about 4 months to that device, this is still lightyears behind Bluetooth devices tho..
    (Device is this https://www.elektroda.com/rtvforum/topic3947585.html As I said 2 years)

    Update
    It was absolutely impossible to enter safe mode - however I was able to implement workaround.
    When I push reset button device wakes up for about 10 sec, that time I can open device window in browser. Next push - I can open web application. I was so even able to do OTA.
    Now when I was able to install latest version maybe you can say, do I need to make some changes to autoexec.bat I used 2 years ago? It could be outdated now.

    startDriver tuyaMCU
    startDriver tmSensor
    linkTuyaMCUOutputToChannel 1 val 1
    setChannelType 1 Temperature_Div10
    linkTuyaMCUOutputToChannel 2 val 2
    setChannelType 2 Humidity
    linkTuyaMCUOutputToChannel 3 val 3
    setChannelType 3 BatteryLevelPercent
    scheduleHADiscovery
    
ADVERTISEMENT