I have around 60+ WiFi devices (many DIY). All of the are working just fine and do not exhibit any problems except for the IotaWatt. The IotaWatt is periodically (every 2-3 weeks) becomes unresponsive (no ping, no anything else) even local LED blinks Green which means it pretend to be still connected to the router (Asus RT-BE88U). Rebooting (unfortunately only by recycling IotaWatt power) usually is not enough (sometime it works but usually does not). The only way to bring IotaWatt back on line is: 1. Turn OFF power to IotawaT; 2. Reboot Router; 3. Wait no less than 5 min; 4. Restore power to the Iotawatt. Normally I am agains for things like periodic reboots but in this case I am thinking to periodically (every week) recycle Iotawatt power. Questions: 1. Is it any reasonable explanation for this IotaWatt behavior (this happens to be only one problematic device). 2. Is it anything better solution other than periodic recycling power (I did not try this yet and therefore not sure if this will/may help)?
PS. I am using @ogiewon IotaWatt driver but this problem has nothing to do with a driver.
Sound like automating this could be the "easiest" solution and it could just be the device.
If you're up for wifi troubleshooting, the Asus RT-BE88U does provide wifi logs you should be able to find the IotaWatt in those logs with its mac address. From the symptoms stated i would be looking for a disconnect reason code and the RSSI
Example:
mac address disconnected from HomeWiFi with an RSSI of 55dBm due to reason code 0
wifi disconnect reason codes are vendor agnostic and cisco has some great docs to explain what they mean.
if the disconnect RSSI is greater than ~80dBm, that's just good ol fashion interference.
I have a collection of older and newer WiFi IP cameras. Some of the older ones have an annoying habit of going offline from WiFi and never trying to reconnect. The newer ones seem to never do this.
I have Zwave power switches on the more important (older) ones so I can power cycle them when they get lost. I don't love the solution but the vendor isn't publishing firmware updates on the older cameras so I'm stuck.
You could probably create a rule that would detect if your watt meter was offline or not responding and then power cycle a ZEN04 (or something similar) to wake it up.
Iotawatt already powered with smart plug for a long time but I did not create any rule yet. When it fails it is not pingable so I can easily detect a connection failure. But the biggest problem is - when it fails recycling its power does not restore a connection. I have to reboot a router as well but at this time Iotawatt must be powered off. I will try a periodic proactive reboot of Iotawatt and see what happens The Iotawatt CPU is an ESP32. I have like 20 devices based on ESP32 but only Iotawatt exhibit this problem, all others are 100% happy.
Thank you for the advice, I will check an Asus logs. But what can I do based on the logs?
RSSI is very good. There is an WiFi Mesh Extender within 2ft from Iotawatt. BTW, I added this extender hopping it will fix the problem. Things got better but the problem still exist.
Troubleshooting? That is why devices have logs. if you dont understand what an error means you can google it or use AI to help narrow down the casue. It’s no different than using the internet to answer any other question you my have.
If thats not your jam, thats cool too. You’ve already identified a workaround that would be straight forward to automate effectively resolving your issue.
Most likely, it is the Asus Router’s fault. I have two IoTaWatt devices, and I never have this sort of issue with them disconnecting and not automatically reconnecting to WiFi. My network is 100% Ubiquiti UniFi these days. I used to have Asus routers years ago, but grew weary of problems exactly like you are describing.
Maybe. But this does not explain why only IotaWatt has this problem. There are 60+ Wifi devices on the 2.4GHz band. About half of them DIY ESP32 (Hubduino, etc.). Other than IotaWatt (which is also ESP32) the network is very solid. I am in a big apartment building (400 units, and everyone has a WiFi router). I am really surprised how stable is WiFi and Yes! Zigbee as well in this extremely noisy environment. Basically the entire 2.4GHz band is 100% occupied (checked with spectrum analyser).
Place another ESP32 device in the exact same location as your iotawatt and monitor its behavior. Location-dependent effects like shielding and interference can make a big difference in WiFi performance.
The IoTaWatt uses an ESP8266 NodeMCU module, not an ESP32. Not that it should matter, but just wanted to clarify in case it helps during your research and troubleshooting.
Why only the IoTaWatt? I don’t know. The WiFi antenna for the ESP8266 is pretty small, and sometimes users install the device in a somewhat hostile EMF environment. Not sure exactly how you’ve got yours installed, but might be something to think about. Mine are in plastic enclosures next to the electrical panels. Even so, I made sure I had UniFi wireless access points pretty close by to ensure a strong WiFi signal.