EP2336 #79
Replies: 10 comments
-
As far as my understanding goes, there are some devices which already have 'smart functionality' (through their App/Cloud/whatever). I have never been hands-on with one of those machines, but according to the specification (or their advertising) the machine already offers a "clean the machine without filling the cup" feature. This is arguably even better than the solution that this repo offers, which just skips the cleaning step. It would make sense for the machine to have different "commands" for this feature, under the assumption that the "smart parts" are on the display side. If this is not the case, there is no need for the display to know whether the machine has started with or without (internal) cleaning. Thus (ab-)using this functionality through the ESP may not be possible. It seems to be the case that these messages contain the model NR in bytes 4-6 (zero-indexed). EP32xx I suspect that these are different on your machine (EP2336), somewhere along the lines of Retrieving these commands may be possible using the UART debug functionality and it may require (depending on how things are built) the use of the App, to hopefully retrieve commands which are not available via the display panel directly. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your reply. I expected something similar; I knew we
were going to get to UART debugging, that's what I was dreading. I've never
used it, although I know arduino... Do you need a wemos d1 mini for this?
(it's at home) I think the ESP12F PCB doesn't know this, or at least not
with the flash content used for HA control.
|
Beta Was this translation helpful? Give feedback.
-
Assuming you already have a modified machine, all you'd need to do is to change your YAML configuration. See UART Debug documentation. Usually, only observing "RX" on the display UART can provide enough information. But then again I don't know where the existing "smart parts" are so... Depending on how 'complicated' the extended protocol is, adding support for the features may require some work. Without access to one of the "smart" models I can unfortunately not promise help/support |
Beta Was this translation helpful? Give feedback.
-
Yes, there is the modification in the coffee maker, the ESP12F chipped PCB is included with connectors, no cut cables.
Do you think this will be enough to read the codes in the ESP yaml configuration? Or do you need something else?
I think I can leave the head part, I didn't even copy it here, and for the transmission to work, the PCB needs the power_pin, delay, etc.
captive_portal:
uart:
debug:
direction: BOTH
dummy_receiver: false
after:
delimiter: "\n"
sequence:
- lambda: UARTDebug::log_string(direction, bytes);
- tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 115200
id: uart_mainboard
- tx_pin: GPIO15
rx_pin: GPIO13
baud_rate: 115200
id: uart_display
philips_coffee_machine:
display_uart: uart_display
mainboard_uart: uart_mainboard
power_pin: GPIO12
power_trip_delay: 750ms
id: coffee_machine
model: EP_2235
power_message_repetitions: 25
language: en-US
|
Beta Was this translation helpful? Give feedback.
-
You can use your default configuration. All you need to add is the following section (under the UART section):
You could also use the method laid out in #7 (comment), which already filters different commands (but it can also filter out some valid ones). |
Beta Was this translation helpful? Give feedback.
-
Thanks, I'll check it out tonight, but I have a question. Will I see the
data in ESP LOG under HA, or do I need a separate program interface?
Can I ask for more help?
|
Beta Was this translation helpful? Give feedback.
-
You can use the ESPHome Dashboard (the HA-Addon) to view the logs, as with any other ESPHome device. I would recommend viewing logs over-the-air. |
Beta Was this translation helpful? Give feedback.
-
Sorry, one more question. I read through what you linked (#7 (comment)). It is not clear to me: Now should I leave all lines in the yaml file as I put together for the HA control with all switches and sensors and only write what you wrote under the display uart line?
Or just what you wrote in the email? For example, will the device turn on at the press of a button if the definition of
POWER_MESSAGE_REPETITIONS and the power pin is not included in the yaml config?
Or should I just leave it at this:
philips_coffee_machine:
display_uart: uart_display
mainboard_uart: uart_mainboard
power_pin: GPIO12
power_trip_delay: 750ms
id: coffee_machine
model: EP_2235
power_message_repetitions: 25
language: en-USips_coffee_machine:
Because if the module is inside, it also works incorrectly from the physical button...
|
Beta Was this translation helpful? Give feedback.
-
You leave the |
Beta Was this translation helpful? Give feedback.
-
I did it... This is the log file, I don't really understand what I should see. It is certain that in the case of cappuccino and tea, the hot water does not come out of the milk container. |
Beta Was this translation helpful? Give feedback.
-
Hello Till,
I tested it with the EP2336 device, which is very similar to the EP2235 device in terms of functions and button layout.
All selections work as they should, quantity setting start, on and off. The only mistake is that for hot water and cappuccino, the water does not come out at the place of the milk holder, but directly into the water tray through the valve behind the removable middle part, as if cleaning it. If the module is inside, it does this even when started from the control panel. I remove the panel, everything works fine. In your opinion, could there be a different command for this type for the two mentioned functions?
I saw in topic #54 that there was the same problem, but I didn't actually read a good solution. Or did I miss something?
Beta Was this translation helpful? Give feedback.
All reactions