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

Values not being polled by themselves anymore. #162

Closed
htbuddha opened this issue Nov 11, 2024 · 16 comments
Closed

Values not being polled by themselves anymore. #162

htbuddha opened this issue Nov 11, 2024 · 16 comments

Comments

@htbuddha
Copy link

Describe the bug
The values, amongst which the ambient temperature (sensor.1911140050034_ambient_temperature) do not update anymore on its own. They only update when I open the MCZ app on my phone.
I'm not sure, but I THINK this issue arose since some HA update.

Expected behavior
The values should update every X seconds based on the "interval to poll data" setting, which is the default 30 seconds in my HA.

Screenshots
image

Diagnostics File
Please tell me which file(s) I should upload, where I can find them... for you to debug this.

@htbuddha
Copy link
Author

Looks like it might be related to the MCZ Maestro - Upgrade app (?)
It often does not update the values (20.5 celsius on the stove, 22 celsius still on the app).

https://apps.apple.com/be/app/mcz-maestro-upgrade/id6450749440?l=nl

There was an update 1 month ago. to Version 1.7.3. I'd like to roll back to 1.7.2. to see if the issue is resolved then, but I'm not sure how to get the 1.7.2. version on my phone.

@Robbe-B
Copy link
Owner

Robbe-B commented Nov 12, 2024

Hi, @htbuddha,
Thanks for reporting this issue.
It's probably the same issue as #114

@htbuddha
Copy link
Author

It looks very similar indeed, though I have not had this issue since February. This is a very recent appearance for me. Either since last HA updates or MCZ - Upgrade App update. I'd say the issue has been happing for maybe a month now.

Very annoying as I rely greatly on this.

HA does not get the data anymore, unless I open the app on my phone. (Either apps, the non upgrade app, with flames in the icon or the upgrade app)

@htbuddha
Copy link
Author

Another weird thing is that this morning my automation was actually successfully triggered. Since this issue arose it hasn't been triggered lately.

image

image
image

As you can see the graph in picture one does not reflect the change in temperate correctly.

@Robbe-B
Copy link
Owner

Robbe-B commented Nov 12, 2024

@htbuddha,
In order to start somewhere, can you give me the diagnostics file ?

@htbuddha
Copy link
Author

Sure how can I send it privately? Do you have discord?

@Robbe-B
Copy link
Owner

Robbe-B commented Nov 12, 2024

@htbuddha,
All security critical fields are already redacted by the integration.
You can safely post it here.

@htbuddha
Copy link
Author

I'm hesitant because it displays which devices are present in my household. I'm a security oriented person.

Here, it will be burned after reading once: https://brnaftr.me/bxrqKEzd4H/habiTant-Produce-eLigible-skEtch

@Robbe-B
Copy link
Owner

Robbe-B commented Nov 19, 2024

@htbuddha,
Since when did this stopped working ?
Can you see this in your HA history ?
Can any events be linked to this point in time ? An update of some sort ? (HA update, MCZ Integration update, ...)
Kind regards,
Robbe

@htbuddha
Copy link
Author

@htbuddha, Since when did this stopped working ? Can you see this in your HA history ? Can any events be linked to this point in time ? An update of some sort ? (HA update, MCZ Integration update, ...) Kind regards, Robbe

I can't see it in the history anymore, as I reinstalled your integration removing all the historic data. I would estimate it being around 1 month. And yes it could be linked to either an HA update, or a MCZ app update. As I stated previously that the MCZ app had been updated to 1.7.3. There have also been HA updates since. Pinpointing which of both causes the issue is something I can't do. I'd happily install MCZ - Upgrade app version 1.7.2 but I can't find the .ipa file of the previous version anywhere.

Looks like it might be related to the MCZ Maestro - Upgrade app (?) It often does not update the values (20.5 celsius on the stove, 22 celsius still on the app).

