diff --git a/esphome/components/emporia_vue_utility/emporia_vue_utility.cpp b/esphome/components/emporia_vue_utility/emporia_vue_utility.cpp index 05271d2..e34b3b8 100644 --- a/esphome/components/emporia_vue_utility/emporia_vue_utility.cpp +++ b/esphome/components/emporia_vue_utility/emporia_vue_utility.cpp @@ -101,8 +101,12 @@ void EmporiaVueUtility::loop() { } break; case 'e': - // Unknown response type, but we can ignore. - ESP_LOGI(TAG, "Got 'e'-type message with value: %d", + // Sometimes happens when the device is farther away from the meter. + // Don't know what the value means. It is probably associated with an + // enum that Emporia defined. + ESP_LOGI(TAG, + "Got error message (with value '%d'). Move me closer to the " + "meter for better reception.", input_buffer.data[4]); break; default: diff --git a/esphome/components/emporia_vue_utility/emporia_vue_utility.h b/esphome/components/emporia_vue_utility/emporia_vue_utility.h index 23287df..8da621f 100644 --- a/esphome/components/emporia_vue_utility/emporia_vue_utility.h +++ b/esphome/components/emporia_vue_utility/emporia_vue_utility.h @@ -1,9 +1,10 @@ #pragma once +#include + #include "esphome/components/sensor/sensor.h" #include "esphome/components/uart/uart.h" #include "esphome/core/component.h" -#include // If the instant watts being consumed meter reading is outside of these ranges, // the sample will be ignored which helps prevent garbage data from polluting