From ca18b344b451d6fe3ed441ae623976401dd23526 Mon Sep 17 00:00:00 2001 From: Aaron Solochek Date: Mon, 26 May 2025 19:11:49 -0700 Subject: [PATCH] * fixing the check for the phase CT vs. circuit CTs. They are A=2, B=1, C=0 --- esphome/components/emporia_vue/emporia_vue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/emporia_vue/emporia_vue.cpp b/esphome/components/emporia_vue/emporia_vue.cpp index 0418c02c..c6c85855 100644 --- a/esphome/components/emporia_vue/emporia_vue.cpp +++ b/esphome/components/emporia_vue/emporia_vue.cpp @@ -129,7 +129,7 @@ void CTClampConfig::update_from_reading(const SensorReading &sensor_reading) { uint16_t raw_current = sensor_reading.current[this->input_port_]; double raw_current_d = (double) raw_current; double scalar; - if (this->input_port_ <= CTInputPort::C) { + if (this->input_port_ <= CTInputPort::A) { scalar = 775.0 / 42624.0; } else { scalar = 775.0 / 170496.0;