Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimalmodbus multiple meters #176

Merged
merged 19 commits into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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