Little (big) python help needed global / pygatt / mqtt

HI all,
I do not have great python skills so i need your eyes of expert to make all work as needed.

Based on this topics about nespresso D80 Nespresso Integration i start to decode my nespresso prodigio&milk that have also bluetooth connectivity.

I start to make a Nepresso2mqtt python script.

My first problem is that i do not have mqtt subscribe working (will be need in the future to make coffee).
I’m not sure mqtt reconnection works neither…
And i’m sure it miss a lot of bluetooth connection loss issue too.
The goal is also to no more have the loop parts in the code and use the BLE subscribe part.

I paste the code on github any help will be very WELCOME.

Thank’s a lot for any help/commit/tickets/PR

3 Likes

I’ve update the code to a 1st working integration here:

A lot to do but for now it’s just working a little.