Sleep mode still a problem?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
robatbentley
Normal user
Posts: 69
Joined: 18 Mar 2017, 22:13
Location: Newcastle/UK

Sleep mode still a problem?

#1 Post by robatbentley » 09 Aug 2018, 20:46

Further to this viewtopic.php?f=4&t=5629 post ("VCC and BME280 Device Problem on recent builds"), I've applied the latest build ESP_Easy_mega-20180809_test_ESP8266_4096_VCC to my node_mcu device, with a BME280 THP device attached (along with voltage divider for VCC measurements), to find that the original problem has been fixed (ref #1621 here https://github.com/letscontrolit/ESPEasy/issues/1621). The problem I'm now experiencing is that the device fails to communicate (with Domoticz) or device details update when in sleep mode. i.e. They work fine in non-sleep mode.

I've also applied the same firmware version (but non-VCC) ESP_Easy_mega-20180809_normal_ESP8266_4096 to a different node_mcu with a BME280 also in sleep mode and experienced the same problem.

Has a sleep-mode problem been introduced since build ESP_Easy_mega-20180522_normal_ESP8266_4096? ...as this older build works fine for both devices, sleep-mode or otherwise.
Be good to get this fixed as I'd rather be able to move forward with updated builds for my battery operated BME280 nodes.
If you need more details or suggest things for me to try then please let me know. I enjoy using these nodes with ESPEasy and don't mind putting the time and effort into getting them working.
For now, heading back to build ESP_Easy_mega-20180522_normal_ESP8266_4096 for my VCC/BME280 node.
Thanks in anticipation...
RobUpNorth

TD-er
Core team member
Posts: 8644
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Sleep mode still a problem?

#2 Post by TD-er » 09 Aug 2018, 22:16

Could you also try to use Domoticz HTTP instead of, or alongside Domoticz MQTT?
If that works, then you're suffering from this issue: https://github.com/letscontrolit/ESPEasy/issues/1638
:)

robatbentley
Normal user
Posts: 69
Joined: 18 Mar 2017, 22:13
Location: Newcastle/UK

Re: Sleep mode still a problem?

#3 Post by robatbentley » 10 Aug 2018, 00:11

No problem - I'll check it out tomorow.

Not quite tomorrow...

Just had a look at my battery (VCC and BME280) node and it's setup with 2 controllers: "Domoticz HTTP" and "OpenHAB MQTT" - the latter used to send my THP data from the BME280 node to my LCD nodes displaying the THP info using a "Generic - MQTT Import" device. The former (HTTP) sends THP info to Domoticz.

Anyway, I (a) uploaded firmware ESP_Easy_mega-20180809_test_ESP8266_4096_VCCI (b) deactivated the OpenHAB MQTT controller and (c) reset my BME280 node to sleep mode and, after a few minutes (sleep mode delay set to 60 secs) my Domoticz began receiving good THP & VCC data from the BME280 node.

I then reset reactivated the BME280 nodes OpenHAB MQTT controller (no sleep mode) and good data received in Domoticz and my LCD nodes.

I then reactivated the BME280 nodes sleep mode and no THP or VCC data received in Domoticz at all.

I then rebooted the BME280/VCC node and waiting for response but no updates to Domoticz.

Looks like sleep mode with the MQTT controller active is causing a problem. I'll look into the link you suggested but, for now, I'll leave it with the latest build.
RobUpNorth

CoolWombat
Normal user
Posts: 30
Joined: 31 Oct 2015, 08:00

Re: Sleep mode still a problem?

#4 Post by CoolWombat » 26 Aug 2018, 03:19

Have you had a chance to test this out? I've just flashed the latest 20180822 and it looks like I am encountering similar issue. I'm using MQTT to OpenHAB. My setup -

1st device - analog input (to measure battery)
2nd device - BME280

With the previous 20180716, I have the following settings -
Sleep awake - 1 sec
Sleep time - 120 sec
1st device/analog interval - 60 sec
2nd device/BME280 interval - 60 sec

Everything seems fine as I can see that the data from 1st and 2nd devices are posted viat MQTT to OpenHAB -
/esp_C89327/status/LWT Connected
/esp_C89327/Battery/Analog 3.85
/esp_C89327/BME280/Temperature 14.52
/esp_C89327/BME280/Humidity 65.95
/esp_C89327/BME280/Pressure 1005.01
/esp_C89327/status/LWT Connection Lost

With the new firmware and no changes to the settings, I only get the analog value posted to OpenHAB. The only way I can get this to work is to manipulate the values to -
Sleep awake - 6 sec
Sleep time - 120 sec
1st device/analog interval - 60 sec
2nd device/BME280 interval - 3 sec

It seems like the interval for analog is not so critical as its value is send as soon as the ESP8266 wakes up from sleep. However, the values from the BME280 are not sent if I leave it at 60 sec. With the interval set to 3 sec, I can see that the values are sent after the ESP2866 is awake for about 3 sec. As I have set the sleep awake to 6 sec, it goes to sleep before the second lot of values from the BME280 get sent. I guess this works, but it's wasting power as I would rather the ESP8266 goes to sleep as soon as it has sent all the data like before. The 6 sec is a trial and error, when I had it at 5 sec, it sometimes doesn't send the values from the BME280.

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests