Open iLLiac4 opened 9 months ago
I have few other questions:
I have few other questions:
- What happens if wifi is lost?
- Is there a reset button to zero it? Similar to this one https://github.com/oh2mp/esp32_energymeter ? TNX
Hello iLLiac4,
if wifi is not available on start-up , the SW will wait until can connect. /Wait for connection/ while (WiFi.status() != WL_CONNECTED) { delay(500);
Serial.print(".");
} 1.1 on mqtt loss, the system waits 3s than tryes to reconnect on wifi + mqtt
/reconect on Mqtt loss/ if (client.state()< 0) {
Serial.println("No MQTT Connection, reconnect");
delay (3000); setup(); ...
there is no physical reset button, if is the case I just plug out the USB cable than reconnect it. But...the mqtt commands can be used to do this automatically (in home-assistant you can link it to automation).
"Additionally the following mqtt commands can be used:
- topic: /pulseenergymonitor/cmd
- payload: c / r
c - clear kWh information
r - reset the device"
Hi. Would it be possible to add DHT22 support? And also yearly usage.
TNX
DHT22 seams to be possible trough the DHT library, unfortunately I do have such a sensor, therefore, I would not be able to test it. Would it be great if you could implement it on a fork, then merge it with this. Yearly usage was on in my plan, I need to analyze if it would be possible to add.
Regards.
Hi. Would it be possible to add DHT22 support? And also yearly usage.
TNX