} else {
Serial.println("Can't get HVAC status") ;
What do you get if you swap this to print (acState) I see from the //, you have checked the line earlier.
Explore... Chat... Share...
Moderator: igrr
} else {
Serial.println("Can't get HVAC status") ;
Barnabybear wrote:Hi, try putting a reset in strieght after it wakes from deepsleep. I read someware that wake from deepsleep & reset are not quite the same.
Barnabybear wrote:Code: Select all} else {
Serial.println("Can't get HVAC status") ;
What do you get if you swap this to print (acState) I see from the //, you have checked the line earlier.
Serial.print("HVAC State: ") ;
Serial.println(acState) ;
if (acState == "cooling") {
Serial.println("HVAC cooling, check vibration sensor to see if window AC is running") ;
if (!acRunning()) {
powerAC() ;
}
} else if (acState == "off") {
Serial.println("HVAC off, check vibration sensor to see if window AC is off") ;
if (acRunning()) {
powerAC() ;
}
} else {
Serial.println("Can't get HVAC status") ;
}
BryanLee wrote:Unless there is a way of determining if the ESP is in it's initial boot
rst_info *rinfo;
rinfo = ESP.getResetInfoPtr();
Serial.println(String("ResetInfo.reason = ") + (*rinfo).reason);
martinayotte wrote:BryanLee wrote:Unless there is a way of determining if the ESP is in it's initial boot
I don't know if that can help since I didn't tried it in deepsleep context.Code: Select allrst_info *rinfo;
rinfo = ESP.getResetInfoPtr();
Serial.println(String("ResetInfo.reason = ") + (*rinfo).reason);
extern "C" {
#include <user_interface.h>
}
Serial.println("We're alive") ;
rst_info *rinfo;
rinfo = ESP.getResetInfoPtr();
Serial.println(String("ResetInfo.reason = ") + (*rinfo).reason);
// if we woke from deep sleep, do a full reset
// this is needed because http gets from deep sleep are not properly returned.
// test to see if this is fixed in future esp8266 libraries
if ((*rinfo).reason == REASON_DEEP_SLEEP_AWAKE) {
Serial.println("Woke from deep sleep, performing full reset") ;
ESP.restart() ;
}
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]