Skip to content

Commit

Permalink
Merge pull request #176 from openenergymonitor/minimalmodbus_multiple…
Browse files Browse the repository at this point in the history
…_meters

Minimalmodbus multiple meters
  • Loading branch information
glynhudson authored Aug 24, 2022
2 parents b5ac15d + 1f77757 commit 3989825
Show file tree
Hide file tree
Showing 5 changed files with 254 additions and 55 deletions.
39 changes: 36 additions & 3 deletions conf/interfacer_examples/SDM120/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,48 @@ The SDM120-Modbus single phase electricity meter provides MID certified electric

**read_interval:** Interval between readings in seconds

```text
## Single SDM120 Meter
```
[[SDM120]]
Type = EmonHubMinimalModbusInterfacer
[[[init_settings]]]
device = /dev/ttyUSB0
baud = 2400
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
read_interval = 10
nodename = sdm120
# prefix = sdm_
[[[[meters]]]]
[[[[[sdm120]]]]]
address = 1
registers = 0,6,12,18,30,70,72,74,76
names = V,I,P,VA,PF,FR,EI,EE,RI
precision = 2,3,1,1,3,3,3,3,3
```

## Multiple SDM120 Meters

```
[[SDM120]]
Type = EmonHubSDM120Interfacer
Type = EmonHubMinimalModbusInterfacer
[[[init_settings]]]
device = /dev/ttyUSB0
baud = 2400
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
read_interval = 10
nodename = SDM120
nodename = sdm120
# prefix = sdm_
[[[[meters]]]]
[[[[[sdm120a]]]]]
address = 1
registers = 0,6,12,18,30,70,72,74,76
names = V,I,P,VA,PF,FR,EI,EE,RI
precision = 2,3,1,1,3,3,3,3,3
[[[[[sdm120b]]]]]
address = 2
registers = 0,6,12,18,30,70,72,74,76
names = V,I,P,VA,PF,FR,EI,EE,RI
precision = 2,3,1,1,3,3,3,3,3
```
18 changes: 16 additions & 2 deletions conf/interfacer_examples/SDM120/sdm120.emonhub.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
[[SDM120]]
Type = EmonHubSDM120Interfacer
Type = EmonHubMinimalModbusInterfacer
[[[init_settings]]]
device = /dev/ttyUSB0
baud = 2400
parity = none
datatype = float
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
read_interval = 10
nodename = SDM120
nodename = sdm120
# prefix = sdm_
[[[[meters]]]]
[[[[[sdm120a]]]]]
address = 1
registers = 0,6,12,18,30,70,72,74,76
names = V,I,P,VA,PF,FR,EI,EE,RI
precision = 2,3,1,1,3,3,3,3,3
[[[[[sdm120b]]]]]
address = 2
registers = 0,6,12,18,30,70,72,74,76
names = V,I,P,VA,PF,FR,EI,EE,RI
precision = 2,3,1,1,3,3,3,3,3
27 changes: 27 additions & 0 deletions conf/interfacer_examples/samsung-ashp/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
### SAMSUNG ASHP MIB19N Modbus

Read data from a Samsung Heat Pump or HVAC unit using the [MIM-B19N Modbus module](https://www.samsung.com/uk/support/model/MIM-B19N/). Tested on AE050RXYDEG-EU Gen6 ASHP. Should work for all Samsung HVAC units.

**read_interval:** Interval between readings in seconds

```text
[[SAMSUNG-ASHP-MIB19N]]
Type = EmonHubMinimalModbusInterfacer
[[[init_settings]]]
device = /dev/ttyUSB0
baud = 9600
parity = even
datatype = int
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
read_interval = 10
nodename = samsung-ashp
# prefix = sdm_
[[[[meters]]]]
[[[[[ashp]]]]]
address = 1
registers = 75,74,72,65,66,68,52,59,58,2,79
names = dhw_temp,dhw_target,dhw_status,return_temp,flow_temp,flow_target,heating_status,indoor_temp,indoor_target, defrost_status, away_status
scales = 0.1,0.1,1,0.1,0.1,0.1,1,0.1,0.1,1,1
precision = 2,2,1,2,2,2,1,2,2,1,1
```
19 changes: 19 additions & 0 deletions conf/interfacer_examples/samsung-ashp/samsung-ashp.emonhub.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[[SAMSUNG-ASHP-MIB19N]]
Type = EmonHubMinimalModbusInterfacer
[[[init_settings]]]
device = /dev/ttyUSB0
baud = 9600
parity = even
datatype = int
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
read_interval = 10
nodename = samsung-ashp
# prefix = sdm_
[[[[meters]]]]
[[[[[ashp]]]]]
address = 1
registers = 75,74,72,65,66,68,52,59,58,2,79
names = dhw_temp,dhw_target,dhw_status,return_temp,flow_temp,flow_target,heating_status,indoor_temp,indoor_target, defrost_status, away_status
scales = 0.1,0.1,1,0.1,0.1,0.1,1,0.1,0.1,1,1
precision = 2,2,1,2,2,2,1,2,2,1,1
Loading

0 comments on commit 3989825

Please sign in to comment.