8static const char *
const TAG =
"atm90e32.button";
12 ESP_LOGW(TAG,
"[CALIBRATION] No meters assigned to Gain Calibration button [%s]", this->
get_name().c_str());
16 ESP_LOGI(TAG,
"%s", this->
get_name().c_str());
18 "[CALIBRATION] Use gain_ct: & gain_voltage: under each phase_x: in your config file to save these values");
19 this->
parent_->run_gain_calibrations();
24 ESP_LOGW(TAG,
"[CALIBRATION] No meters assigned to Clear Gain button [%s]", this->
get_name().c_str());
28 ESP_LOGI(TAG,
"%s", this->
get_name().c_str());
29 this->
parent_->clear_gain_calibrations();
34 ESP_LOGW(TAG,
"[CALIBRATION] No meters assigned to Offset Calibration button [%s]", this->
get_name().c_str());
38 ESP_LOGI(TAG,
"%s", this->
get_name().c_str());
39 ESP_LOGI(TAG,
"[CALIBRATION] **NOTE: CTs and ACVs must be 0 during this process. USB power only**");
40 ESP_LOGI(TAG,
"[CALIBRATION] Use offset_voltage: & offset_current: under each phase_x: in your config file to save "
42 this->
parent_->run_offset_calibrations();
47 ESP_LOGW(TAG,
"[CALIBRATION] No meters assigned to Clear Offset button [%s]", this->
get_name().c_str());
51 ESP_LOGI(TAG,
"%s", this->
get_name().c_str());
52 this->
parent_->clear_offset_calibrations();
57 ESP_LOGW(TAG,
"[CALIBRATION] No meters assigned to Power Calibration button [%s]", this->
get_name().c_str());
61 ESP_LOGI(TAG,
"%s", this->
get_name().c_str());
62 ESP_LOGI(TAG,
"[CALIBRATION] **NOTE: CTs must be 0 during this process. Voltage reference should be present**");
63 ESP_LOGI(TAG,
"[CALIBRATION] Use offset_active_power: & offset_reactive_power: under each phase_x: in your config "
64 "file to save these values");
65 this->
parent_->run_power_offset_calibrations();
70 ESP_LOGW(TAG,
"[CALIBRATION] No meters assigned to Clear Power button [%s]", this->
get_name().c_str());
74 ESP_LOGI(TAG,
"%s", this->
get_name().c_str());
75 this->
parent_->clear_power_offset_calibrations();
const StringRef & get_name() const
ATM90E32Component * parent_
Providing packet encoding functions for exchanging data with a remote host.