{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/openhab2-addons/issues/812","repository_url":"https://api.github.com/repos/openhab/openhab2-addons","labels_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/812/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/812/comments","events_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/812/events","html_url":"https://github.com/openhab/openhab2-addons/pull/812","id":149731870,"number":812,"title":"Zwave: add support for the Meter Tbl Monitor Command Class","user":{"login":"jongj","id":17964903,"avatar_url":"https://avatars.githubusercontent.com/u/17964903?v=3","gravatar_id":"","url":"https://api.github.com/users/jongj","html_url":"https://github.com/jongj","followers_url":"https://api.github.com/users/jongj/followers","following_url":"https://api.github.com/users/jongj/following{/other_user}","gists_url":"https://api.github.com/users/jongj/gists{/gist_id}","starred_url":"https://api.github.com/users/jongj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jongj/subscriptions","organizations_url":"https://api.github.com/users/jongj/orgs","repos_url":"https://api.github.com/users/jongj/repos","events_url":"https://api.github.com/users/jongj/events{/privacy}","received_events_url":"https://api.github.com/users/jongj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openhab/openhab2-addons/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/openhab/openhab2-addons/labels/z-wave","name":"z-wave","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"cdjackson","id":1041475,"avatar_url":"https://avatars.githubusercontent.com/u/1041475?v=3","gravatar_id":"","url":"https://api.github.com/users/cdjackson","html_url":"https://github.com/cdjackson","followers_url":"https://api.github.com/users/cdjackson/followers","following_url":"https://api.github.com/users/cdjackson/following{/other_user}","gists_url":"https://api.github.com/users/cdjackson/gists{/gist_id}","starred_url":"https://api.github.com/users/cdjackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdjackson/subscriptions","organizations_url":"https://api.github.com/users/cdjackson/orgs","repos_url":"https://api.github.com/users/cdjackson/repos","events_url":"https://api.github.com/users/cdjackson/events{/privacy}","received_events_url":"https://api.github.com/users/cdjackson/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-04-20T10:41:09Z","updated_at":"2016-04-20T19:35:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/812","html_url":"https://github.com/openhab/openhab2-addons/pull/812","diff_url":"https://github.com/openhab/openhab2-addons/pull/812.diff","patch_url":"https://github.com/openhab/openhab2-addons/pull/812.patch"},"body":"Add support for the METER_TBL_CURRENT_DATA_REPORT message.\r\nIn this message the current meter value is reported.\r\nThe command class also supports historical data, this is not\r\nsupported (yet).\r\n\r\n\r\nSigned-off-by: Jorg de Jong <jorg@dejong.info> (github: jongj)"},"comment":{"url":"https://api.github.com/repos/openhab/openhab2-addons/issues/comments/212572519","html_url":"https://github.com/openhab/openhab2-addons/pull/812#issuecomment-212572519","issue_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/812","id":212572519,"user":{"login":"cdjackson","id":1041475,"avatar_url":"https://avatars.githubusercontent.com/u/1041475?v=3","gravatar_id":"","url":"https://api.github.com/users/cdjackson","html_url":"https://github.com/cdjackson","followers_url":"https://api.github.com/users/cdjackson/followers","following_url":"https://api.github.com/users/cdjackson/following{/other_user}","gists_url":"https://api.github.com/users/cdjackson/gists{/gist_id}","starred_url":"https://api.github.com/users/cdjackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdjackson/subscriptions","organizations_url":"https://api.github.com/users/cdjackson/orgs","repos_url":"https://api.github.com/users/cdjackson/repos","events_url":"https://api.github.com/users/cdjackson/events{/privacy}","received_events_url":"https://api.github.com/users/cdjackson/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T19:35:32Z","updated_at":"2016-04-20T19:35:32Z","body":"I’d recommend trying to produce a test that doesn’t use the encapsulation classes if possible - thereby just testing this class and not the other classes. If you really must use multi instance, then there’s a separate package for that -:\npackage org.openhab.binding.zwave.test.internal.protocol.commandclass.multiinstance;\n\nThis extends a class that takes care of handling the multi instance stuff, but I’ve not done anything for the CRC encap yet…\n\nReally though, I’d recommend to only test a single command class at a time so that we know where any errors are when doing regression.\n\nThanks."}}