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;
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:

View File

@@ -1,9 +1,10 @@
#pragma once
#include <Arduino.h>
#include "esphome/components/sensor/sensor.h"
#include "esphome/components/uart/uart.h"
#include "esphome/core/component.h"
#include <Arduino.h>
// 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