burnacid / homey-com.burnacid.ztatz

Homey app for P1 Monitor ztatz (https://www.ztatz.nl/)
GNU General Public License v3.0
0 stars 3 forks source link

[BUG] Ztatz connection fails after a few minutes #42

Closed Cuflee closed 2 years ago

Cuflee commented 2 years ago

Describe the bug Installed ZTATZ and added the "P1 Dagelijks verbruik" device for the local URL http://p1mon.fritz.box. Pressed "check" and it found the "P1 Daily Usage" after that it added and was indicating usage flawlessly. I've also added "P1 Usage" and "P1 Generatie" in the same way without any issues. After a while (minutes) they all started having the red exclamation mark. Opening a device now tells me that it is currently unavailable.

I checked the URL itself, but it is perfectly functional. Tried restarting the app, did not work. Adding another device at this moment tells me that there are no other devices available.

Only after completely removing the ZTATZ app and reinstalling it again I could add the devices and they are functional for minutes again before getting the red exclamation mark again.

To Reproduce Steps to reproduce the behavior:

Expected behavior I would have expected the application to keep working as it did the first couple of minutes.

Screenshots err1 err2

Smartphone (please complete the following information):

burnacid commented 2 years ago

Can you please create a diagnostic report. You can find this in the ZTATZ app settings

Cuflee commented 2 years ago

Hmmm... I reinstalled the app, tried to add a device, typed my local URL just like before (http://p1mon.fritz.box) but now pressing "check" keeps indicating "Er zijn geen nieuwe apparaten gevonden" (no new devices found). Already tried a couple of times, where it could find the devices without any issues before it can't anymore so there is also no way for me to get them back in failed state again at the moment. I will try again tomorrow. The URL itself is working fine.

burnacid commented 2 years ago

Can you try connecting on IP instead of DNS name?

Cuflee commented 2 years ago

Weird..., that somehow seems to solve all of the issues. It could find the devices but I have them active without issues for a couple of hours now already. Thanks!

burnacid commented 2 years ago

Homey for some reason can't resolve the DNS name. That might have something to do with your network setup. I can't really change that in the app.