Dashboard widegt not updating from ESP8266/MQTT after deepsleep


I’ve a sensor connected to an ESP8266 with MQTT and it works with a dashboard widget getting updated with sensor readings. But if I use deepsleep on the ESP8266 (so MQTT will disconnect and reconnect on wakeup) then the dashboard widget stops updating and just shows the last value from before going to sleep. The dashboard seems to know its getting later data as down the bottom it says correctly “Last data packet sent: April 19, 2017 11:50:23 AM” but the widgets don’t update.

Any suggestions on how to fix that?


Can you post your code? I’ll test it over here and see if I can make any suggestions.


Here it is. CayenneHttpTest1.ino.txt (859 Bytes) Interestingly, it works ok today! Could something have changed in the back end that caused it to start working?

Any comments on the approach - is there a way to push the reading instead of having to wait for Cayenne to pull it from the ESP?


Looks absolutely fine to me :+1: