-
Notifications
You must be signed in to change notification settings - Fork 5
Stopped working since recent LM Linea Mini firmware upgrade #44
Comments
Hello Rccoleman:
I have been following this project on Github for quite sometime now. I’m
interested in learning more about what you’re building here, would you have
time for a call sometime next week?
Best,
Konstantin
On Thu, Jul 6, 2023 at 9:58 PM valsily ***@***.***> wrote:
Hi,
First of all, thank you so much for making such a great integration. It
has worked great with my Linea Mini until this morning. I saw an firmware
update in the La Marzocco Home app and decided to proceed with it, which
appears to be a bad idea now.
The upgrade went smoothly and successfully completed. But the machine
became unreachable from my home assistant since then.
I had tried to restart both the espresso machine and Home Assistant server
but still no luck.
Just wondering if there is any way to fix this? Or is anyone running into
such issues recently?
Thanks in advance
[image: image]
<https://user-images.githubusercontent.com/13020079/251615864-8b7d3524-9dbe-48ca-99d9-2999a1698790.jpeg>
—
Reply to this email directly, view it on GitHub
<#44>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3AG7X7PACLZZJ5ACV2W7FDXO5UMLANCNFSM6AAAAAA2BGAINQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
*Konstantin Suvorov*
*Vera Coffee Solutions <http://www.veracoffeesolutions.com>*
*325 Lafayette St Unit 2201*
*Bridgeport, CT 06604*
*C: (203) 212 - 8563*
***@***.*** ***@***.***>*
|
@valsily you will need to use this repo in HA for now which supports the new API for Micra and Mini's. https://github.com/zweckj/lamarzocco |
@mrvautin why are you saying that? Did @rccoleman stopped supporting the project? |
@orxelm no just the support is not merged into the main repo yet. Still working on it. I should have said "use this repo for now". |
Actually my GS3 integration also stopped working since the latest upgrade. Gateway v3.1-RC4 Happy to help provide whatever other debug info you may need. |
@gmathur you can test pre-release v0.12.0-beta.1 on my fork, which should theoretically also support the GS3 |
BTW, here's their blog entry indicating that all machines must update to the new gateway by Sept 10: https://home.lamarzoccousa.com/important-firmware-update/ |
Ill give it a whirl today and respond back. |
Tried beta1 - beta4. Seeing this issue in logs as soon as I try and configure the integration.
Trying with master, I hit a different error:
|
apologies, the flow for setting up the integration from scratch was untested. beta.5 should fix this issue. |
That totally did the trick - everything is up and running. You rock! Thanks so much for doing this! |
Is @zweckj or anyone else experiencing the main entity being out of sync with the machine? Mine is showing on but the machine is off (in standby): The official app is correctly showing the machine as off: Toggling the entity off and on fixes it but just wondering if there is an issue. |
@mrvautin are you on the latest pre-release? (0.12.0-beta.5) |
Yes. I'm on that release. The issue seems to stem from the machine going into standby after a period of time and Home Assistant not getting the update. Is there anything I can check do give you proper info? |
Does it the other way for you - bringing the machine out of StandBy with the paddle? I just tested that and that appears to be working fine. Also turning the machine off through the official app reflects in HA for me. Would be good if you could test those things as well (always keep in mind it can take up to 30 seconds for the state to update) |
@zweckj it doesn't work. I toggled the entity off, moved the paddle and home assistant is still showing as off. The LM app is correctly updated from the paddle. There is nothing in the logs indicating any issues. |
@mrvautin interesting. Turn debug logging on please, it should log the entire status object whenever it gets refreshed (every 30 seconds). If that indeed seems wrong, also reload the integration once |
@zweckj it's really weird, my HA has debug turned on and I can see debug logs however not the full output every 30 secs. I might need to remove and re-install entirely.
|
@mrvautin yes that's weird. Seems like the update coordinator is not running properly for you. |
@zweckj I've totally removed and reinstalled. I had debugging turned on in the config which didn't seem to work. When I clicked on debugging through the integration it works as I'd expect. I had Websockets enabled. When I turned it off the main entity works perfectly now. Seems to be related to the websocket code but still nothing in the logs to indicate why or what. |
yeah that can be, sorry should have made that clearer that that is a VERY beta functionality |
@mrvautin I think I found the issues. Could you please test beta.6 and report back? |
appears to be a bugfix release, but please report if anything breaks |
Thanks for all the hard work on this. My machine is on gateway V3.1-RC6 and I am using the latest beta release (0.12.0-beta.6) and am seeing the following error after configuring
The result is an endless "retrying setup" loop - and the entities are never created. I have retried numerous times over the past 12 hours without any success. Any ideas on what the cause is, or how I can get you more details. |
Ok - this is crazy. So immediately after posting this it just started working. I wonder if their cloud endpoint had some sort of outage? I also wonder if we could detect that and log in such a case so it is easier to identify if it happens again. |
Upgraded to the RC6 gateway and beta6 integration. But integration stopped working for me - Start/stop wasn't working as an example. Going back to beta5 (with the updated gateway) fixed it for me. |
I am normally logging anything that is not a success status code very visibly as a warning, so they'd need to have returned a success without the information I'm looking for...
@gmathur that is weird, I didn't touch anything except WebSocket code in beta.6 (which is working flawlessly for me). Can you maybe try beta.6 again later and turn on debug logging? |
what happens if you do the same test, but with WiFi on and Bluetooth off (the app will complain quite a bit, but should still function)? |
Just tested two things:
|
Not at all 😅I saw some of those commands as well, but ignored them entirely, because I didn't need them. I just get the token from the cms endpoint and call the |
I'll run some more experiments when I get some time, including simulating the GetToken and TimeStampUpdate commands and see if it helps. My machine falls into the broken state quite frequently now, so it makes me think that something may have changed on the LM side. It wasn't an issue when I first updated to the new gateway, but now it's broken more often than not. |
BTW, hopefully you can get your machine to connect again :). I'm curious if you would see the same type of transactions for your machine, even if it's able to initially connect, or if it's a reaction to the failure. It's also possible that LM treats the Micra (designed as a home machine) and GS3 (more prosumer, could be in a cafe) differently. |
I do hope so, thanks! Currently in contact with LM's IoT support in Italy...
Me too.
Something is definitely different about the GS3. I've heard zero complaints from Micra/Mini owners in that direction. |
My initial testing shows that doing these two things fixes the connection issue: I didn't even have to do anything with the response. I just used Postman to send the first one, got the commandid from the response (which was different from the initial trace), then made a separate request to the "commands" endpoint. The connection errors stopped and I suddenly got the correct current temperature in the integration. |
Wondering what they're doing this for. I'll add it to lmcloud. The question is, how often does this call need to be made? |
I would say 'when it fails', but I'll check if the app just does it unconditionally or if it's triggered by a connection failure. My guess is that when the app starts they spawn a thread that keeps trying to connect locally and another that does the cloud connection. From the app, it seems like it just keeps trying the local api while the app is open to see if it's working (in case you come into range, restart the machine, etc). They're probably not expecting the app to stay running continuously, as the integration does. I understand that tying the cloud and localapi pieces together to trigger a new token request on a local failure probably isn't ideal. I don't see anything in the responses about token expiration, but maybe you would if these calls work for your machine. |
don't worry they are tied together in the main class anyways.
yeah that might take a while... LM sends me an entirely new IoT board to swap out the current one... |
Will do. Does your machine need to be online to make those calls to the cloud API in Postman (or equivalent)? Results look positive so far. I got exactly one of these, but it seemed to recover and start providing valid data:
BTW, I still always get this on shutdown. I keep meaning to look into it, but never do:
|
I don't know. I removed my machine from the app, now I don't have anything in my LM account anymore, so I can't do anything...
I probably need to wait a bit before trying the local call again and it's currently only reconnecting on the next iteration.
I believe those are coming from the WebSocket task still running in the background. I tried a couple of things to terminate it cleanly, but never figured it out. |
I haven't had the integration drop offline since the latest integration release, so I'm hopeful it's fixed. @mtwo how about you? After thinking more about what's going on and looking back at the Wireshark trace, it looks like maybe the app making the
Unfortunately, I don't know how one would mitm the communication between the machine and the cloud to see what it's saying. The fact that the incoming transaction seems otherwise unsolicited makes me think that it's related to the unseen (in that trace) connection from the app to the LM gateway. It all seems very complicated. Reviewing the token/command transaction, it's clear that it's publishing to an MQTT topic in the background, and now I see that the incoming connection is coming from 8883, which is the secure MQTT broker connection. So, the machine is subscribed to a topic, and requesting a token via the endpoint publishes a message to the topic that the machine receives and unlocks the local API. Phew. |
That would mean though that your machine needs internet access to function properly, wouldn’t it. Terrible design, but so be at. I'm still wondering why they'd only make it like this for the GS3 though, what’s their reasoning for the required internet access. |
To use the app, yeah. I'm sure they have their reasons, and equally sure that we'd probably disagree. |
@rccoleman in the new beta I added a 3 second delay before the next retry after the first 403. Was that enough to get rid of the warning? |
Looks good, I don't see a 403 anymore. It's weirdly not seeing my BT proxy anymore, though, and it did before. I can see it setting up the adapter in the log, along with
But then it goes on to say:
The ESPHome BT Proxy logs look okay. |
Consistently? Or does it go away if you restart the integration without restarting HA? Is the machine discoverable with a BLE scanner app? Or does it only become available again some time after integration start up? |
Nevermind, it was consistent, but I removed the iBeacon tracker integration and reconfigured it after discovery and the LM integration sees it again. 🤷 |
Confirmed that this seems to be working for me with the latest updates, though I'm still perplexed why La Mazocco implemented this in the first place |
@rccoleman can you please share a status? |
We won't be merging back to this repo, so you will need to use my fork. |
So I added the integration. It works for a few seconds then becomes unavailable. Please advise |
You need to check your logs/enable debug logging if that doesn't give you enough information. |
The integration suddenly stopped working for me..
EDIT: nvm, ignore it for now. Looks like something is wrong with my machine |
Hi, Just to report that my Linea Mini has been working with the fork from @zweckj for a few days and I have not noticed anything unusual so far. Sorry for not reporting earlier to the issue I submitted myself. I was relocating recently and didn't find the chance to test it until now. My iPhone just received the latest La Marzocco Home app update, which now shows a prompt for another combination of updates: Bluetooth gateway: V3.1-RC6 -> V3.2-RC9 Just wondering if anyone has tried this update yet? |
@valsily I've updated my machine to the latest version pictured and everything appears to be working correctly. No issues so far. |
I'm archiving this repo because this integration no longer works with current machine firmware. Please move to https://github.com/zweckj/lamarzocco. |
Hi,
First of all, thank you so much for making such a great integration. It has worked great with my Linea Mini until this morning. I saw an firmware update in the La Marzocco Home app and decided to proceed with it, which appears to be a bad idea now.
The upgrade went smoothly and successfully completed. But the machine became unreachable from my home assistant since then.
I had tried to restart both the espresso machine and Home Assistant server but still no luck.
Just wondering if there is any way to fix this? Or is anyone running into such issues recently?
Thanks in advance
The text was updated successfully, but these errors were encountered: