Thanks for the clarification. So it would be more pertinent to base my json modification on the ah 2.x binding then ?
Actually I tried to code these broadcast messages:
2017-11-06 22:00:34;"01";"10";"FE";B5 16;"08";00 34 00 22 06 11 01 17;"CE";;;;;<unknown>
2017-11-06 22:00:54;"01";"10";"FE";B5 16;"03";01 90 06;"E3";;;;;<unknown>
Based on http://ebus-wiki.org/doku.php/ebus/serviceb516, for now my json looks like:
{
"id": "vrc430",
"vendor": "Vaillant",
"label": "Vaillant VRC 430(f)/470(f)",
"description": "Programming unit Vaillant VRC 430, 430f, 470 and 470f",
"commands":
[
{
"label": "Outside temperature",
"id": "controller.broadcast.temp_outside",
"command": "B5 16",
"broadcast": {
"master": [
{"type": "static", "default": "01"},
{"name":"temp_outside", "type": "data2b", "label": "Outside Temperature", "min": -50, "max": 50, "format":"%.1f°C"}
]
}
},
{
"label": "Outside temperature",
"id": "controller.broadcast.time",
"command": "B5 16",
"broadcast": {
"master": [
{"type": "static", "default": "00"},
{"name":"seconds", "type": "bcd", "label": "seconds", "min": 0, "max": 59, "format":"%.1f°C"},
{"name":"minutes", "type": "bcd", "label": "minutes", "min": 0, "max": 59, "format":"%.1f°C"},
{"name":"hours", "type": "bcd", "label": "hours", "min": 0, "max": 59, "format":"%.1f°C"},
{"name":"day", "type": "bcd", "day": "second", "min": 1, "max": 31, "format":"%.1f°C"},
{"name":"month", "type": "bcd", "month": "second", "min": 1, "max": 12, "format":"%.1f°C"},
{"name":"weekday", "type": "bcd", "weekday": "second", "min": 1, "max": 7, "format":"%.1f°C"},
{"name":"year", "type": "bcd", "label": "year", "min": 0, "max": 99, "format":"%.1f°C"}
]
}
}
]
}
But I have some issue adding it to the binding
I’ve put my test.json file in /home/openhabian folder, and used in the configuration file:
parserUrl=file:///home/openhabian/test.json
parsers=custom
But the log shows then:
2017-11-06 22:57:47.003 [ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=304, bundle=203/https://drive.google.com/uc?export=download&id=0B5Vjy5Qe0CabSUhSQm5iSjc1TFE]: Updating property general of configuration org.openhab.ebus caused a problem: org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token