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

homey app must restart for new data #56

Closed spikehome closed 8 months ago

spikehome commented 10 months ago

there was a new version for homey sinds i not get info from my ztatz, only when i restart the app i get info then it stops again. the update not work. Changelog

0.7.428 okt 2023 Added error catching to stop crashes 0.7.311 dec 2022 Link correction on Homey App portal 0.7.210 dec 2022 Small bugfix to prevent app crash 0.7.16 dec 2022 Fixed naming issues new phases device 0.7.04 dec 2022 Added device: Phases

burnacid commented 10 months ago

Please send a diagnostics report

spikehome commented 10 months ago

3b3c79ab-a0cd-45f6-8299-de3a31ffabe6

burnacid commented 10 months ago
---- stdout ----  
 [ztatzP1Mon] ztatzP1Mon is running... 
 [ManagerDrivers] [Driver:ztatz_p1_Daily_Usage] [Device:0dca4e10-d33b-43c2-a1b7-76e74dd9a96d] onInit { type: 'SmartMeter_Usage', url: '-- private url redacted --' }
 [ManagerDrivers] [Driver:ztatz_p1_Daily_Usage] [Device:0dca4e10-d33b-43c2-a1b7-76e74dd9a96d] _initDevice register flow triggers
 [ManagerDrivers] [Driver:ztatz_p1_Generation] [Device:abcf9a0d-8b0b-49f9-825b-34c033e48bcf] onInit { type: 'SmartMeter_Generation', url: '-- private url redacted --' }
 [ManagerDrivers] [Driver:ztatz_p1_Generation] [Device:abcf9a0d-8b0b-49f9-825b-34c033e48bcf] _initDevice register flow triggers 2023-10-29T07:19:56.377Z 
 [ManagerDrivers] [Driver:ztatz_p1_Usage] [Device:7e87b2ef-6983-4499-baf8-de4366945fdb] onInit { type: 'SmartMeter_Usage', url: '-- private url redacted --' }
 [ManagerDrivers] [Driver:ztatz_p1_Usage] [Device:7e87b2ef-6983-4499-baf8-de4366945fdb] _initDevice register flow triggers
 [ManagerDrivers] [Driver:ztatz_p1_Daily_Usage] [Device:0dca4e10-d33b-43c2-a1b7-76e74dd9a96d] Set WaterAPI to version 2
 ---- stderr ---- 
burnacid commented 10 months ago

I see nothing erroring. You say it's not working at all. Is this for all the 3 devices? Is it showing an error? Or is it not showing the values are updated?

Can you send me the output of your API: http:///api/v1/smartmeter?limit=1 Can you screenshot the values of the usage device and post it here please

Thx

spikehome commented 10 months ago

output: [["2023-10-29 08:57:54", 1698566274, 0, 10921.234, 7450.392, 14816.125, 34099.514, "D", 0, 0, 1511.691]]

tis morning i saw the daly stats was more then 10hours updates. so i restarted the apps and i saw i cot new daiy stats.

