From d9bb61a7b78d7898c62d5bac9912eb59d40d2083 Mon Sep 17 00:00:00 2001 From: Till Date: Sat, 16 Mar 2024 16:56:54 +0100 Subject: [PATCH] Fix missing idle state on some EP2220 machines (#45) --- .../philips_coffee_machine/text_sensor/status_sensor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/philips_coffee_machine/text_sensor/status_sensor.cpp b/components/philips_coffee_machine/text_sensor/status_sensor.cpp index 41d9e2a..778ccf7 100644 --- a/components/philips_coffee_machine/text_sensor/status_sensor.cpp +++ b/components/philips_coffee_machine/text_sensor/status_sensor.cpp @@ -43,7 +43,7 @@ namespace esphome #ifdef PHILIPS_EP3243 if (data[3] == led_on && data[4] == led_on && data[5] == led_on && data[13] == led_off && data[14] == led_off && data[15] == led_off) #else - if (data[3] == led_on && data[4] == led_on && data[5] == led_on && data[6] == led_on) + if (data[3] == led_on && data[4] == led_on && data[5] == led_on && data[6] != led_off) #endif { // selecting a beverage can result in a short "busy" period since the play/pause button has not been blinking @@ -114,7 +114,7 @@ namespace esphome } // Steam selected - if (data[3] == led_off && data[4] == led_off && data[5] == led_off && data[6] == led_on) + if (data[3] == led_off && data[4] == led_off && data[5] == led_off && data[6] != led_off) { #ifdef PHILIPS_EP2235 if (is_play_pause_blinking)