... | ... |
@@ -42,7 +42,7 @@ void setupDataReadout() |
42 | 42 |
// 0-1:24.2.1(150531200000S)(00811.923*m3) |
43 | 43 |
// 0-1:24.2.1 = Gas (DSMR v5.0) |
44 | 44 |
telegramObjects[4].name = "gas_meter_m3"; |
45 |
- strcpy(telegramObjects[4].code, "0-1:24.2.1"); |
|
45 |
+ strcpy(telegramObjects[4].code, "0-1:24.2.3"); |
|
46 | 46 |
telegramObjects[4].endChar = '*'; |
47 | 47 |
|
48 | 48 |
// 1-0:1.7.0(00.424*kW) Actueel verbruik |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,138 @@ |
1 |
+void setupOTA() |
|
2 |
+{ |
|
3 |
+ ArduinoOTA.setPort(8266); |
|
4 |
+ |
|
5 |
+ ArduinoOTA.setHostname(HOSTNAME); |
|
6 |
+ ArduinoOTA.setPassword(OTA_PASSWORD); |
|
7 |
+ |
|
8 |
+ ArduinoOTA.onError([](ota_error_t error) |
|
9 |
+ { |
|
10 |
+ blinkLed(3, 2000); // Blink 3 times slowly to indicate OTA error |
|
11 |
+ }); |
|
12 |
+ |
|
13 |
+ ArduinoOTA.begin(); |
|
14 |
+} |
|
15 |
+ |
|
16 |
+void setupDataReadout() |
|
17 |
+{ |
|
18 |
+ // 1-0:1.8.1(000992.992*kWh) |
|
19 |
+ // 1-0:1.8.1 = Elektra verbruik laag tarief (DSMR v5.0) |
|
20 |
+ telegramObjects[0].name = "consumption_low_tarif"; |
|
21 |
+ strcpy(telegramObjects[0].code, "1-0:1.8.1"); |
|
22 |
+ telegramObjects[0].endChar = '*'; |
|
23 |
+ |
|
24 |
+ // 1-0:1.8.2(000560.157*kWh) |
|
25 |
+ // 1-0:1.8.2 = Elektra verbruik hoog tarief (DSMR v5.0) |
|
26 |
+ telegramObjects[1].name = "consumption_high_tarif"; |
|
27 |
+ strcpy(telegramObjects[1].code, "1-0:1.8.2"); |
|
28 |
+ telegramObjects[1].endChar = '*'; |
|
29 |
+ |
|
30 |
+ // 1-0:1.8.1(000992.992*kWh) |
|
31 |
+ // 1-0:1.8.1 = (DSMR v5.0) |
|
32 |
+ telegramObjects[2].name = "delivered_low_tarif"; |
|
33 |
+ strcpy(telegramObjects[2].code, "1-0:2.8.1"); |
|
34 |
+ telegramObjects[2].endChar = '*'; |
|
35 |
+ |
|
36 |
+ // 1-0:1.8.2(000560.157*kWh) |
|
37 |
+ // 1-0:1.8.2 = (DSMR v5.0) |
|
38 |
+ telegramObjects[3].name = "delivered_high_tarif"; |
|
39 |
+ strcpy(telegramObjects[3].code, "1-0:2.8.2"); |
|
40 |
+ telegramObjects[3].endChar = '*'; |
|
41 |
+ |
|
42 |
+ // 0-1:24.2.1(150531200000S)(00811.923*m3) |
|
43 |
+ // 0-1:24.2.1 = Gas (DSMR v5.0) |
|
44 |
+ telegramObjects[4].name = "gas_meter_m3"; |
|
45 |
+ strcpy(telegramObjects[4].code, "0-1:24.2.1"); |
|
46 |
+ telegramObjects[4].endChar = '*'; |
|
47 |
+ |
|
48 |
+ // 1-0:1.7.0(00.424*kW) Actueel verbruik |
|
49 |
+ // 1-0:1.7.x = Electricity consumption actual usage (DSMR v5.0) |
|
50 |
+ telegramObjects[5].name = "actual_consumption"; |
|
51 |
+ strcpy(telegramObjects[5].code, "1-0:1.7.0"); |
|
52 |
+ telegramObjects[5].endChar = '*'; |
|
53 |
+ |
|
54 |
+ // 1-0:2.7.0(00.000*kW) |
|
55 |
+ // Actuele teruglevering (-P) in 1 Watt resolution |
|
56 |
+ telegramObjects[6].name = "actual_received"; |
|
57 |
+ strcpy(telegramObjects[6].code, "1-0:2.7"); |
|
58 |
+ telegramObjects[6].endChar = '*'; |
|
59 |
+ |
|
60 |
+ // 1-0:21.7.0(00.378*kW) |
|
61 |
+ // 1-0:21.7.0 = Instantaan vermogen Elektriciteit levering L1 |
|
62 |
+ telegramObjects[7].name = "instant_power_usage_l1"; |
|
63 |
+ strcpy(telegramObjects[7].code, "1-0:21.7.0"); |
|
64 |
+ telegramObjects[7].endChar = '*'; |
|
65 |
+ |
|
66 |
+ // 1-0:41.7.0(00.378*kW) |
|
67 |
+ // 1-0:41.7.0 = Instantaan vermogen Elektriciteit levering L2 |
|
68 |
+ telegramObjects[8].name = "instant_power_usage_l2"; |
|
69 |
+ strcpy(telegramObjects[8].code, "1-0:41.7.0"); |
|
70 |
+ telegramObjects[8].endChar = '*'; |
|
71 |
+ |
|
72 |
+ // 1-0:61.7.0(00.378*kW) |
|
73 |
+ // 1-0:61.7.0 = Instantaan vermogen Elektriciteit levering L3 |
|
74 |
+ telegramObjects[9].name = "instant_power_usage_l3"; |
|
75 |
+ strcpy(telegramObjects[9].code, "1-0:61.7.0"); |
|
76 |
+ telegramObjects[9].endChar = '*'; |
|
77 |
+ |
|
78 |
+ // 1-0:31.7.0(002*A) |
|
79 |
+ // 1-0:31.7.0 = Instantane stroom Elektriciteit L1 |
|
80 |
+ telegramObjects[10].name = "instant_power_current_l1"; |
|
81 |
+ strcpy(telegramObjects[10].code, "1-0:31.7.0"); |
|
82 |
+ telegramObjects[10].endChar = '*'; |
|
83 |
+ |
|
84 |
+ // 1-0:51.7.0(002*A) |
|
85 |
+ // 1-0:51.7.0 = Instantane stroom Elektriciteit L2 |
|
86 |
+ telegramObjects[11].name = "instant_power_current_l2"; |
|
87 |
+ strcpy(telegramObjects[11].code, "1-0:51.7.0"); |
|
88 |
+ telegramObjects[11].endChar = '*'; |
|
89 |
+ |
|
90 |
+ // 1-0:71.7.0(002*A) |
|
91 |
+ // 1-0:71.7.0 = Instantane stroom Elektriciteit L3 |
|
92 |
+ telegramObjects[12].name = "instant_power_current_l3"; |
|
93 |
+ strcpy(telegramObjects[12].code, "1-0:71.7.0"); |
|
94 |
+ telegramObjects[12].endChar = '*'; |
|
95 |
+ |
|
96 |
+ // 1-0:32.7.0(232.0*V) |
|
97 |
+ // 1-0:32.7.0 = Voltage L1 |
|
98 |
+ telegramObjects[13].name = "instant_voltage_l1"; |
|
99 |
+ strcpy(telegramObjects[13].code, "1-0:32.7.0"); |
|
100 |
+ telegramObjects[13].endChar = '*'; |
|
101 |
+ |
|
102 |
+ // 1-0:52.7.0(232.0*V) |
|
103 |
+ // 1-0:52.7.0 = Voltage L2 |
|
104 |
+ telegramObjects[14].name = "instant_voltage_l2"; |
|
105 |
+ strcpy(telegramObjects[14].code, "1-0:52.7.0"); |
|
106 |
+ telegramObjects[14].endChar = '*'; |
|
107 |
+ |
|
108 |
+ // 1-0:72.7.0(232.0*V) |
|
109 |
+ // 1-0:72.7.0 = Voltage L3 |
|
110 |
+ telegramObjects[15].name = "instant_voltage_l3"; |
|
111 |
+ strcpy(telegramObjects[15].code, "1-0:72.7.0"); |
|
112 |
+ telegramObjects[15].endChar = '*'; |
|
113 |
+ |
|
114 |
+ // 0-0:96.14.0(0001) |
|
115 |
+ // 0-0:96.14.0 = Actual Tarif |
|
116 |
+ telegramObjects[16].name = "actual_tarif_group"; |
|
117 |
+ strcpy(telegramObjects[16].code, "0-0:96.14.0"); |
|
118 |
+ |
|
119 |
+ // 0-0:96.7.21(00003) |
|
120 |
+ // 0-0:96.7.21 = Aantal onderbrekingen Elektriciteit |
|
121 |
+ telegramObjects[17].name = "short_power_outages"; |
|
122 |
+ strcpy(telegramObjects[17].code, "0-0:96.7.21"); |
|
123 |
+ |
|
124 |
+ // 0-0:96.7.9(00001) |
|
125 |
+ // 0-0:96.7.9 = Aantal lange onderbrekingen Elektriciteit |
|
126 |
+ telegramObjects[18].name = "long_power_outages"; |
|
127 |
+ strcpy(telegramObjects[18].code, "0-0:96.7.9"); |
|
128 |
+ |
|
129 |
+ // 1-0:32.32.0(00000) |
|
130 |
+ // 1-0:32.32.0 = Aantal korte spanningsdalingen Elektriciteit in fase 1 |
|
131 |
+ telegramObjects[19].name = "short_power_drops"; |
|
132 |
+ strcpy(telegramObjects[19].code, "1-0:32.32.0"); |
|
133 |
+ |
|
134 |
+ // 1-0:32.36.0(00000) |
|
135 |
+ // 1-0:32.36.0 = Aantal korte spanningsstijgingen Elektriciteit in fase 1 |
|
136 |
+ telegramObjects[20].name = "short_power_peaks"; |
|
137 |
+ strcpy(telegramObjects[20].code, "1-0:32.36.0"); |
|
138 |
+} |