7static const char *
const TAG =
"atm90e32.button";
11 ESP_LOGW(TAG,
"[CALIBRATION] No meters assigned to Gain Calibration button [%s]", this->
get_name().c_str());
15 ESP_LOGI(TAG,
"%s", this->
get_name().c_str());
17 "[CALIBRATION] Use gain_ct: & gain_voltage: under each phase_x: in your config file to save these values");
18 this->
parent_->run_gain_calibrations();
23 ESP_LOGW(TAG,
"[CALIBRATION] No meters assigned to Clear Gain button [%s]", this->
get_name().c_str());
27 ESP_LOGI(TAG,
"%s", this->
get_name().c_str());
28 this->
parent_->clear_gain_calibrations();
33 ESP_LOGW(TAG,
"[CALIBRATION] No meters assigned to Offset Calibration button [%s]", this->
get_name().c_str());
37 ESP_LOGI(TAG,
"%s", this->
get_name().c_str());
38 ESP_LOGI(TAG,
"[CALIBRATION] **NOTE: CTs and ACVs must be 0 during this process. USB power only**");
39 ESP_LOGI(TAG,
"[CALIBRATION] Use offset_voltage: & offset_current: under each phase_x: in your config file to save "
41 this->
parent_->run_offset_calibrations();
46 ESP_LOGW(TAG,
"[CALIBRATION] No meters assigned to Clear Offset button [%s]", this->
get_name().c_str());
50 ESP_LOGI(TAG,
"%s", this->
get_name().c_str());
51 this->
parent_->clear_offset_calibrations();
56 ESP_LOGW(TAG,
"[CALIBRATION] No meters assigned to Power Calibration button [%s]", this->
get_name().c_str());
60 ESP_LOGI(TAG,
"%s", this->
get_name().c_str());
61 ESP_LOGI(TAG,
"[CALIBRATION] **NOTE: CTs must be 0 during this process. Voltage reference should be present**");
62 ESP_LOGI(TAG,
"[CALIBRATION] Use offset_active_power: & offset_reactive_power: under each phase_x: in your config "
63 "file to save these values");
64 this->
parent_->run_power_offset_calibrations();
69 ESP_LOGW(TAG,
"[CALIBRATION] No meters assigned to Clear Power button [%s]", this->
get_name().c_str());
73 ESP_LOGI(TAG,
"%s", this->
get_name().c_str());
74 this->
parent_->clear_power_offset_calibrations();
const StringRef & get_name() const
ATM90E32Component * parent_