Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

homey app must restart for new data #56

Closed
spikehome opened this issue Oct 29, 2023 · 33 comments
Closed

homey app must restart for new data #56

spikehome opened this issue Oct 29, 2023 · 33 comments
Assignees

Comments

@spikehome
Copy link

spikehome commented Oct 29, 2023

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
Copy link
Owner

Please send a diagnostics report

@spikehome
Copy link
Author

spikehome commented Oct 29, 2023 via email

@burnacid
Copy link
Owner

---- 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
Copy link
Owner

burnacid commented Oct 29, 2023

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

@burnacid burnacid added help wanted Extra attention is needed Investigating labels Oct 29, 2023
@burnacid burnacid self-assigned this Oct 29, 2023
@spikehome
Copy link
Author

spikehome commented Oct 29, 2023

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
Copy link
Owner

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
Copy link
Author

spikehome commented Oct 29, 2023

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
Copy link
Owner

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

@spikehome
Copy link
Author

spikehome commented Oct 29, 2023 via email

@burnacid burnacid added bug Something isn't working Confirmed In Test and removed help wanted Extra attention is needed Investigating labels Oct 29, 2023
@burnacid
Copy link
Owner

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

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

@spikehome
Copy link
Author

spikehome commented Oct 30, 2023 via email

@spikehome
Copy link
Author

spikehome commented Oct 30, 2023 via email

@burnacid
Copy link
Owner

@MichelFalke welke error krijg je?
Op welk device?

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

@burnacid
Copy link
Owner

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
Copy link
Author

spikehome commented Oct 30, 2023 via email

@burnacid
Copy link
Owner

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
#56 (comment),
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
Copy link
Author

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
Copy link
Owner

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

@spikehome
Copy link
Author

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

@burnacid
Copy link
Owner

@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
Copy link
Author

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

@burnacid
Copy link
Owner

burnacid commented Oct 31, 2023

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

@spikehome
Copy link
Author

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

@spikehome
Copy link
Author

IMG_0117
Image from device

@burnacid
Copy link
Owner

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

@spikehome
Copy link
Author

spikehome commented Oct 31, 2023

IMG_0118

i use defaults

@burnacid
Copy link
Owner

[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
Copy link
Author

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

@burnacid
Copy link
Owner

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
Copy link
Author

spikehome commented Oct 31, 2023

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

no water metering

@burnacid
Copy link
Owner

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
Copy link
Author

spikehome commented Nov 1, 2023

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

@Mike2873
Copy link

Mike2873 commented Nov 1, 2023

Here it also works again. Version 0.78 thanks

@burnacid burnacid closed this as completed Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants