Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Espresso out of nowhere #74

Closed
dkwolf1 opened this issue Jul 19, 2024 · 12 comments
Closed

Espresso out of nowhere #74

dkwolf1 opened this issue Jul 19, 2024 · 12 comments
Labels
stale Closed due to inactivity

Comments

@dkwolf1
Copy link

dkwolf1 commented Jul 19, 2024

Hello! I followed this project a while and now I've installed everything. Pcb and picoflex cables, I al worked perfect. But, when the machine is running idle, after let's say 15 minutes he makes an espresso out of nowhere...more people with this problem? I don't have any log files yet, I will try to get them.

image

image

@TillFleisch
Copy link
Owner

Logs would be great (before/after the event)!
Please also post your yaml config (please redact secrets).

ESPHome has a feature which resets the ESP every 15 minutes when not connected to WiFi.
A reset should not result in spontaneous espresso. It doesn't on my machine, but maybe your machine/configuration is different. You can try this by using the restart button.

This may also be related to #26

@dkwolf1
Copy link
Author

dkwolf1 commented Jul 21, 2024

This is my config with debugging. I also measured everything. I have 3.3v on the tx0 and 5v on the rx0. When i dont connect the display everything works fine. When i connect the display something is ticking inside the coffeemachine. If i remove the debug options and connect the display it works, thicking is over. Measurements are normal.

esphome:
name: koffie
friendly_name: PhilipsEP

esp8266:
board: esp01_1m

logger:
baud_rate: 0

external_components:

  • source: github://TillFleisch/ESPHome-Philips-Smart-Coffee@main

api:
encryption:
key: "DGxVd69ihlyy8lUwMIrWGOnLkq2o9ZoUmiFN7APW0Mw="

ota:

  • platform: esphome
    password: "

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

manual_ip:
static_ip: 192.168.1.245
subnet: 255.255.255.0
gateway: 192.168.1.1

ap:
ssid: "Koffie Fallback Hotspot"
password:

captive_portal:

time:

  • platform: homeassistant
    id: time_homeassistant
    on_time_sync:
    then:
    - component.update: philips_uptime_timestamp

uart:

  • id: uart_mainboard
    tx_pin: GPIO1
    rx_pin: GPIO3
    baud_rate: 115200
    debug:
    after:
    bytes: 12

  • id: uart_display
    tx_pin: GPIO15
    rx_pin: GPIO13
    baud_rate: 115200
    debug:
    after:
    bytes: 12

philips_coffee_machine:
id: philip
display_uart: uart_display
mainboard_uart: uart_mainboard
power_pin: GPIO12
power_message_repetitions: 5
model: EP_2235

sensor:

  • platform: wifi_signal
    name: "PhilipsEP wifi signaal"
    update_interval: 120s

  • platform: uptime
    id: philips_uptime

  • platform: template
    id: philips_uptime_timestamp
    name: "PhilipsEP online sinds"
    device_class: timestamp
    accuracy_decimals: 0
    update_interval: never
    lambda: |-
    static float timestamp = (
    id(time_homeassistant).utcnow().timestamp - id(philips_uptime).state
    );
    return timestamp;

text_sensor:

  • platform: wifi_info
    ip_address:
    name: "IP adres"
    id: philips_ip
    icon: mdi:ip-network
    ssid:
    name: "Netwerk"
    id: philips_netwerk
    icon: mdi:access-point-network
    mac_address:
    name: "MAC adres"
    id: philips_macadres
    icon: mdi:folder-key-network-outline

  • platform: philips_coffee_machine
    controller_id: philip
    id: status
    name: "Status"

button:

  • platform: restart
    name: "Herstart apparaat"

  • platform: philips_coffee_machine
    controller_id: philip
    action: MAKE_COFFEE
    name: "Maak koffie"
    icon: mdi:coffee

  • platform: philips_coffee_machine
    controller_id: philip
    action: SELECT_HOT_WATER
    name: "Selecteer heet water"
    icon: mdi:tea

  • platform: philips_coffee_machine
    controller_id: philip
    action: PLAY_PAUSE
    name: "Selecteer play/pause"
    icon: mdi:play-pause

  • platform: philips_coffee_machine
    controller_id: philip
    action: SELECT_COFFEE
    name: "Selecteer koffie"
    icon: mdi:coffee

  • platform: philips_coffee_machine
    controller_id: philip
    action: SELECT_ESPRESSO
    name: "Selecteer espresso"
    icon: mdi:coffee-to-go

  • platform: philips_coffee_machine
    controller_id: philip
    action: MAKE_ESPRESSO
    name: "Maak espresso"
    icon: mdi:coffee-to-go

  • platform: philips_coffee_machine
    controller_id: philip
    action: AQUA_CLEAN
    name: "Aqua clean"
    icon: mdi:water

  • platform: philips_coffee_machine
    controller_id: philip
    action: CALC_CLEAN
    name: "Kalk clean"
    icon: mdi:water-percent-alert

