Giter VIP home page Giter VIP logo

Comments (23)

stefanbode avatar stefanbode commented on July 20, 2024

Oh, definitely yes. I got the same problem during my last holiday and all of my remote devices build for last at least a year or two got empty. Yes, it is a bug.

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

Hi,

Could you extend time after wake up ? Or add parameter to set keep alive after wake upe SHT wants a fiew sec to start measuring I have 12 sec alive but I want 15-17 sec.

Rgds

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

I have a similar problem with the SR04. I need to do some investigations if it is better to do a redo, if the value is invalid or just add a configurable delay. The delay is easier because already DECREASED the time to the minimum. I just had to undo this.

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

Added a fix to ensure deepsleep, if MQTT or SSID is not available. Regarding the starttime I will need some time again.

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

I checked something and the starttime before measuring can already be influenced. There is no additional parameter required. First, you have to set deepsleep to 0. Then after a restart, the "normal" teleperiod is 10 when using the battery. This does the measuring as fast as possible. If you want more time before the measuring just increases teleperiod to 15 or 20 seconds. Then deepsleep back to 3600 or what ever you prefer. Works for me. The uptime is much longer.

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

Hi,

I do not undarstand that " just increases teleperiod to 15 or 20 seconds." and "irst, you have to set deepsleep to 0. Then after a restart, the "normal" teleperiod is 10 when using the battery."

haw it works ?

When my deepsleep is 300, I should set also teleperiod as well ? it will increase a measurement time when will wake up ?

I have the same

tele/wemeos/UPTIME_S {"Time":"2018-01-21T17:27:13", "Uptime_s":12}

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

0c066fb fixed

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

No just change the teleperiod to 20 for example to ensure at least 10 seconds UPTIME on top. The only problem is: You cannot change it as long as the device has a deepsleep defined. you need to disable it first to set a new value

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

Hi,

the same

tele/wemeos/UPTIME_S {"Time":"2018-01-21T23:03:27", "Uptime_s":12}

I have Teleperiod set to 20, I did 0 > restart > set 20 > deepsleep 300

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

if your UPTIME is 12s with teleperiod 20, please try teleperiod 30 to see, if there is a change. it works on my side.

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

The same

tele/wemeos/UPTIME_S {"Time":"2018-01-22T13:02:10", "Uptime_s":12}

I changed to 30 TELEPERIOD - I do not know why it hapened, that it not working as you said.

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

more than strange. Can you send a "teleperiod" after reboot to check what is the value. If everything is ok it should be 30.

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

stat/wemeos/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":3,"SysLog":0,"LogHost":"","LogPort":514,"SSId1":"robert_private","SSId2":"robert_private2","TelePeriod":30,"SetOption":"00000029"}}

tele/wemeos/STATE = {"Time":"2018-01-22T13:27:18","Uptime":0,"POWER":"ON", "Wifi":{"AP":1, "SSId":"robert_private", "RSSI":100, "APMac":"84:16:F9:C8:85:E6"}, "DeepSleep":0, "Heap":24640}

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

now is tele/wemeos/UPTIME_S {"Time":"2018-01-22T13:35:06", "Uptime_s":14}

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

Agree. now have the same behavior.... strange

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

Sorry, I tricked myself. Now it should work.

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

tele/wemeos/UPTIME_S {"Time":"2018-01-22T17:29:50", "Uptime_s":12}

there is maybe yield(); function that cause it - I use it in xsns_20_chirp_mois

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

Please double check that in sonoff.ino there is the following change:

//STB mod
  if (LocalTime() > 100) {
    tele_period = 8 ;
  } else {
    tele_period = 1 ;
  }
  //end

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

I have

//STB mod
if (LocalTime() > 100) {
tele_period = Settings.tele_period -2;
} else {
tele_period = Settings.tele_period -9;
}

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

old version. please update

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

hmm, I took fom GIT latest one

from sonoff-tasmota.

roblad avatar roblad commented on July 20, 2024

Hi,

tele/wemeos/UPTIME_S {"Time":"2018-01-22T20:33:41", "Uptime_s":34}

it was set on 30 but uptime have 34

from sonoff-tasmota.

stefanbode avatar stefanbode commented on July 20, 2024

yes this is normal because measure start at ~30sek and then it takes some time also MQTT takes some time and so on. It is nothing you can predict. But this now looks ok.

from sonoff-tasmota.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.