Nespresso Integration

If you find the solution make a pull request on the integration repo I’ll accept is like it as I do no more can test this.

1 Like

Hi,

I was intending to submit a pull request to tikismoke to resolve some of the issues but as I’ve been working on this project it has changed quite significantly.

Firstly, just wanted to say thanks to tikismoke and those before him that spent the time reverse engineering the protocols and getting an integration up and running.

Without access to an Android there wasn’t much hope for me to be able to obtain the auth_key for the device I recently picked up (Expert) so I’ve spent time further reversing the android app to understand how the auth_key is setup and have created a new project with this integrated.

This is very early and while the library can run brewing operations the services are not yet exposed to Home Assistant.

I could really use some tester to check that the config flow and pairing/auth phases work properly for others as in my testing the Bluetooth within HA is quite finicky, and I’ve seen very weird behaviours just depending on what bluetooth device is used.

If anyone wants to volunteer to test the code and provide some feedback on success/failures, I’d really appreciate it.

2 Likes

The integration has been extended to include the service calls for brewing commands including custom recipes. Keen for feedback if anyone has a machine and time to try it out.

Nice job.

Let me know when it will work correctly so that I can redirect user to this repo on GitHub and I also need to look at hacs and remove my old one.

Hope you’ll got good results and not only people just saying ‘it don’t work’ :frowning:

Maybe a day if I change my coffee machine I’ll get back on this integration :+1:

I will test it in this weekend. I have Nespresso Expert.

I tested and got error. I have factory reset my Nespresso Machine. I’ll also post this on github.

HAOS 11.1
Home Assistant 2023.11.2

logger:
  default: warning
  logs:
    homeassistant.setup: error
    custom_components.nespresso: debug

ORICO BTA-403
Nespresso Expert C80

It can find machine. But when I press OK, I got this error:

2023-11-18 22:59:11.286 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 227, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin
    return await func(self, request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 177, in post
    return await super().post(request, flow_id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
    result = await method(view, request, data, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 293, in async_configure
    result = await self._async_handle_step(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 389, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nespresso/config_flow.py", line 130, in async_step_user
    name = user_input[CONF_NAME]
           ~~~~~~~~~~^^^^^^^^^^^
KeyError: 'name'

2023-11-18 22:41:27.335 ERROR (MainThread) [custom_components.nespresso.config_flow] Failed to connect to device: EC:E4:50:13:F7:1F - EC:E4:50:13:F7:1F: Failed to connect after 4 attempt(s): TimeoutError

Thanks for taking some time to test it. Also appreciate the you rasing the github issue. Rather than clutter this thread with issue reports i’ve responded on Github.

Thanks

Hello, I’ve just been gifted a nespresso vertuo pop coffee machine which has bluetooth/wifi and an app.
I cannot do anything from the app (maybe start descaling and that’s it) but it would be nice to try and see if there’s something useful which can be done with this integration and a wifi machine.

I’m sorry to say that I’ve no experience or knowledge about this kind of things, but if someone with more experience is willing to I can help with testing and gathering data.

You have to rest it completely to get new communication token then try this:

Do not reconnect it with apps :+1:

Thanks! I’ve seen an open issue regarding the connection to a similar machine so I’ll write there not to clutter this thread too much

Should this Integration be able to detect devices via ESPhome Bluetooth Proxies? (I’d imagine it should). I also just got a Vertuo Pop so trying to get this setup now. I haven’t yet tried any Bluetooth or Wifi connections on the machine. Do I need to initialise that to get HA to detect it?

1 Like

I’m collaborating with the integration developer, at the moment I got HA to connect to the machine and the integration was able to read some data from the Vertuo Pop.

You can follow everything here Feature Request: Nespresso Vertuo Next Support · Issue #12 · bulldog5046/ha_nespresso_integration · GitHub

Thanks, I’m already reading through that thread. How do you get the integration to see the coffee machine in the first place though? When I try to add the integration it says no device detected.

I had to set the rpi onboard Bluetooth adapter as discoverable, pairable and connectable by connecting via ssh and directly using Bluetoothctl. After that I paired with Bluetoothctl, and when I tried to connect with the integration it worked

I’m having another look at this. My onboard Bluetooth works (on a NUC, not RPi) but what do I need to do regarding the SSH etc? Currently I still get a ‘no devices on network’ when I try to add the Integration in HA Settings / Devices.

Do you think you will add support for Vertuo_DV6 ?

Hello,

I installed the custom component via HACS, enabled the raspi bluetooth and successfully paired my Nespresso Vertuo Titan. Under bluetoothctl, I see the device as paired as well.

However, when I try to search for the device through the integration, I always get “No device found on the network”. This error is generated by line 107 in nespresso.py.

What should I do for the integration to be able to locate the coffee maker through bluetooth?

We use HA 2024.6.0 under Docker and Raspi4. Bluetooth integration is visible and operational within HA.

Did you use this repo?

@bulldog5046

Yes! … to no avail…

I filled this some months ago… no news from dev… sadly he probably stop maintaining it…