https://apps.apple.com/be/app/mcz-maestro-upgrade/id6450749440?l=nl

There was an update 1 month ago. to Version 1.7.3. I'd like to roll back to 1.7.2. to see if the issue is resolved then, but I'm not sure how to get the 1.7.2. version on my phone.

@htbuddha
Copy link
Author

I'm restoring to a 6 October backup of HA, will report back.

@htbuddha
Copy link
Author

Appears to have the same issue on the following HA version:
image

Odds are its the 1.7.3 "MCZ - Upgrade" app update, how would I go about obtaining version 1.7.2 .ipa to side load?

@Robbe-B
Copy link
Owner

Robbe-B commented Nov 19, 2024

Odds are its the 1.7.3 "MCZ - Upgrade" app update, how would I go about obtaining version 1.7.2 .ipa to side load?

I'm not sure what you mean by this, because the android/iOS app doesn't have anything to do with this integration.
MCZ frequently updates there backend (cloud) servers, here they often make changes that then goes hand in hand with an android/iOS app update.
Our goal here is to mimic the behavior of this app into a home assistant integration, making it a challenge for us to keep up.

The only things that might have introduced this issue are the following:

  1. MCZ Cloud Server logic update => We need to counter this by finding out what they've changed.
  2. A MCZ Integration for Home Assistant change (this repo) => I did something wrong in the code, introducing this issue.
  3. A HA Core update (very unlikely) => Some changes in the core HA repo introduced this issue.
  4. A MCZ Stove Firmware update got installed on your stove, introducing this issue (unlikely because I would then expect this same issue in the Android /iOS app)

I suspect it will be the first one, it's out of our control, MCZ doesn't really have a public API, nor do they have documentation for us to use on this.

@htbuddha
Copy link
Author

htbuddha commented Nov 19, 2024

I think the app does actually have something to do with this.
The previous versions of the MCZ stoves have two apps available.

This app - The "dumb" app:
https://play.google.com/store/apps/details?id=it.fluidsoft.mcz.maestro&hl=nl
And this app - the "upgrade" app:
https://play.google.com/store/apps/details?id=it.mcz.maestro.one&hl=nl

In order for my stove to be connected with the cloud, I had to install the "upgrade" app. And it is only with the upgrade app, that this integration works. I believe the upgrade app reads the values from the stove locally, and pushes them onto the cloud. This way, your integration can read the data from said cloud.

The integration has since worked flawlessly, until it didn't anymore - about a month ago. Which coincides with the 1.7.3 update.

I have both apps on my phone still. And whenever I open either of them, and wait a while, the values are correctly shown by your integration. If I never open either of the apps, your integration does not manage to read the correct data (anymore).

However, previously, simply having the app installed sufficed for your integration to pull the correct data from the cloud.

This makes me think that for some reason the data is no longer continuously pulled locally and pushed to the cloud, and it only does so when you open the app - or when something, a setting on the stove changes (for example switching silent to noise). And that is precisely what has to be solved.

@Robbe-B
Copy link
Owner

Robbe-B commented Nov 19, 2024

@htbuddha,
Thanks for the clarification !
I do agree it's a bit odd that this suddenly stopped working.
From what I understand from your detailed explanation, this is definitely the same issue as #114.

So therefore I'll close this issue in favour of the other one.
Any further questions or follow-up can be handled via the other issue.

Personally, I can't do much about this because we need to figure out what the app is doing differently on the older stove models (your model) compared to what the app is doing on the newer models (my model).

To achieve this, we need to get access to an older stove model. (Which I don't have)
There are obviously a lot of security concerns related to this. But I believe @Crisicus will have a look soon, since some users agreed to share there stove for analysis as described in #114.

Kind regards,
Robbe

@Robbe-B
Copy link
Owner

Robbe-B commented Nov 21, 2024

@htbuddha,
If you like the work we do, please consider leaving a star on this repo.
Kind regards,
Robbe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants