mirror of
https://github.com/nekorevend/esphome-emporia-vue-utility.git
synced 2026-01-10 05:10:40 -07:00
Advise to move device closer to the meter if 'e'-type message.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user