Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit 7a38ec5

Browse files
committed
Remove high / low tariffs
- Use tariff 1 and 2 instead of high / low - Update README about NL and BE tariff differences. - Fix typo's
1 parent 3b5706c commit 7a38ec5

File tree

2 files changed

+28
-14
lines changed

2 files changed

+28
-14
lines changed

README.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# esp8266-dsmr
22

3-
A ESP8266 based DSMR reader, posting onto MQTT, powered directly from the meter itself, no external power supply needed.
3+
A ESP8266 based DSMR reader, posting messages onto MQTT.<br/>
4+
Can be powered directly from the meter itself, no external power supply needed*.<br/>
5+
<sup><i>* if enough power can be supplied by the meter.</i></sup>
46

5-
The code should work on DSRM v2.2 and higher, only tested on V4.2.
7+
The code should work on DSRM v2.2 and higher, only tested on V4.2.<br/>
8+
Supports Dutch and Belgian smart meters.<br/>
69

10+
## Board in action
711
![esp8266-dsmr](/docs/PCB_IRL.png "esp8266-dsmr")
812

913
## Requirements
@@ -18,24 +22,24 @@ The code should work on DSRM v2.2 and higher, only tested on V4.2.
1822
- [PubSubClient](https://pubsubclient.knolleary.net) - MQTT client
1923
- [Core for ESP8266](https://github.com/esp8266/Arduino) - Arduino core for ESP8266 WiFi chip
2024

21-
## Supported messages
25+
## Messages
2226

2327
### Info
2428
| Name | unit | DSMR code | MQTT topic |
2529
|:---- |:-------|:------ |:------|
2630
| DSMR version | - | 1-3:0.2.8 | <MQTT_TOPIC>/version |
27-
| Status | online, offline | - | <MQTT_TOPIC>/status |
31+
| Status | online | - | <MQTT_TOPIC>/status |
2832

2933
### Power
3034
| Name | unit | DSMR code | MQTT topic |
3135
|:---- |:-------|:------ |:------|
3236
| current power consumption | kW | 1-0:1.7.0 | <MQTT_TOPIC>/power/consumption |
3337
| current power production | kW | 1-0:2.7.0 | <MQTT_TOPIC>/power/production |
34-
| total consumption low | kWh | 1-0:1.8.1 | <MQTT_TOPIC>/power/total_consumption_low |
35-
| total consumption high | kWh | 1-0:1.8.2 | <MQTT_TOPIC>/power/total_consumption_high |
36-
| total production low | kWh | 1-0:2.8.1 | <MQTT_TOPIC>/power/total_production_low |
37-
| total production high | kWh | 1-0:2.8.2 | <MQTT_TOPIC>/power/total_production_high |
38-
| power tariff | 1 = low, 2 = high | 0-0:96.14.0 | <MQTT_TOPIC>/power/power_tariff |
38+
| total consumption tariff 1 | kWh | 1-0:1.8.1 | <MQTT_TOPIC>/power/total_consumption_tariff_1 |
39+
| total consumption tariff 2 | kWh | 1-0:1.8.2 | <MQTT_TOPIC>/power/total_consumption_tariff_2 |
40+
| total production tariff 1 | kWh | 1-0:2.8.1 | <MQTT_TOPIC>/power/total_production_tariff_1 |
41+
| total production tariff 2 | kWh | 1-0:2.8.2 | <MQTT_TOPIC>/power/total_production_tariff_2 |
42+
| power tariff | [See tariffs](#tariffs) | 0-0:96.14.0 | <MQTT_TOPIC>/power/power_tariff |
3943
| short power outages | - | 0-0:96.7.21 |<MQTT_TOPIC>/power/short_power_outages |
4044
| long power outages | - | 0-0:96.7.9 |<MQTT_TOPIC>/power/long_power_outages |
4145
| instant current phase 1 | A | 1-0:31.7.0 |<MQTT_TOPIC>/power/phase_1/current |
@@ -63,6 +67,16 @@ The code should work on DSRM v2.2 and higher, only tested on V4.2.
6367
| timestamp| - | 0-1:24.2.1| <MQTT_TOPIC>/gas/timestamp |
6468
| device id | - | 0-1:96.1.0 | <MQTT_TOPIC>/gas/device |
6569

70+
## Tariffs
71+
The meter has a power tariff property, and is used for the total consumption/production counters.<br/>
72+
The values for the day and night tariffs are different in the Netherlands compared to Belgium.
73+
| Country | tariff | value |
74+
|:---- |:---- |:---- |
75+
| NL | Night (low) | tariff_1 |
76+
| NL | Day (high) | tariff_2 |
77+
| BE | Night (low) |tariff_2 |
78+
| BE | Day (high)| tariff_1 |
79+
6680
## Settings
6781
Copy `Settings.example.h` to `Settings.h` and fill in the correct data.
6882

esp8266-dsmr.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ const Measurement measurements[] = {
3131
{"power/device_id", "0-0:96.1.1", 11, 45, Measurement::STRING},
3232
{"power/consuption", "1-0:1.7.0", 10, 16, Measurement::FLOAT},
3333
{"power/production", "1-0:2.7.0", 10, 16, Measurement::FLOAT},
34-
{"power/total_consuption_low", "1-0:1.8.1", 10, 20, Measurement::FLOAT},
35-
{"power/total_consuption_high", "1-0:1.8.2", 10, 20, Measurement::FLOAT},
36-
{"power/total_production_low", "1-0:2.8.1", 10, 20, Measurement::FLOAT},
37-
{"power/total_production_high", "1-0:2.8.2", 10, 20, Measurement::FLOAT},
34+
{"power/total_consuption_tariff_1", "1-0:1.8.1", 10, 20, Measurement::FLOAT},
35+
{"power/total_consuption_tariff_2", "1-0:1.8.2", 10, 20, Measurement::FLOAT},
36+
{"power/total_production_tariff_1", "1-0:2.8.1", 10, 20, Measurement::FLOAT},
37+
{"power/total_production_tariff_2", "1-0:2.8.2", 10, 20, Measurement::FLOAT},
3838
{"power/power_tariff", "0-0:96.14.0", 12, 16, Measurement::INT},
3939
{"power/short_power_outages", "0-0:96.7.21", 12, 17, Measurement::INT},
4040
{"power/long_power_outages", "0-0:96.7.9", 11, 16, Measurement::INT},
@@ -92,7 +92,7 @@ void setup()
9292
ArduinoOTA.setHostname(WIFI_HOSTNAME);
9393
ArduinoOTA.begin();
9494

95-
logger.info("Setup complte");
95+
logger.info("Setup complete");
9696
}
9797

9898
void loop()

0 commit comments

Comments
 (0)