switch:

  • platform: philips_coffee_machine
    controller_id: philip
    name: "Power"
    icon: mdi:coffee-maker

  • platform: philips_coffee_machine
    controller_id: philip
    clean: false
    id: power_without_cleaning
    name: "Power zonder schoonmaak"
    icon: mdi:coffee-maker

number:

  • platform: philips_coffee_machine
    type: bean
    name: "Koffiebonen"
    controller_id: philip
    status_sensor_id: status

  • platform: philips_coffee_machine
    type: size
    name: "Koffie grootte"
    controller_id: philip
    status_sensor_id: status


[21:27:17][C][logger:186]: Level: DEBUG
[21:27:17][C][logger:188]: Log Baud Rate: 0
[21:27:17][C][logger:189]: Hardware UART: UART0
[21:27:17][C][uart.arduino_esp8266:118]: UART Bus:
[21:27:17][C][uart.arduino_esp8266:119]: TX Pin: GPIO1
[21:27:17][C][uart.arduino_esp8266:120]: RX Pin: GPIO3
[21:27:17][C][uart.arduino_esp8266:122]: RX Buffer Size: 256
[21:27:17][C][uart.arduino_esp8266:124]: Baud Rate: 115200 baud
[21:27:17][C][uart.arduino_esp8266:125]: Data Bits: 8
[21:27:17][C][uart.arduino_esp8266:126]: Parity: NONE
[21:27:17][C][uart.arduino_esp8266:127]: Stop bits: 1
[21:27:17][C][uart.arduino_esp8266:129]: Using hardware serial interface.
[21:27:17][C][uart.arduino_esp8266:118]: UART Bus:
[21:27:17][C][uart.arduino_esp8266:119]: TX Pin: GPIO15
[21:27:17][C][uart.arduino_esp8266:120]: RX Pin: GPIO13
[21:27:17][C][uart.arduino_esp8266:122]: RX Buffer Size: 256
[21:27:17][C][uart.arduino_esp8266:124]: Baud Rate: 115200 baud
[21:27:17][C][uart.arduino_esp8266:125]: Data Bits: 8
[21:27:17][C][uart.arduino_esp8266:126]: Parity: NONE
[21:27:17][C][uart.arduino_esp8266:127]: Stop bits: 1
[21:27:17][C][uart.arduino_esp8266:131]: Using software serial
[21:27:17][C][uptime.sensor:033]: Uptime Sensor 'philips_uptime'
[21:27:17][C][uptime.sensor:033]: Device Class: 'duration'
[21:27:17][C][template.sensor:022]: Template Sensor 'PhilipsEP online sinds'
[21:27:17][C][template.sensor:022]: Device Class: 'timestamp'
[21:27:17][C][template.sensor:022]: State Class: ''
[21:27:17][C][template.sensor:022]: Unit of Measurement: ''
[21:27:17][C][template.sensor:022]: Accuracy Decimals: 0
[21:27:17][C][template.sensor:023]: Update Interval: never
[21:27:17][C][philips_coffee_machine:132]: Philips Coffee Machine
[21:27:17][C][wifi_info:013]: WifiInfo Mac Address 'MAC adres'
[21:27:17][C][wifi_info:013]: Icon: 'mdi:folder-key-network-outline'
[21:27:17][C][philips_status_sensor:018]: Philips Status Text Sensor
[21:27:17][C][restart.button:017]: Restart Button 'Herstart apparaat'
[21:27:17][C][restart.button:017]: Icon: 'mdi:restart'
[21:27:17][C][philips-action-button:015]: Philips Action Button 'Maak koffie'
[21:27:17][C][philips-action-button:015]: Icon: 'mdi:coffee'
[21:27:17][C][philips-action-button:015]: Philips Action Button 'Selecteer heet water'
[21:27:17][C][philips-action-button:015]: Icon: 'mdi:tea'
[21:27:17][C][philips-action-button:015]: Philips Action Button 'Selecteer play/pause'
[21:27:17][C][philips-action-button:015]: Icon: 'mdi:play-pause'
[21:27:17][C][philips-action-button:015]: Philips Action Button 'Selecteer koffie'
[21:27:17][C][philips-action-button:015]: Icon: 'mdi:coffee'
[21:27:17][C][philips-action-button:015]: Philips Action Button 'Selecteer espresso'
[21:27:17][C][philips-action-button:015]: Icon: 'mdi:coffee-to-go'
[21:27:17][C][philips-action-button:015]: Philips Action Button 'Maak espresso'
[21:27:17][C][philips-action-button:015]: Icon: 'mdi:coffee-to-go'
[21:27:17][C][philips-action-button:015]: Philips Action Button 'Aqua clean'
[21:27:17][C][philips-action-button:015]: Icon: 'mdi:water'
[21:27:17][C][philips-action-button:015]: Philips Action Button 'Kalk clean'
[21:27:17][C][philips-action-button:015]: Icon: 'mdi:water-percent-alert'
[21:27:17][C][philips_power_switch:079]: Philips Coffee Machine Power Switch
[21:27:17][C][philips_power_switch:079]: Philips Coffee Machine Power Switch
[21:27:17][C][philips_beverage_setting:018]: philips_beverage_settingPhilips Beverage Setting 'Koffiebonen'
[21:27:17][C][philips_beverage_setting:018]: philips_beverage_settingPhilips Beverage Setting 'Koffie grootte'
[21:27:17][C][homeassistant.time:010]: Home Assistant Time:
[21:27:17][C][homeassistant.time:011]: Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[21:27:17][C][captive_portal:088]: Captive Portal:
[21:27:17][C][mdns:116]: mDNS:
[21:27:17][C][mdns:117]: Hostname: koffie
[21:27:17][C][esphome.ota:073]: Over-The-Air updates:
[21:27:17][C][esphome.ota:074]: Address: 192.168.1.245:8266
[21:27:17][C][esphome.ota:075]: Version: 2
[21:27:17][C][esphome.ota:078]: Password configured
[21:27:17][C][safe_mode:018]: Safe Mode:
[21:27:17][C][safe_mode:019]: Boot considered successful after 60 seconds
[21:27:17][C][wifi_signal.sensor:009]: WiFi Signal 'PhilipsEP wifi signaal'
[21:27:17][C][wifi_signal.sensor:009]: Device Class: 'signal_strength'
[21:27:17][C][wifi_signal.sensor:009]: State Class: 'measurement'
[21:27:17][C][wifi_signal.sensor:009]: Unit of Measurement: 'dBm'
[21:27:17][C][wifi_signal.sensor:009]: Accuracy Decimals: 0
[21:27:17][C][wifi_info:011]: WifiInfo SSID 'Netwerk'
[21:27:17][C][wifi_info:011]: Icon: 'mdi:access-point-network'
[21:27:17][C][wifi_info:009]: WifiInfo IPAddress 'IP adres'
[21:27:17][C][wifi_info:009]: Icon: 'mdi:ip-network'
[21:27:41][D][switch:055]: 'Power': Sending state ON
[21:27:41][D][switch:055]: 'Power zonder schoonmaak': Sending state ON
[21:27:41][D][number:012]: 'Koffiebonen': Sending state nan
[21:27:41][D][number:012]: 'Koffie grootte': Sending state nan
[21:27:42][D][switch:055]: 'Power': Sending state OFF
[21:27:42][D][switch:055]: 'Power zonder schoonmaak': Sending state OFF
[21:27:43][D][sensor:093]: 'philips_uptime': Sending state 44.79500 s with 0 decimals of accuracy
[21:27:51][D][switch:055]: 'Power': Sending state ON
[21:27:51][D][switch:055]: 'Power zonder schoonmaak': Sending state ON
[21:27:53][D][text_sensor:064]: 'Status': Sending state 'Preparing'
[21:27:59][I][safe_mode:041]: Boot seems successful; resetting boot loop counter
[21:28:20][D][text_sensor:064]: 'Status': Sending state 'Cleaning'
[21:28:30][D][sensor:093]: 'PhilipsEP wifi signaal': Sending state -58.00000 dBm with 0 decimals of accuracy
[21:28:43][D][sensor:093]: 'philips_uptime': Sending state 104.79500 s with 0 decimals of accuracy
[21:28:45][D][text_sensor:064]: 'Status': Sending state 'Idle'
[21:29:43][D][sensor:093]: 'philips_uptime': Sending state 164.79700 s with 0 decimals of accuracy
[21:30:30][D][sensor:093]: 'PhilipsEP wifi signaal': Sending state -56.00000 dBm with 0 decimals of accuracy