But at the p1 monitor i saw everything was fine only ik needed to upgrade to the latest version. so busy now update and restarted also the ztatz after putted a msg here :( but the zatz seems working fine and only the app was the prolems seems

burnacid commented 10 months ago

Not sure what is happening. It all works fine for me. Your logs don't show any errors. I'm expecting it might just not cycle the refresh trigger. You get new info if you restart the app once?

What kind of Homey do you have?

spikehome commented 10 months ago

it seems only the daily stats get not a update/ now its 30m sinds last update says homey I use homey 2019

edit: upgraded now to de newest ztatz, but the daily meter is not update every x.

burnacid commented 10 months ago

Check so not all the devices. I'll look into that as soon as I can

spikehome commented 10 months ago

No probleem.

At the moment the daily use had the last 6 hours no update . When i restart the app i have a new daily use.

Op zo 29 okt 2023 om 13:46 schreef Stefan Lenders @.***>

Check so not all the devices. I'll look into that as soon as I can

— Reply to this email directly, view it on GitHub https://github.com/burnacid/homey-com.burnacid.ztatz/issues/56#issuecomment-1784097628, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7HE3KQXTITA6VJ7KKLHGLYBY6YPAVCNFSM6AAAAAA6UUK5ESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGA4TONRSHA . You are receiving this because you authored the thread.Message ID: @.***>

burnacid commented 10 months ago

Can you install this test version and tell me if this works for you?

https://homey.app/a/com.burnacid.ztatz/test/

spikehome commented 10 months ago

Hij wordt nog niet geupdate [image: image.png]

Op zo 29 okt 2023 om 21:25 schreef Stefan Lenders @.***

:

Can you install this test version and tell me if this works for you?

https://homey.app/a/com.burnacid.ztatz/test/

— Reply to this email directly, view it on GitHub https://github.com/burnacid/homey-com.burnacid.ztatz/issues/56#issuecomment-1784216267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7HE3IZ4ZAAXVW7VIRN2P3YB2UT3AVCNFSM6AAAAAA6UUK5ESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGIYTMMRWG4 . You are receiving this because you authored the thread.Message ID: @.***>

spikehome commented 10 months ago

app herstart nu staat ie op enkele seconden dus even afwachten

Op zo 29 okt 2023 om 21:25 schreef Stefan Lenders @.***

:

Can you install this test version and tell me if this works for you?

https://homey.app/a/com.burnacid.ztatz/test/

— Reply to this email directly, view it on GitHub https://github.com/burnacid/homey-com.burnacid.ztatz/issues/56#issuecomment-1784216267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7HE3IZ4ZAAXVW7VIRN2P3YB2UT3AVCNFSM6AAAAAA6UUK5ESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGIYTMMRWG4 . You are receiving this because you authored the thread.Message ID: @.***>

burnacid commented 10 months ago

@MichelFalke welke error krijg je? Op welk device?

Maak aub eventueel een diagnostic report (dit vind je onder de settings van de app)

burnacid commented 10 months ago

I've made a small adjustment to the test version. You can try installing it through https://homey.app/a/com.burnacid.ztatz/test/

spikehome commented 10 months ago

Daily device is unreachable

Op ma 30 okt 2023 om 18:23 schreef Stefan Lenders @.***>

I've made a small adjustment to the test version. You can try installing it through https://homey.app/a/com.burnacid.ztatz/test/

— Reply to this email directly, view it on GitHub https://github.com/burnacid/homey-com.burnacid.ztatz/issues/56#issuecomment-1785707485, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7HE3PLDAEGWGFEEBNA25TYB7PANAVCNFSM6AAAAAA6UUK5ESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBVG4YDONBYGU . You are receiving this because you authored the thread.Message ID: @.***>

burnacid commented 10 months ago

Daily device is unreachable

Op ma 30 okt 2023 om 18:23 schreef Stefan Lenders @.***>

I've made a small adjustment to the test version. You can try installing it through https://homey.app/a/com.burnacid.ztatz/test/

— Reply to this email directly, view it on GitHub https://github.com/burnacid/homey-com.burnacid.ztatz/issues/56#issuecomment-1785707485, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7HE3PLDAEGWGFEEBNA25TYB7PANAVCNFSM6AAAAAA6UUK5ESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBVG4YDONBYGU . You are receiving this because you authored the thread.Message ID: @.***>

Can you go to the settings of the device. Flick on debug. Wait for 1 or 2 minutes and then create a diagnostics report for the app

spikehome commented 10 months ago

Set de debug mode in at the daily device. Waited and created a new report from the app. Report number = 455fdd88-9a26-4870-ba34-fbf85988ecaa

burnacid commented 10 months ago

Seen the issue, thx. Will create a fix for that as soon as I can

spikehome commented 10 months ago

Nice, i install the actual version again at the homey then.

burnacid commented 10 months ago

@spikehome and @MichelFalke added a new test version: https://homey.app/nl-nl/app/com.burnacid.ztatz/ZTATZ/test/ Please let me know if this fixes all for you.

spikehome commented 10 months ago

I get again a error at the daily device. Deleted the devices and added it again, same problem

burnacid commented 10 months ago

as before, enable debug, wait a few minutes and send report. It works all fine for me...

spikehome commented 10 months ago

Here it is ae49aebb-07a3-4273-8975-06ae66ccbc7e

spikehome commented 10 months ago

IMG_0117 Image from device

burnacid commented 10 months ago

What version of Ztatz are your running? What Water API version do you have selected in the P1 Daily Usage?

spikehome commented 10 months ago

IMG_0118

i use defaults

burnacid commented 10 months ago

[http://xxxxxxxxx/v1] [STATUS] {"title":"404 Not Found"} 2023-10-31T21:41:50.118

It is trying to pull water info from v1 API. But 2.4.0 has only water info on v2 API When you restart the app it should auto switch that. Why it doesn't for you I'm unsure.

In the settings of the P1 Daily Usage device you should be able to switch it to v2.

spikehome commented 10 months ago

Ah, set v2 now thats works Now wait a hour to look of it updates

burnacid commented 10 months ago

I think, I know why this might happen. Will try some stuff. I'm no longer a Ztatz user myself so I emulate the API

I guess you do not gather water information with ZTATZ do you?

spikehome commented 10 months ago

Just looked again an i see new Numbers are updates a few seconds ago. So seems it works

no water metering

burnacid commented 10 months ago

Noticed an issue with my API Emulator. And added another catch to fetch an empty reply. If you would be so kind to install the new test and re-install the P1 Daily Usage device if you don't mind helping me with that.

It should than select v2 automatically

https://homey.app/a/com.burnacid.ztatz/test/

spikehome commented 10 months ago

Yes it is woking directly now The app is Version 0.78 now

Mike2873 commented 10 months ago

Here it also works again. Version 0.78 thanks