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

Exclusively Bluetooth communication? #42

Open
roens opened this issue Nov 25, 2024 · 3 comments
Open

Exclusively Bluetooth communication? #42

roens opened this issue Nov 25, 2024 · 3 comments
Labels
question Further information is requested

Comments

@roens
Copy link

roens commented Nov 25, 2024

How awesome it was to discover this project a month or so ago! As with all my "IoT" appliances, I do not trust allowing open internet access (as well as amongst each other on the local network). As such, I keep all untrusted devices on a separate VLAN, only allowing prescribed communication. I've tried many times to reach out to La Marzocco for which hostnames on which ports are necessary for, say, firmware updates. But they either send back very vague information or completely ghost me. So I've had to discover which IPs/ports my GS3 tries to talk to, and briefly open those up so as to get firmware updates.

When I set this up in my HA, I was delighted to be able to control my GS3 over Bluetooth. But with the machine's internet access cut off, that eventually stopped working. I just now briefly allowed it to talk to the IPs it wanted to for NTP 123, MQTT 8883, and 80/443, and then this integration suddenly started working again.

If all I can get is remote power control of my GS3, I'll be happy. I don't even care that the ESP32 they're using in it can't keep track of time without its own RTC: HA knows what time it is and can turn the machine on/off.

If there are any details I can gather or things to try, I'm happy to.

@zweckj zweckj added the question Further information is requested label Nov 25, 2024
@zweckj
Copy link
Owner

zweckj commented Nov 25, 2024

I'm not sure for the GS3 and Bluetooth, but what I know for the GS3 about the local HTTP API is, that it will turn that off, unless it has done a certain command to the cloud once. I call that token_command in the library (https://github.com/zweckj/pylamarzocco). For my Micra BT (and local) only become available in the app if I block internet access, but my phone still has internet access because of some reason.

@roens
Copy link
Author

roens commented Nov 25, 2024

Thanks for the speedy reply!

What I have done, when I first discovered this integration, and again last night is:

  • Allow controlled internet access to the GS3, such that their iOS app will stop indicating that red bar, and begins being able to control the machine
  • Then, set up this integration, such that the machine is controllable from HA
  • And then again disable internet access for the GS3 (though it can still be reached from the VLAN for trusted devices)
  • At this point, this integration can (at least) control the machine from HA

So, from this process, it seems likely that token_command is succeeding. But then after some weeks (or more?) time, maybe the current GS3 firmware is invalidating that token because it cannot reach their cloud services? Probably I should stop trying (and failing) to contact LMUSA by email and call them. 😐

@zweckj
Copy link
Owner

zweckj commented Nov 26, 2024

I mean if you wanna experiment (because I doubt LM USA knows the firmware that good), you can instantiate the pylamarzocco library and cut the power to your machine which should invalidate the local token cache. Then set up a LaMarzoccoCloudClient and a LaMarzoccoBluetoothClient and see whether BT commands work before or after a token_command.

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

No branches or pull requests

2 participants