ESPHome  2024.11.3
havells_solar_registers.h
Go to the documentation of this file.
1 #pragma once
2 namespace esphome {
3 namespace havells_solar {
4 
5 static const float TWO_DEC_UNIT = 0.01;
6 static const float ONE_DEC_UNIT = 0.1;
7 static const float NO_DEC_UNIT = 1;
8 static const float MULTIPLY_TEN_UNIT = 10;
9 
10 /* PV Input Message */
11 static const uint16_t HAVELLS_PV_1_VOLTAGE = 0x0006;
12 static const uint16_t HAVELLS_PV_1_CURRENT = 0x0007;
13 static const uint16_t HAVELLS_PV_2_VOLTAGE = 0x0008;
14 static const uint16_t HAVELLS_PV_2_CURRENT = 0x0009;
15 static const uint16_t HAVELLS_PV_1_POWER = 0x000A;
16 static const uint16_t HAVELLS_PV_2_POWER = 0x000B;
17 
18 /* Output Grid Message */
19 static const uint16_t HAVELLS_SYSTEM_ACTIVE_POWER = 0x000C;
20 static const uint16_t HAVELLS_SYSTEM_REACTIVE_POWER = 0x000D;
21 static const uint16_t HAVELLS_GRID_FREQUENCY = 0x000E;
22 static const uint16_t HAVELLS_PHASE_1_VOLTAGE = 0x000F;
23 static const uint16_t HAVELLS_PHASE_1_CURRENT = 0x0010;
24 static const uint16_t HAVELLS_PHASE_2_VOLTAGE = 0x0011;
25 static const uint16_t HAVELLS_PHASE_2_CURRENT = 0x0012;
26 static const uint16_t HAVELLS_PHASE_3_VOLTAGE = 0x0013;
27 static const uint16_t HAVELLS_PHASE_3_CURRENT = 0x0014;
28 
29 /* Inverter Generation message */
30 static const uint16_t HAVELLS_TOTAL_ENERGY_PRODUCTION = 0x0015;
31 static const uint16_t HAVELLS_TOTAL_GENERATION_TIME = 0x0017;
32 static const uint16_t HAVELLS_TODAY_PRODUCTION = 0x0019;
33 static const uint16_t HAVELLS_TODAY_GENERATION_TIME = 0x001A;
34 
35 /* Inverter inner message */
36 static const uint16_t HAVELLS_INVERTER_MODULE_TEMP = 0x001B;
37 static const uint16_t HAVELLS_INVERTER_INNER_TEMP = 0x001C;
38 static const uint16_t HAVELLS_INVERTER_BUS_VOLTAGE = 0x001D;
39 static const uint16_t HAVELLS_PV1_VOLTAGE_SAMPLED_BY_SECONDARY_CPU = 0x001E;
40 static const uint16_t HAVELLS_PV2_VOLTAGE_SAMPLED_BY_SECONDARY_CPU = 0x001F;
41 static const uint16_t HAVELLS_PV1_INSULATION_OF_P_TO_GROUND = 0x0024;
42 static const uint16_t HAVELLS_PV2_INSULATION_OF_P_TO_GROUND = 0x0025;
43 static const uint16_t HAVELLS_INSULATION_OF_PV_N_TO_GROUND = 0x0026;
44 static const uint16_t HAVELLS_GFCI_VALUE = 0x002A;
45 static const uint16_t HAVELLS_DCI_OF_R = 0x002B;
46 static const uint16_t HAVELLS_DCI_OF_S = 0x002C;
47 static const uint16_t HAVELLS_DCI_OF_T = 0x002D;
48 } // namespace havells_solar
49 } // namespace esphome
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7