@TillFleisch
Copy link
Owner

TillFleisch commented Jul 21, 2024

You only need the debug option on one of the UART (preferably the mainboard one), as they both see the same messages (aside from those which are injected by this component, hence the mainbaord preference).
This cuts the amount of messages which are sent in half.

IIRC, I have at some point had an ESP which made a clicking noise when the LED was blinking (fast) or during high WiFi loads.

Can you describe the clicking noise further? Is it more of a buzzing sound, how loud is it? Can you locate where it's coming from? (the custom PCB?)
My guess would be that the debug messages increase the power draw of the ESP as it's busy using the radio, and this somehow affects the rest of the system. Does the ticking noise disappear when you don't observe logs?

Here is a debug version which can cut down on messages even more, but it's only for messages coming from the display and it may require modification based on the machine that is being used.

Based on the altered/removed message: are surprise espressos / shutdowns still a thing? Also make sure that the machine is still working as intended without the modification to rule out that something broke.

@dkwolf1
Copy link
Author

dkwolf1 commented Jul 22, 2024

The clicking noise is from inside the machine. When i change the debug its al fine. I think something else is going on. This night there was nothing wrong, no turning on automaticly, no ticking and no espressos. This morning the automation worked fine, get my coffee when i woke up. During an hour no strange behavior. But then, there was an update from Esphome. 2024.7.1. After this update, say 10 minutes, the device give me an espresso. I reset the device but no results. Measuements on PCB are normal.

