Skip to content

Commit

Permalink
Fixed scaling A14, A23, R21 and R34
Browse files Browse the repository at this point in the history
  • Loading branch information
toreamun committed Jan 18, 2022
1 parent 0aa6d10 commit 40563ee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions amshan/kamstrup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,23 @@
LlcPdu: construct.Struct = cosem.get_llc_pdu_struct(NotificationBody)

_field_scaling_standard = {
"1.1.31.7.0.255": -2,
"1.1.51.7.0.255": -2,
"1.1.71.7.0.255": -2,
"1.1.31.7.0.255": -2, # IL1
"1.1.51.7.0.255": -2, # IL2
"1.1.71.7.0.255": -2, # IL3
"1.1.1.8.0.255": 1, # A14
"1.1.2.8.0.255": 1, # A23
"1.1.3.8.0.255": 1, # R12
"1.1.4.8.0.255": 1, # R34
}

_field_scaling_ct_meter = {
"1.1.31.7.0.255": -3,
"1.1.51.7.0.255": -3,
"1.1.71.7.0.255": -3,
"1.1.31.7.0.255": -3, # IL1
"1.1.51.7.0.255": -3, # IL2
"1.1.71.7.0.255": -3, # IL3
"1.1.1.8.0.255": 1, # A14
"1.1.2.8.0.255": 1, # A23
"1.1.3.8.0.255": 1, # R12
"1.1.4.8.0.255": 1, # R34
}


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="amshan",
version="1.0.1",
version="1.0.2",
author="Tore Amundsen",
author_email="tore@amundsen.org",
description="Decode MBUS (Meter Bus) data with special support for norwegian AMS-smart meters (HAN port)",
Expand Down

0 comments on commit 40563ee

Please sign in to comment.