ryanalden / esphome-jura-component

Custom component for ESPhome to communicate with Jura Impressa J6 coffee machines
71 stars 22 forks source link

need help for configuration water tank status and cappuccinos made #6

Closed mac89muc closed 1 year ago

mac89muc commented 2 years ago

Many thanks for your effort in creating this project. Ive got a Jura E60 - commands are slightly different then yours, but I've got them working with trail and error.

Not a big deal but one problem occurs with the status of the water tank in my case - no matter if the tank is full, missing or if it's empty the status is always shown as "OK".

I have no clue what the difference to your machine could be. Do you have a suggestion what I could try to get it working / e.g. changing if (xsensor7 != nullptr) xsensor7->publish_state(tank_status); or some other piece of code (I'm not that familiar with self-coding)

On the other side I would like to see the status of cappuccinos made instead of coffees- do you also have a suggestion for this case? Where I have to do make changes - maybe here?

substring = result.substring(11,15); num_coffee = strtol(substring.c_str(),NULL,16);

Thanks in advance - Regards