165 const bool available = data !=
nullptr;
173 static constexpr SensorEntry SENSORS[] PROGMEM = {
223 for (
const SensorEntry &flash_entry : SENSORS) {
235 const size_t o = entry.offset;
237 switch (entry.type) {
248 raw =
static_cast<int32_t
>(
encode_uint32(data[o + 3], data[o + 2], data[o + 1], data[o]));
270 LOG_UPDATE_INTERVAL(
this);
271 LOG_SENSOR(
" ",
"Voltage A", this->voltage_a_sensor_);
272 LOG_SENSOR(
" ",
"Voltage B", this->voltage_b_sensor_);
273 LOG_SENSOR(
" ",
"Voltage C", this->voltage_c_sensor_);
274 LOG_SENSOR(
" ",
"Current A", this->current_a_sensor_);
275 LOG_SENSOR(
" ",
"Current B", this->current_b_sensor_);
276 LOG_SENSOR(
" ",
"Current C", this->current_c_sensor_);
277 LOG_SENSOR(
" ",
"Active Power A", this->active_power_a_sensor_);
278 LOG_SENSOR(
" ",
"Active Power B", this->active_power_b_sensor_);
279 LOG_SENSOR(
" ",
"Active Power C", this->active_power_c_sensor_);
280 LOG_SENSOR(
" ",
"Reactive Power A", this->reactive_power_a_sensor_);
281 LOG_SENSOR(
" ",
"Reactive Power B", this->reactive_power_b_sensor_);
282 LOG_SENSOR(
" ",
"Reactive Power C", this->reactive_power_c_sensor_);
283 LOG_SENSOR(
" ",
"Apparent Power A", this->apparent_power_a_sensor_);
284 LOG_SENSOR(
" ",
"Apparent Power B", this->apparent_power_b_sensor_);
285 LOG_SENSOR(
" ",
"Apparent Power C", this->apparent_power_c_sensor_);
286 LOG_SENSOR(
" ",
"Power Factor A", this->power_factor_a_sensor_);
287 LOG_SENSOR(
" ",
"Power Factor B", this->power_factor_b_sensor_);
288 LOG_SENSOR(
" ",
"Power Factor C", this->power_factor_c_sensor_);
289 LOG_SENSOR(
" ",
"Active Energy A", this->active_energy_a_sensor_);
290 LOG_SENSOR(
" ",
"Active Energy B", this->active_energy_b_sensor_);
291 LOG_SENSOR(
" ",
"Active Energy C", this->active_energy_c_sensor_);
292 LOG_SENSOR(
" ",
"Reactive Energy A", this->reactive_energy_a_sensor_);
293 LOG_SENSOR(
" ",
"Reactive Energy B", this->reactive_energy_b_sensor_);
294 LOG_SENSOR(
" ",
"Reactive Energy C", this->reactive_energy_c_sensor_);
295 LOG_SENSOR(
" ",
"Apparent Energy A", this->apparent_energy_a_sensor_);
296 LOG_SENSOR(
" ",
"Apparent Energy B", this->apparent_energy_b_sensor_);
297 LOG_SENSOR(
" ",
"Apparent Energy C", this->apparent_energy_c_sensor_);
298 LOG_SENSOR(
" ",
"Frequency", this->frequency_sensor_);
299 LOG_SENSOR(
" ",
"Total Active Power", this->total_active_power_sensor_);
300 LOG_SENSOR(
" ",
"Total Reactive Power", this->total_reactive_power_sensor_);
301 LOG_SENSOR(
" ",
"Total Apparent Power", this->total_apparent_power_sensor_);
302 LOG_SENSOR(
" ",
"Total Power Factor", this->total_power_factor_sensor_);
303 LOG_SENSOR(
" ",
"Total Active Energy", this->total_active_energy_sensor_);
304 LOG_SENSOR(
" ",
"Total Reactive Energy", this->total_reactive_energy_sensor_);
305 LOG_SENSOR(
" ",
"Total Apparent Energy", this->total_apparent_energy_sensor_);