forked from openhab/openhab-addons
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dsmr] Handle cosem values that a have a unit or not, related to smar…
…ty meters (openhab#8383) * [dsmr] Smarty fix for decrypting different length Initialization Vector * [dsmr] Changed specific gitattributes to eol The telegram files have a checksum that includes the newlines. So it's important the specific newline endings always remain the same. The protocol uses windows line endings, therefor fixed to windows line endings. It was previously set to binary, but that makes it difficult to textual compare with git as it doesn't compare binary files. * [dsmr] Handle specific cosem values that can either have a unit or not It appears some Luxembourg meters have a unit in the cosem value, while other meters don't report this value. This changes makes it possible to handle both cases. Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
- Loading branch information
1 parent
f6903cb
commit 052ab3d
Showing
8 changed files
with
67 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
....openhab.binding.dsmr/src/test/resources/org/openhab/binding/dsmr/internal/.gitattributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Always keep the CRLF line endings because the CRC depends on it. | ||
*.telegram binary | ||
*.telegram text eol=crlf |
25 changes: 25 additions & 0 deletions
25
...ding.dsmr/src/test/resources/org/openhab/binding/dsmr/internal/smarty_with_units.telegram
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/Lux5\253663629_D | ||
|
||
1-3:0.2.8(42) | ||
0-0:1.0.0(180130102122W) | ||
0-0:42.0.0(53414731303330373030313134303034) | ||
1-0:1.8.0(012345.000*kWh) | ||
1-0:2.8.0(000000.123*kWh) | ||
1-0:3.8.0(000012.345*kvarh) | ||
1-0:4.8.0(001234.567*kvarh) | ||
1-0:1.7.0(01.234*kW) | ||
1-0:2.7.0(00.000*kW) | ||
1-0:3.7.0(00.000*kvar) | ||
1-0:4.7.0(00.000*kvar) | ||
0-0:17.0.0(12.300*kVA) | ||
0-0:96.3.10(1) | ||
0-0:96.13.0() | ||
0-0:96.13.2() | ||
0-0:96.13.3() | ||
0-0:96.13.4() | ||
0-0:96.13.5() | ||
0-1:24.1.0(003) | ||
0-1:96.1.0(1234567890ABCDEF1234567890ABCD) | ||
0-1:24.2.1(200606201530S)(01234.567*m3) | ||
0-1:24.4.0(0) | ||
!3076 |