ESP8266 stops sending data

I have a situation where data for sensors is no longer being updated.

The device is still connected and controllable, the logs report the change in state and the appliance connected works but the current sensor has frozen. I can upload an updated file and the esp response and reboots showing everything is working but still the current sensor is stuck. I’ve deleted from home assistant and rebooted HA, the device is automatically found and I configure it but the sensor still shows a fix value as the state.
The only way out of this is to power off the smart plug and back on then all things work ok for a few days.
BTW the sensor is updated every 5 seconds or should be, wondering if that’s the problem?

I’ve attached the logs whilst it was in a ‘fault’ state

Logs after performing a compile and install whilst faulty
INFO Reading configuration /config/esphome/coffee-machine.yaml...
INFO Detected timezone 'Europe/London'
INFO Generating C++ source...
INFO Compiling app...
Processing coffee-machine (board: esp01_1m; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.4
|-- ArduinoJson @ 6.18.5
RAM:   [====      ]  43.4% (used 35580 bytes from 81920 bytes)
Flash: [=====     ]  54.3% (used 556201 bytes from 1023984 bytes)
========================= [SUCCESS] Took 3.36 seconds =========================
INFO Successfully compiled program.
INFO Resolving IP address of coffee-machine.local
INFO  -> 192.168.1.79
INFO Uploading /data/build/coffee-machine/.pioenvs/coffee-machine/firmware.bin (560352 bytes)
INFO Compressed to 387622 bytes
Uploading: [============================================================] 100% Done...

INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from coffee-machine.local using esphome API
WARNING Can't connect to ESPHome API for coffee-machine.local: Error resolving IP address: [Errno -5] No address associated with hostname (APIConnectionError)
INFO Trying to connect to coffee-machine.local in the background
INFO Successfully connected to coffee-machine.local
[09:10:36][I][app:102]: ESPHome version 2023.9.3 compiled on Oct 14 2023, 08:45:36
[09:10:36][C][status_led:064]: Status Led Light:
[09:10:36][C][status_led:065]:   Pin: GPIO13
[09:10:36][C][wifi:546]: WiFi:
[09:10:36][C][wifi:382]:   Local MAC: 84:0D:8E:60:07:2C
[09:10:36][C][wifi:383]:   SSID: 'esp'[redacted]
[09:10:36][C][wifi:384]:   IP Address: 192.168.1.79
[09:10:36][C][wifi:385]:   BSSID: 2E:E8:29:9D:9C:8B[redacted]
[09:10:36][C][wifi:387]:   Hostname: 'coffee-machine'
[09:10:36][C][wifi:389]:   Signal strength: -65 dB ▂▄▆█
[09:10:36][C][wifi:393]:   Channel: 11
[09:10:36][C][wifi:394]:   Subnet: 255.255.255.0
[09:10:36][C][wifi:395]:   Gateway: 192.168.1.1
[09:10:36][C][wifi:396]:   DNS1: 192.168.1.1
[09:10:36][C][wifi:397]:   DNS2: 0.0.0.0
[09:10:36][C][logger:357]: Logger:
[09:10:36][C][logger:358]:   Level: DEBUG
[09:10:36][C][logger:359]:   Log Baud Rate: 0
[09:10:36][C][logger:361]:   Hardware UART: UART0
[09:10:36][C][uart.arduino_esp8266:102]: UART Bus:
[09:10:36][C][uart.arduino_esp8266:104]:   RX Pin: GPIO3
[09:10:36][C][uart.arduino_esp8266:106]:   RX Buffer Size: 256
[09:10:36][C][uart.arduino_esp8266:108]:   Baud Rate: 4800 baud
[09:10:36][C][uart.arduino_esp8266:109]:   Data Bits: 8
[09:10:36][C][uart.arduino_esp8266:110]:   Parity: NONE
[09:10:36][C][uart.arduino_esp8266:111]:   Stop bits: 1
[09:10:36][C][uart.arduino_esp8266:113]:   Using hardware serial interface.
[09:10:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'button'
[09:10:36][C][gpio.binary_sensor:016]:   Pin: GPIO12
[09:10:36][C][switch.gpio:068]: GPIO Switch 'switch'
[09:10:36][C][switch.gpio:090]:   Restore Mode: restore defaults to OFF
[09:10:36][C][switch.gpio:031]:   Pin: GPIO14
[09:10:36][C][light:103]: Light 'led'
[09:10:36][C][cse7766:196]: CSE7766:
[09:10:36][C][cse7766:197]:   Update Interval: 5.0s
[09:10:36][C][cse7766:199]:   Current 'current'
[09:10:36][C][cse7766:199]:     Device Class: 'current'
[09:10:36][C][cse7766:199]:     State Class: 'measurement'
[09:10:36][C][cse7766:199]:     Unit of Measurement: 'A'
[09:10:36][C][cse7766:199]:     Accuracy Decimals: 2
[09:10:36][C][cse7766:200]:   Power 'Coffee Machine ESP power'
[09:10:36][C][cse7766:200]:     Device Class: 'power'
[09:10:36][C][cse7766:200]:     State Class: 'measurement'
[09:10:36][C][cse7766:200]:     Unit of Measurement: 'W'
[09:10:36][C][cse7766:200]:     Accuracy Decimals: 1
[09:10:36][C][cse7766:201]:   Energy 'Coffee Machine ESP energy'
[09:10:36][C][cse7766:201]:     Device Class: 'energy'
[09:10:36][C][cse7766:201]:     State Class: 'total_increasing'
[09:10:36][C][cse7766:201]:     Unit of Measurement: 'Wh'
[09:10:36][C][cse7766:201]:     Accuracy Decimals: 3
[09:10:36][C][total_daily_energy:023]: Total Daily Energy 'Daily Energy'
[09:10:36][C][total_daily_energy:023]:   Device Class: 'energy'
[09:10:36][C][total_daily_energy:023]:   State Class: 'total_increasing'
[09:10:36][C][total_daily_energy:023]:   Unit of Measurement: 'kWh'
[09:10:36][C][total_daily_energy:023]:   Accuracy Decimals: 3
[09:10:36][C][total_daily_energy:023]:   Icon: 'mdi:counter'
[09:10:36][C][homeassistant.time:010]: Home Assistant Time:
[09:10:36][C][homeassistant.time:011]:   Timezone: 'GMT0BST,M3.5.0/1,M10.5.0'
[09:10:36][C][captive_portal:088]: Captive Portal:
[09:10:36][C][web_server:161]: Web Server:
[09:10:36][C][web_server:162]:   Address: coffee-machine.local:80
[09:10:36][C][mdns:115]: mDNS:
[09:10:36][C][mdns:116]:   Hostname: coffee-machine
[09:10:36][C][ota:097]: Over-The-Air Updates:
[09:10:36][C][ota:098]:   Address: coffee-machine.local:8266
[09:10:36][C][ota:101]:   Using Password.
[09:10:36][C][api:138]: API Server:
[09:10:36][C][api:139]:   Address: coffee-machine.local:6053
[09:10:36][C][api:141]:   Using noise encryption: YES
[09:10:45][D][api:102]: Accepted 192.168.1.63
[09:10:45][W][component:204]: Component api took a long time for an operation (0.36 s).
[09:10:45][W][component:205]: Components should block for at most 20-30ms.
[09:10:46][D][api.connection:1031]: Home Assistant 2023.10.3 (192.168.1.63): Connected successfully
[09:10:46][D][time:044]: Synchronized time: 2023-10-14 09:10:46```
Logs after performing a compile and install after a power cycle of the smart plug
INFO Reading configuration /config/esphome/coffee-machine.yaml...
INFO Detected timezone 'Europe/London'
INFO Generating C++ source...
INFO Compiling app...
Processing coffee-machine (board: esp01_1m; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.4
|-- ArduinoJson @ 6.18.5
RAM:   [====      ]  43.4% (used 35580 bytes from 81920 bytes)
Flash: [=====     ]  54.3% (used 556201 bytes from 1023984 bytes)
========================= [SUCCESS] Took 3.56 seconds =========================
INFO Successfully compiled program.
INFO Resolving IP address of coffee-machine.local
INFO  -> 192.168.1.79
INFO Uploading /data/build/coffee-machine/.pioenvs/coffee-machine/firmware.bin (560352 bytes)
INFO Compressed to 387622 bytes
Uploading: [============================================================] 100% Done...

INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from coffee-machine.local using esphome API
WARNING Can't connect to ESPHome API for coffee-machine.local: Error resolving IP address: [Errno -5] No address associated with hostname (APIConnectionError)
INFO Trying to connect to coffee-machine.local in the background
INFO Successfully connected to coffee-machine.local
[09:14:52][I][app:102]: ESPHome version 2023.9.3 compiled on Oct 14 2023, 08:45:36
[09:14:52][C][status_led:064]: Status Led Light:
[09:14:52][C][status_led:065]:   Pin: GPIO13
[09:14:52][C][wifi:546]: WiFi:
[09:14:52][C][wifi:382]:   Local MAC: 84:0D:8E:60:07:2C
[09:14:52][C][wifi:383]:   SSID: 'esp'[redacted]
[09:14:52][C][wifi:384]:   IP Address: 192.168.1.79
[09:14:52][C][wifi:385]:   BSSID: 2E:E8:29:9D:9C:8B[redacted]
[09:14:52][C][wifi:387]:   Hostname: 'coffee-machine'
[09:14:52][C][wifi:389]:   Signal strength: -65 dB ▂▄▆█
[09:14:52][C][wifi:393]:   Channel: 11
[09:14:52][C][wifi:394]:   Subnet: 255.255.255.0
[09:14:52][C][wifi:395]:   Gateway: 192.168.1.1
[09:14:52][C][wifi:396]:   DNS1: 192.168.1.1
[09:14:52][C][wifi:397]:   DNS2: 0.0.0.0
[09:14:52][C][logger:357]: Logger:
[09:14:52][C][logger:358]:   Level: DEBUG
[09:14:52][C][logger:359]:   Log Baud Rate: 0
[09:14:52][C][logger:361]:   Hardware UART: UART0
[09:14:52][C][uart.arduino_esp8266:102]: UART Bus:
[09:14:52][C][uart.arduino_esp8266:104]:   RX Pin: GPIO3
[09:14:52][C][uart.arduino_esp8266:106]:   RX Buffer Size: 256
[09:14:52][C][uart.arduino_esp8266:108]:   Baud Rate: 4800 baud
[09:14:52][C][uart.arduino_esp8266:109]:   Data Bits: 8
[09:14:52][C][uart.arduino_esp8266:110]:   Parity: NONE
[09:14:52][C][uart.arduino_esp8266:111]:   Stop bits: 1
[09:14:52][C][uart.arduino_esp8266:113]:   Using hardware serial interface.
[09:14:52][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'button'
[09:14:52][C][gpio.binary_sensor:016]:   Pin: GPIO12
[09:14:52][C][switch.gpio:068]: GPIO Switch 'switch'
[09:14:52][C][switch.gpio:090]:   Restore Mode: restore defaults to OFF
[09:14:52][C][switch.gpio:031]:   Pin: GPIO14
[09:14:52][C][light:103]: Light 'led'
[09:14:52][C][cse7766:196]: CSE7766:
[09:14:52][C][cse7766:197]:   Update Interval: 5.0s
[09:14:52][C][cse7766:199]:   Current 'current'
[09:14:52][C][cse7766:199]:     Device Class: 'current'
[09:14:52][C][cse7766:199]:     State Class: 'measurement'
[09:14:52][C][cse7766:199]:     Unit of Measurement: 'A'
[09:14:52][C][cse7766:199]:     Accuracy Decimals: 2
[09:14:52][C][cse7766:200]:   Power 'Coffee Machine ESP power'
[09:14:52][C][cse7766:200]:     Device Class: 'power'
[09:14:52][C][cse7766:200]:     State Class: 'measurement'
[09:14:52][C][cse7766:200]:     Unit of Measurement: 'W'
[09:14:52][C][cse7766:200]:     Accuracy Decimals: 1
[09:14:52][C][cse7766:201]:   Energy 'Coffee Machine ESP energy'
[09:14:52][C][cse7766:201]:     Device Class: 'energy'
[09:14:52][C][cse7766:201]:     State Class: 'total_increasing'
[09:14:52][C][cse7766:201]:     Unit of Measurement: 'Wh'
[09:14:52][C][cse7766:201]:     Accuracy Decimals: 3
[09:14:52][C][total_daily_energy:023]: Total Daily Energy 'Daily Energy'
[09:14:52][C][total_daily_energy:023]:   Device Class: 'energy'
[09:14:52][C][total_daily_energy:023]:   State Class: 'total_increasing'
[09:14:52][C][total_daily_energy:023]:   Unit of Measurement: 'kWh'
[09:14:52][C][total_daily_energy:023]:   Accuracy Decimals: 3
[09:14:52][C][total_daily_energy:023]:   Icon: 'mdi:counter'
[09:14:52][C][homeassistant.time:010]: Home Assistant Time:
[09:14:52][C][homeassistant.time:011]:   Timezone: 'GMT0BST,M3.5.0/1,M10.5.0'
[09:14:52][C][captive_portal:088]: Captive Portal:
[09:14:52][C][web_server:161]: Web Server:
[09:14:52][C][web_server:162]:   Address: coffee-machine.local:80
[09:14:52][C][mdns:115]: mDNS:
[09:14:52][C][mdns:116]:   Hostname: coffee-machine
[09:14:52][C][ota:097]: Over-The-Air Updates:
[09:14:52][C][ota:098]:   Address: coffee-machine.local:8266
[09:14:52][C][ota:101]:   Using Password.
[09:14:52][C][api:138]: API Server:
[09:14:52][C][api:139]:   Address: coffee-machine.local:6053
[09:14:52][C][api:141]:   Using noise encryption: YES
[09:14:54][D][sensor:093]: 'current': Sending state 0.00000 A with 2 decimals of accuracy
[09:14:54][D][sensor:093]: 'Coffee Machine ESP power': Sending state 0.00000 W with 1 decimals of accuracy
[09:14:54][D][sensor:093]: 'Daily Energy': Sending state 0.00000 kWh with 3 decimals of accuracy
[09:14:59][D][sensor:093]: 'current': Sending state 0.00000 A with 2 decimals of accuracy
[09:14:59][D][sensor:093]: 'Coffee Machine ESP power': Sending state 0.00000 W with 1 decimals of accuracy
[09:14:59][D][sensor:093]: 'Daily Energy': Sending state 0.00000 kWh with 3 decimals of accuracy
[09:15:01][D][api:102]: Accepted 192.168.1.63
[09:15:01][W][component:204]: Component api took a long time for an operation (0.36 s).
[09:15:01][W][component:205]: Components should block for at most 20-30ms.
[09:15:02][D][api.connection:1031]: Home Assistant 2023.10.3 (192.168.1.63): Connected successfully
[09:15:03][D][time:044]: Synchronized time: 2023-10-14 09:15:02
[09:15:04][D][sensor:093]: 'current': Sending state 0.00000 A with 2 decimals of accuracy
[09:15:04][D][sensor:093]: 'Coffee Machine ESP power': Sending state 0.19095 W with 1 decimals of accuracy
[09:15:04][D][sensor:093]: 'Daily Energy': Sending state 0.00000 kWh with 3 decimals of accuracy
[09:15:04][D][sensor:093]: 'Coffee Machine ESP energy': Sending state 0.00458 Wh with 3 decimals of accuracy
[09:15:09][D][sensor:093]: 'current': Sending state 0.00000 A with 2 decimals of accuracy
[09:15:09][D][sensor:093]: 'Coffee Machine ESP power': Sending state 0.00000 W with 1 decimals of accuracy
[09:15:09][D][sensor:093]: 'Daily Energy': Sending state 0.00000 kWh with 3 decimals of accuracy

So after connecting to HA (via native api) and synchronizing the time the esp just stops even reading sensor values? So after [09:10:46][D][time:044]: Synchronized time ... no further log output - correct? :thinking:

Shouldn’t be at all. I have updates interval of 100ms (that’s 0.1s) on esphome nodes without any problems.

Does it always work after a power cycle (even when not installed/flashed again)? :arrows_counterclockwise:

One thing which is probably worth a try is increasing the log level. :mag:

Also feel free to drop your yaml :page_with_curl:

No further sensor logs correct, it will go on to show the logs of the switch/relay changing from off to on or vice versa

Yes, I don’t need to re-flash, just power cycle the smart plug to get the sensor values updated and then it will be ok for a day or so.

.yaml
  devicename: Coffee Machine ESP

esphome:
  name: coffee-machine
  friendly_name: ${devicename}

esp8266:
  board: esp01_1m

# Enable logging
logger:
  baud_rate: 0
  #level: VERBOSE

uart:
  rx_pin: 3
  baud_rate: 4800
  #parity: EVEN

# Enable Home Assistant API
api:
  encryption:
    key: "a5A5ef5ADPDBJcO0In0P2KCCml/lJi219x0BF4FBs="

ota:
  password: "46e885c436e601d62544743f247378"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Coffee-Machine Fallback Hotspot"
    password: "o5qaIcHP7Ls"

captive_portal:

# Enable Web server
web_server:
  port: 80

sensor:
  # Power sensor
  - platform: cse7766
    update_interval: 5s
    # Current sensor
    current:
      name: current
      unit_of_measurement: A
      id: current
      filters:
        - lambda: !lambda |-
            if (x < 0.100) return 0;
            return x;
      #internal: true
 
    # Energy sensor
    energy:
      name: ${devicename} energy
      unit_of_measurement: Wh
      id: energy
      internal: true
    # Power sensor
    power:
      name: ${devicename} power
      unit_of_measurement: W
      id: power
      internal: True
  # Total Daily Energy    
  - platform: total_daily_energy
    name: Daily Energy
    device_class: energy
    state_class: total_increasing
    accuracy_decimals: 3
    filters:
      - multiply: 0.001
    unit_of_measurement: kWh
    icon: "mdi:counter"
    power_id: power

# Enable time component to reset energy at midnight
time:
  - platform: homeassistant
    id: homeassistant_time
    
binary_sensor:
  # Binary sensor for the button press
  - platform: gpio
    name: button
    pin:
      number: GPIO12
      inverted: true
    on_press:
      - switch.toggle: relay

switch:
  # Switch to toggle the relay
  - platform: gpio
    restore_mode: RESTORE_DEFAULT_OFF
    id: relay
    name: switch
    pin: GPIO14
    on_turn_on:
      - light.turn_on: led
    on_turn_off:
      - light.turn_off: led

light:
  # Relay state light
  - platform: status_led
    pin:
      number: GPIO13
      inverted: true
    id: led

Looks totally fine to me. :+1:

So could you ramp up the log level till you get sensor related information (again)? :page_facing_up:

Also the question: Is this a of the shelf device or a self build? :hammer_and_wrench:

It is an of the shelf Tuya adaptor.

Logs during issues

Machine was off at this point in time and started going ‘faulty’ sending a fixed state around 11:55:17, shortly after a fixed state of 1.99 at 11:55:27

2023-10-15 11:53:57.636 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending PingResponse: 
2023-10-15 11:53:57.636 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [7704e5b22c89db653413b016f72419d66dfab751]
2023-10-15 11:54:02.419 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:54:02.420 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:54:02.469 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:54:02.469 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343934178352356, missing_state=False)
2023-10-15 11:54:07.416 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:54:07.416 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:54:07.419 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:54:07.420 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343939542770386, missing_state=False)
2023-10-15 11:54:12.414 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:54:12.415 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:54:12.418 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:54:12.418 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343945503234863, missing_state=False)
2023-10-15 11:54:17.417 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:54:17.418 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:54:17.423 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:54:17.424 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343952059745789, missing_state=False)
2023-10-15 11:54:22.425 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:54:22.425 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:54:22.428 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:54:22.428 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343956828117371, missing_state=False)
2023-10-15 11:54:27.420 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:54:27.420 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:54:27.425 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:54:27.425 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343961596488953, missing_state=False)
2023-10-15 11:54:32.420 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:54:32.420 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:54:32.423 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:54:32.423 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343964576721191, missing_state=False)
2023-10-15 11:54:37.422 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:54:37.423 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:54:37.425 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:54:37.426 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343969345092773, missing_state=False)
2023-10-15 11:54:42.420 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:54:42.420 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:54:42.424 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:54:42.425 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343975305557251, missing_state=False)
2023-10-15 11:54:47.416 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:54:47.416 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:54:47.419 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:54:47.419 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343981862068176, missing_state=False)
2023-10-15 11:54:52.416 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:54:52.416 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:54:52.419 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:54:52.419 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343987226486206, missing_state=False)
2023-10-15 11:54:57.417 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:54:57.418 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:54:57.421 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:54:57.421 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343993186950684, missing_state=False)
2023-10-15 11:54:57.660 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type PingRequest: 
2023-10-15 11:54:57.661 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending PingResponse: 
2023-10-15 11:54:57.661 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [f9d252a8a6c8a5dc3f8dc9e16d3c846c81da511c]
2023-10-15 11:55:02.415 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:55:02.415 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:55:02.458 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:55:02.458 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7343998551368713, missing_state=False)
2023-10-15 11:55:07.414 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:55:07.414 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:55:07.417 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:55:07.418 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7344005107879639, missing_state=False)
2023-10-15 11:55:12.414 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:55:12.415 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 11:55:12.418 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:55:12.418 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7344010472297668, missing_state=False)
2023-10-15 11:55:17.422 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:55:17.422 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2037989808: SensorState(key=2037989808, state=1.281137228012085, missing_state=False)
2023-10-15 11:55:17.427 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:55:17.427 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.734872043132782, missing_state=False)
2023-10-15 11:55:22.415 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:55:22.416 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2037989808: SensorState(key=2037989808, state=1.1663727760314941, missing_state=False)
2023-10-15 11:55:22.420 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:55:22.420 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7350675463676453, missing_state=False)
2023-10-15 11:55:27.416 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 11:55:27.416 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2037989808: SensorState(key=2037989808, state=1.9899044036865234, missing_state=False)
2023-10-15 11:55:27.419 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 11:55:27.420 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.7357737421989441, missing_state=False)
2023-10-15 11:55:53.051 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending PingRequest: 

Machine turned on around 15:07:39

2023-10-15 15:06:33.550 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending PingRequest: 
2023-10-15 15:06:33.550 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [1633ed974ec106274c9c663fff6be4366d0c2ce2]
2023-10-15 15:06:33.558 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type PingResponse: 
2023-10-15 15:07:13.551 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending PingRequest: 
2023-10-15 15:07:13.551 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [b5c651035e59bb417f0e8ee0dddaef9e80f114ee]
2023-10-15 15:07:13.562 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type PingResponse: 
2023-10-15 15:07:39.939 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending SwitchCommandRequest: key: 3202316517
2023-10-15 15:07:39.939 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [c338113a56f577f40f32ead1184cd93dfef79909e960fa3e35189e]
2023-10-15 15:07:39.964 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SwitchStateResponse: key: 3202316517
2023-10-15 15:07:39.964 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 3202316517: SwitchState(key=3202316517, state=True)
2023-10-15 15:07:42.452 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 15:07:42.452 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)

Machine turned off around 15:31:02

2023-10-15 15:30:37.448 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 15:30:37.449 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2037989808: SensorState(key=2037989808, state=0.41304704546928406, missing_state=False)
2023-10-15 15:30:37.454 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 15:30:37.454 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.9966256618499756, missing_state=False)
2023-10-15 15:30:40.644 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type PingRequest: 
2023-10-15 15:30:40.645 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending PingResponse: 
2023-10-15 15:30:40.645 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [89ec77d7e9d954c0b37b2317d5be5779afc7a050]
2023-10-15 15:30:42.454 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 15:30:42.454 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2037989808: SensorState(key=2037989808, state=5.469623565673828, missing_state=False)
2023-10-15 15:30:42.497 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 15:30:42.497 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.9983357191085815, missing_state=False)
2023-10-15 15:30:47.456 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 15:30:47.456 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2037989808: SensorState(key=2037989808, state=0.10146189481019974, missing_state=False)
2023-10-15 15:30:47.459 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 15:30:47.459 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.9987553358078003, missing_state=False)
2023-10-15 15:30:52.448 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 15:30:52.448 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 15:30:52.451 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 15:30:52.451 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.998755931854248, missing_state=False)
2023-10-15 15:30:57.462 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 15:30:57.462 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: ignoring duplicate update with key 2037989808: SensorState(key=2037989808, state=0.0, missing_state=False)
2023-10-15 15:30:57.469 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 15:30:57.469 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.999763011932373, missing_state=False)
2023-10-15 15:31:02.455 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 15:31:02.455 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2037989808: SensorState(key=2037989808, state=0.6134733557701111, missing_state=False)
2023-10-15 15:31:02.458 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 15:31:02.458 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=0.9999718070030212, missing_state=False)
2023-10-15 15:31:07.448 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2037989808
2023-10-15 15:31:07.448 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2037989808: SensorState(key=2037989808, state=0.653245747089386, missing_state=False)
2023-10-15 15:31:07.451 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SensorStateResponse: key: 2801008683
2023-10-15 15:31:07.451 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 2801008683: SensorState(key=2801008683, state=1.0004369020462036, missing_state=False)
2023-10-15 15:31:33.618 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending PingRequest: 
2023-10-15 15:31:33.618 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [6d6b511facfcce02114f2a4ca82c04af3444cecd]
2023-10-15 15:31:33.631 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type PingResponse: 
2023-10-15 15:32:13.621 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending PingRequest: 
2023-10-15 15:32:13.621 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [d36ae903ec2f0ddb7afa9455e7772a5621b7a5d6]
2023-10-15 15:32:13.636 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type PingResponse: 
2023-10-15 15:32:53.622 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending PingRequest: 
2023-10-15 15:32:53.622 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [24174aa9f15d71169eaf0d2e5df8c4456dbb4794]
2023-10-15 15:32:53.646 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type PingResponse: 
2023-10-15 15:33:33.623 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending PingRequest: 
2023-10-15 15:33:33.624 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [59fcbdf414fa1375c6cb48efbe15bdb75fcb69dc]
2023-10-15 15:33:33.635 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type PingResponse: 
2023-10-15 15:33:50.865 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending SwitchCommandRequest: key: 3202316517
2023-10-15 15:33:50.865 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [371045518c1e903af53f097b5433ae7164cdb6c5401c232440]
2023-10-15 15:33:50.884 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type SwitchStateResponse: key: 3202316517
2023-10-15 15:33:50.884 DEBUG (MainThread) [homeassistant.components.esphome.entry_data] coffee-machine: dispatching update with key 3202316517: SwitchState(key=3202316517, state=False)
2023-10-15 15:34:13.624 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending PingRequest: 
2023-10-15 15:34:13.625 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [ba72a963af2ac987eaff13577b91833801869a9e]
2023-10-15 15:34:13.635 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type PingResponse: 

Power cycled the smart adaptor around 16:38:53 and all was well again

2023-10-15 16:38:53.819 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending PingRequest: 
2023-10-15 16:38:53.821 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [1075caca0164a172bdd2e0507908c060b7ab1749]
2023-10-15 16:38:53.830 WARNING (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Connection error occurred: [Errno 104] Connection reset by peer
2023-10-15 16:38:53.831 DEBUG (MainThread) [aioesphomeapi.connection] Cleaning up connection to coffee-machine @ 192.168.1.79
2023-10-15 16:38:53.834 INFO (MainThread) [aioesphomeapi.reconnect_logic] Processing unexpected disconnect from ESPHome API for coffee-machine @ 192.168.1.79
2023-10-15 16:38:53.834 DEBUG (MainThread) [homeassistant.components.esphome.manager] coffee-machine: 192.168.1.79 disconnected (expected=False), running disconnected callbacks
2023-10-15 16:38:53.851 DEBUG (MainThread) [aioesphomeapi.reconnect_logic] Trying to connect to coffee-machine @ 192.168.1.79
2023-10-15 16:38:53.851 DEBUG (MainThread) [aioesphomeapi.reconnect_logic] Connected lock acquired for coffee-machine @ 192.168.1.79
2023-10-15 16:38:53.902 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Connecting to 192.168.1.79:6053 (AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.1.79', port=6053)))
2023-10-15 16:38:53.912 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Opened socket to 192.168.1.79:6053 (AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.1.79', port=6053)))
2023-10-15 16:38:53.916 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending encrypted hello handshake: [01000001003100417561568781ff395ed0ea248d56740c853f023ffa0f60cc7fc1711e01878c01d7dc719be597c98a8132503d8d976212]
2023-10-15 16:38:56.801 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending HelloRequest: client_info: "Home Assistant 2023.10.3"
2023-10-15 16:38:56.802 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [cc745f82fb557123b98f415f1ef9bd303ff0ad3c237a7e245e05eed32745fe435598dc86246803615eab427a2625b7f831da]
2023-10-15 16:38:56.811 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type HelloResponse: api_version_major: 1
server_info: "coffee-machine (esphome v2023.9.3)"
name: "coffee-machine"
2023-10-15 16:38:56.811 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Successfully connected ('coffee-machine (esphome v2023.9.3)' API=1.9)
2023-10-15 16:38:56.811 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending ConnectRequest: 
2023-10-15 16:38:56.813 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [d058fe3eb93b020879f42c325e70f31ecc2f0f9c]
2023-10-15 16:38:56.834 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type GetTimeRequest: 
2023-10-15 16:38:56.834 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending GetTimeResponse: epoch_seconds: 1697384336
2023-10-15 16:38:56.835 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [ab8379958b7ef54903eb77b185da757fb2f12bc23cd916e608]
2023-10-15 16:38:56.843 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type ConnectResponse: 
2023-10-15 16:38:56.844 INFO (MainThread) [aioesphomeapi.reconnect_logic] Successfully connected to coffee-machine @ 192.168.1.79
2023-10-15 16:38:56.844 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending DeviceInfoRequest: 
2023-10-15 16:38:56.845 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [cf6f40cbf82ac6137734a51c11b8da0e13ff7309]
2023-10-15 16:38:56.873 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type DeviceInfoResponse: name: "coffee-machine"
2023-10-15 16:38:56.875 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending ListEntitiesRequest: 
2023-10-15 16:38:56.876 DEBUG (MainThread) [aioesphomeapi._frame_helper.noise] coffee-machine @ 192.168.1.79: Sending frame: [05e878fdc1168f5b2d7e12ff3ba465a5d2db036a]
2023-10-15 16:38:56.919 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type ListEntitiesBinarySensorResponse: object_id: "button"
unique_id: "coffee-machinebinary_sensorbutton"
2023-10-15 16:38:56.982 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type ListEntitiesSensorResponse: object_id: "current"
unique_id: "coffee-machinesensorcurrent"
2023-10-15 16:38:57.036 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type ListEntitiesSensorResponse: object_id: "daily_energy"
unique_id: "coffee-machinesensordaily_energy"
2023-10-15 16:38:57.076 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type ListEntitiesSwitchResponse: object_id: "switch"
unique_id: "coffee-machineswitchswitch"
2023-10-15 16:38:57.138 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Got message of type ListEntitiesDoneResponse: 
2023-10-15 16:38:57.139 DEBUG (MainThread) [aioesphomeapi.connection] coffee-machine @ 192.168.1.79: Sending SubscribeStatesRequest: