esphome-jura-component
esphome-jura-component copied to clipboard
Info: Tray and water tank for E8
First of all: Thanks a lot for your work. It helped a lot!
Here - as info - if someone has an E8. The Tray and water tank status are stored in other places, so I modifed jura_coffee.h
trayBit = bitRead(strtol(result.substring(3,5).c_str(), NULL, 16), 4);
tankBit = bitRead(strtol(result.substring(5,7).c_str(), NULL, 16), 5);
if (trayBit == 1) { tray_status = "Present"; } else { tray_status = "Missing"; }
if (tankBit == 1) { tank_status = "Fill Tank"; } else { tank_status = "OK"; }
Hi derjoerg, I also have an E8. I replaced these lines in jura_coffee.h, but unfortunately that did not seem to fix those statuses for me. Oh well.
Also for me - the default "make coffee" and "make hot water" codes, just seem to emulate the bottom right and left buttons, which cycle screens, and open settings menu respectively. Is your experience the same? Any luck finding the correct codes?
Thank you!
I have an E6 and I can confirm that the Missing Tray and Water Tank Status is working with the code above. And yes, the codes are emulating the buttons on the right/left side of the display - so I haven't found any other command, but for me it's suitable that way.
Had anybody got the Power (On/Off) State working?
A year ago it was working with a little detour - I checked the sum of the coffees made and when the amount was lower then the value before the machine was off. So at that time when the machine was off - there weren't any status updates send concerning the total amount of coffees / cappuccinos etc. and the value was resetted to 0. When the machine was powered on again the 0 was replaced with the correct values and so the status of the machine was recognized as on.
These days the amount isn't going to be resetted to 0 when the machine was powered off. No clue if this changed due to an update of the esp..??
Regards
Thanks for sharing!
When I changed the lines, I got this error message while building:
Compiling .pioenvs/jura/src/main.cpp.o
In file included from src/esphome/components/esp8266/gpio.h:6,
from src/esphome.h:17,
from src/main.cpp:3:
/config/.esphome/platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h: In member function 'String JuraCoffee::cmd2jura(String)':
/config/.esphome/platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:145:37: warning: 'inbyte' may be used uninitialized in this function [-Wmaybe-uninitialized]
145 | #define bitSet(value, bit) ((value) |= (1UL << (bit)))
| ^~
In file included from src/main.cpp:100:
src/jura_coffee.h:39:10: note: 'inbyte' was declared here
39 | char inbyte;
| ^~~~~~
Any idea?
@mac89muc I've been able to power off the machine, but powering on doesn't work. Another problem is that the Jura only powers the Wemos for 2 minutes after powering off.