make all objects able to print their own values

This commit is contained in:
Hans Erik van Elburg
2020-05-12 23:45:16 +02:00
parent 9610fbc3c1
commit a0ce89054a
5 changed files with 51 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
from dsmr_parser.parsers import ValueParser, MBusParser
from dsmr_parser.value_types import timestamp
FAILURE_EVENT = r'0-0\:96\.7\.19'
V4 = {
'objects': {
FAILURE_EVENT: MBusParser(
ValueParser(timestamp),
ValueParser(int)
)
}
}