Advise to move device closer to the meter if 'e'-type message.

This commit is contained in:
Victor Chang
2024-06-12 23:40:57 -07:00
parent cd4c6c97ab
commit 556e2fc476
2 changed files with 8 additions and 3 deletions

View File

@@ -101,8 +101,12 @@ void EmporiaVueUtility::loop() {
} }
break; break;
case 'e': case 'e':
// Unknown response type, but we can ignore. // Sometimes happens when the device is farther away from the meter.
ESP_LOGI(TAG, "Got 'e'-type message with value: %d", // 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]); input_buffer.data[4]);
break; break;
default: default:

View File

@@ -1,9 +1,10 @@
#pragma once #pragma once
#include <Arduino.h>
#include "esphome/components/sensor/sensor.h" #include "esphome/components/sensor/sensor.h"
#include "esphome/components/uart/uart.h" #include "esphome/components/uart/uart.h"
#include "esphome/core/component.h" #include "esphome/core/component.h"
#include <Arduino.h>
// If the instant watts being consumed meter reading is outside of these ranges, // 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 // the sample will be ignored which helps prevent garbage data from polluting