stefanbode / Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
127 stars 41 forks source link

DeepSleep | increase awake time #85

Closed AnhDuc85 closed 5 years ago

AnhDuc85 commented 5 years ago

Hi, I'm using the current master branch on wemosD1 with SR04T sensor. I've set DeepSleep via mqtt to 600 and telemetry period to 10.y device wakes up and goes back to DeepSleep without any issues but the time to report the sensor value seems too short. I receive only rssi and vcc values but no value of distance (SR04T). If the device is in normal mode, the distance value is send every 10 seconds.

Any idea how to increase awake time or how to fix this issue?

stefanbode commented 5 years ago

Hi, this is a known issue with some sensors. Normally most of them are fixed now. You can change the teleperiod to 15 or 20 and see if this fixes your problem. Anyway, this will impact battery live. Most sensors have a procedure: beforeteleriod. This should avoid this behavior.

drahdiwaberl commented 5 years ago

sorry for re-opening. but you say teleperiod 15 or 20 should make it more likely to get tele-messages than 10? in any case i got 3 DS18x20 on a wemos D1 mini and can't seem to get it being awake long enough to tele out - after a manual reboot it takes ~6secs after connection - no matter what period i set :(