[09:16:29][D][uart_debug:114]: >>> 01:03:00:0D:00:00:00:02:12:D5:55:00
[09:16:29][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:29][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:29][D][uart_debug:114]: >>> 01:03:00:0D:00:00:00:02:12:D5:55:00
[09:16:29][D][uart_debug:114]: >>> 01:03:00:0D:00:00:00:02:12:D5:55:00
[09:16:29][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:29][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:29][D][uart_debug:114]: >>> 01:03:80:43:00:00:02:12:D5:55:00:01
[09:16:29][D][uart_debug:114]: >>> 00:02:12:D5:55:00:01:03:00:0D:00:00
[09:16:29][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:29][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:29][D][uart_debug:114]: >>> 00:02:12:D5:55:00:01:03:00:0D:00:00
[09:16:29][D][uart_debug:114]: >>> 00:02:12:D5:55:00:01:03:00:0D:00:00
[09:16:29][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:29][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:29][D][uart_debug:114]: >>> 00:02:12:D5:55:00:01:03:00:0D:00:00
[09:16:29][D][uart_debug:114]: >>> 00:02:12:D5:55:00:01:03:00:0D:00:00
[09:16:29][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:29][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:29][D][uart_debug:114]: >>> 00:02:12:D5:55:00:01:03:00:0D:40:00
[09:16:29][D][uart_debug:114]: >>> 02:12:D5:55:00:01:03:00:0D:00:00:00
[09:16:29][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:29][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:29][D][uart_debug:114]: >>> 02:89:D5:55:00:01:03:00:0D:00:00:00
[09:16:29][D][uart_debug:114]: >>> 02:12:D5:55:00:01:03:00:0D:00:00:00
[09:16:29][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:29][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:29][D][uart_debug:114]: >>> 02:12:D5:55:00:01:03:00:0D:00:00:00
[09:16:29][D][uart_debug:114]: >>> 02:12:D5:55:00:40:20:0D:00:00:00:02
[09:16:29][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:29][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:29][D][uart_debug:114]: >>> 12:75:55:D0:00:0D:00:00:00:02:12:D5
[09:16:29][D][uart_debug:114]: >>> 55:00:01:03:00:0D:00:00:00:02:12:D5
[09:16:29][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:29][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> 55:00:01:03:00:0D:00:00:00:02:12:D5
[09:16:30][D][uart_debug:114]: >>> 55:00:01:03:00:0D:00:00:00:02:12:D5
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> 0D:00:00:00:02:12:D5:55:00:01:03:00
[09:16:30][D][uart_debug:114]: >>> 0D:00:00:00:02:12
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> 03:00:0D:00:00:00:02:12:D5:55:00:01
[09:16:30][D][uart_debug:114]: >>> 03:00:0D:00:00:00:02:12:D5:55:00:01
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> 03:00:0D:00:00:00:02:12:D5:55:00:01
[09:16:30][D][uart_debug:114]: >>> 03:00:0D:80:00:02:12:D5:55:00:01:03
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> 00:0D:00:00:00:02:12:D5:55:00:01:03
[09:16:30][D][uart_debug:114]: >>> 00:0D:00:00:00:02:12:D5:55:00:01:03
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> 00:0D:00:00:00:02:12:D5:55:00:01:03
[09:16:30][D][uart_debug:114]: >>> 00:0D:00:00:00:02:12:D5:55:00:01:03
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> 00:0D:00:00:00:02:12:D5:55:00:01:03
[09:16:30][D][uart_debug:114]: >>> 00:0D:00:00:00:02:12:D5:55:00:01:03
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> 00:0D:00:00:00:02:12:D5:55:00:01:03
[09:16:30][D][uart_debug:114]: >>> 00:0D:00:00:00:02:12:D5:55:00:01:03
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> 00:0D:00:00:00:02:12:D5:55:00:01:03
[09:16:30][D][uart_debug:114]: >>> 00:0D:00:00:00:02:12:D5:55:00:01:03
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> 00:02:12:D5:55:00:01:03:00:0D:00:00
[09:16:30][D][uart_debug:114]: >>> 00:02:12
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:30][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:30][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:30][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:40:00:02:12:D5
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> 55:00:01:03:00:0D:00:00:00:02:12:D5
[09:16:31][D][uart_debug:114]: >>> 55:00:01:03:00:0D:00:00:00:02:12:D5
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> 55:00:01:03:00:0D:00:00:00:02:12:D5
[09:16:31][D][uart_debug:114]: >>> 55:00:01:03:00:0D:00:00:00:02:12:D5
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> 55:00:01:03:00:0D:00:00:00:02:12:D5
[09:16:31][D][uart_debug:114]: >>> 0D:00:00:00:02:12:D5:55:00:01:03:00
[09:16:31][D][uart_debug:114]: >>> 0D:00:00:00:02:12
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:80:00:02:12:D5
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> 55:00:01:03:00:0D:00:00:00:02:12:D5
[09:16:31][D][uart_debug:114]: >>> 55:00:01:03:00:0D:00:00:00:02:12:D5
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> 55:00:01:03:00:0D:00:00:00:02:12:D5
[09:16:31][D][uart_debug:114]: >>> 00:00:00:02:12:D5:55:00:01:03:00:0D
[09:16:31][D][uart_debug:114]: >>> 00:00:00:02:12
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00
[09:16:31][D][uart_debug:114]: <<< 07:00:00:00:00:32:32
[09:16:31][D][uart_debug:114]: >>> D5:55:00:01:03:00:0D:00:00:00:02:12
[09:16:31][D][uart_debug:114]: <<< D5:55:00:07:07:07:07:00:00:00:00:00

Sending this, keeps going on and on.

@TillFleisch
Copy link
Owner

Hm, ... this is wired behavior.
Based on the config file, I presume you are performing the automation through HA and not on the ESP itself (using ESPHome). Is that correct?
I would recommend the following trouble shooting steps:

  • remove any automation and see if the issue persists
  • remove all coffee machine related buttons (potentially also other components) from the config and see if the issue persists
    • add back features until the issue re-appears

If you remove the espresso buttons from the config, does the erratic behavior happen with other beverages?
Does the machine actually brew coffee or is it only the status sensor which is reporting this behavior?

@dkwolf1
Copy link
Author

dkwolf1 commented Jul 25, 2024

Today I do it al over again.

  1. I measure the board: voltage and ohm: nothing weird.
  2. I measure the cables: all good

So no hardware problem. Now i go over to the software, starting like you said. Post the results later this day

@TillFleisch TillFleisch added the stale Closed due to inactivity label Aug 13, 2024
@xi-s
Copy link

xi-s commented Dec 23, 2024

I replaced my ESP32 (it stopped working) by a ESP8266 board. Since the change, I'm also getting espressos out of nowhere!
Still need to investigate further, but apparently dkwolf1 is not the only one who has experienced this problem.

@dkwolf1, did you solve it already?

Does the machine actually brew coffee or is it only the status sensor which is reporting this behavior?

To answer this question, yes it actually brews coffee. I do have some logs from Home Assistant already:

Normal espresso procedure:

  • Status changed to Espresso selected
  • Size changed to 2,0
  • Strength changed to 2,0
  • Status changed to Brewing Espresso

Random espresso:

  • Status changed to Idle - 2 hours ago
  • Status changed to Brewing Espresso - 26 minutes ago

@dkwolf1
Copy link
Author

dkwolf1 commented Dec 23, 2024

@xi-s no...i even quit the project. But what you say now is opening my eyes again. I always worked with the 8266...should is be the 32 then...

@xi-s
Copy link

xi-s commented Dec 23, 2024

My first try to solve the problem is downgrading to the exact same version I was running on my ESP32

(ESPHome 2024.4.0 + This project @ V3.0.3)

Results pending!

Nope, still happening.

@xi-s
Copy link

xi-s commented Dec 27, 2024

I moved from using GPIO3|GPIO1 + GPIO13|GPIO15 to GPIO3|GPIO1 + GPIO14|GPIO12.

So far I'm on 18 hours of "idle" state without random espresso

@TillFleisch
Copy link
Owner

I moved from using GPIO3|GPIO1 + GPIO13|GPIO15 to GPIO3|GPIO1 + GPIO14|GPIO12.
So far I'm on 18 hours of "idle" state without random espresso

Interesting....

Any chance you have serial logging still enabled? Make sure to use baud_rate: 0 in you esphome config as this could interfere with communication on the bus(that particular UART).

@xi-s
Copy link

xi-s commented Dec 29, 2024

I made sure to include the baud_rate: 0

Current working config; The only difference between random espresso and normal is the choice of GPIO right now:

esphome:
  name: Coffee
  friendly_name: Philips EP2230

# NodeMCU ESP8266
esp8266:
  board: nodemcuv2

# Enable logging
logger:
  #Disable serial logging
  baud_rate: 0

api:

ota:
  platform: esphome

wifi:
  ssid: <redacted>
  password: <redacted>
  use_address: <redacted>

external_components:
  - source: github://TillFleisch/ESPHome-Philips-Smart-Coffee@main

uart:
  # UART connected to the mainboard
  - tx_pin: GPIO12
    rx_pin: GPIO14
    baud_rate: 115200
    id: uart_mainboard
  # UART connected to the display
  - tx_pin: GPIO1
    rx_pin: GPIO3
    baud_rate: 115200
    id: uart_display

philips_coffee_machine:
  display_uart: uart_display
  mainboard_uart: uart_mainboard
  power_pin: GPIO16
  id: philips
  model: EP_2235

text_sensor:
  - platform: philips_coffee_machine
    controller_id: philips
    id: status
    name: "Status"

switch:
  - platform: philips_coffee_machine
    controller_id: philips
    name: "Power"
    icon: mdi:coffee

button:
  - platform: philips_coffee_machine
    controller_id: philips
    action: SELECT_ESPRESSO
    name: "Espresso"
    icon: mdi:coffee
  - platform: philips_coffee_machine
    controller_id: philips
    action: SELECT_COFFEE
    name: "Coffee"
    icon: mdi:coffee
  - platform: philips_coffee_machine
    controller_id: philips
    action: SELECT_HOT_WATER
    name: "Hot water"
    icon: mdi:water
  - platform: philips_coffee_machine
    controller_id: philips
    action: SELECT_CAPPUCCINO
    name: "Cappuccino"
    icon: mdi:coffee
  - platform: philips_coffee_machine
    controller_id: philips
    action: PLAY_PAUSE
    name: "Play/pause"
    icon: mdi:play-pause
number:
  - platform: philips_coffee_machine
    type: bean
    name: "Strength"
    controller_id: philips
    status_sensor_id: status
  - platform: philips_coffee_machine
    type: size
    name: "Size"
    controller_id: philips
    status_sensor_id: status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Closed due to inactivity
Projects
None yet
Development

No branches or pull requests

3 participants