{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/openhab/issues/4846","repository_url":"https://api.github.com/repos/openhab/openhab","labels_url":"https://api.github.com/repos/openhab/openhab/issues/4846/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab/issues/4846/comments","events_url":"https://api.github.com/repos/openhab/openhab/issues/4846/events","html_url":"https://github.com/openhab/openhab/issues/4846","id":192724297,"number":4846,"title":"[UPB] Feature request -- receive status updates and scene changes from UPB devices.","user":{"login":"bracklanna","id":16140600,"avatar_url":"https://avatars.githubusercontent.com/u/16140600?v=3","gravatar_id":"","url":"https://api.github.com/users/bracklanna","html_url":"https://github.com/bracklanna","followers_url":"https://api.github.com/users/bracklanna/followers","following_url":"https://api.github.com/users/bracklanna/following{/other_user}","gists_url":"https://api.github.com/users/bracklanna/gists{/gist_id}","starred_url":"https://api.github.com/users/bracklanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bracklanna/subscriptions","organizations_url":"https://api.github.com/users/bracklanna/orgs","repos_url":"https://api.github.com/users/bracklanna/repos","events_url":"https://api.github.com/users/bracklanna/events{/privacy}","received_events_url":"https://api.github.com/users/bracklanna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-12-01T00:45:37Z","updated_at":"2016-12-01T07:05:23Z","closed_at":null,"body":"Request UPB binding enhancement to listen to status updates and scene (link) activation requests sent out by UPB devices, and then pass these updates into OpenHAB (i.e. as Events, or state changes.) \r\n\r\n## Current Behavior\r\nAt present, the UPB binding will SEND commands out to devices, and will receive ACK's (acknowedgments) from devices upon those specific commands being executed. But the UPB binding does not monitor status changes initiated at the UPB devices. (e.g. if someone presses a UPB light switch, even though the switch sends out a UPB status update on the UPB wire bus confirming that the light has changed from ON, to OFF,  the OpenHAB UPB binding does not appear to register this update or do anything with it.)\r\n\r\nAlso, some UPB devices (e.g. scene controllers) can send out Scene activation commands. These also are ignored by the UPB binding.\r\n\r\n\r\n## Desired Behavior\r\nIf I physically activate a UPB wall switch ON, or OFF, OpenHAB should be notified of an Event or state change so that it can take action according to Rules.\r\n\r\nIf I physically activate a UPB Scene Control button, OpenHAB should be notified of the Scene (aka \"link\") activation status so that, if desired, it can take actions according to Rules.\r\n\r\n## Context\r\nI have a UPB wall ON/OFF/Dimmer switch (model US11-40) in the bathroom. When someone enters the bathroom and turns on the light, I would like OpenHAB to know that, so that it can take the correct action according to ambient temperature. (In this case, either turn on the Vent only (warm weather) or turn on the Heater only (in winter), followed by Vent 5 minutes later.)\r\n\r\nAnother example: I have a UPB scene-control button set to dim all house lights to 15% for evening. When that UPB scene is activated (from the physical UPB device) I would like OpenHAB to be aware of the UPB scene change so that it can turn down the background music to evening volume levels.\r\n\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Version used: OpenHAB 1.8.3, UPB Binding 1.9.0\r\n* java version \"1.8.0_91\"\r\n* Ubuntu 16.04 LTS (i386) with an RS232 UPB PIM connected through a USB-->Serial adapter\r\n"},"comment":{"url":"https://api.github.com/repos/openhab/openhab/issues/comments/264094736","html_url":"https://github.com/openhab/openhab/issues/4846#issuecomment-264094736","issue_url":"https://api.github.com/repos/openhab/openhab/issues/4846","id":264094736,"user":{"login":"bracklanna","id":16140600,"avatar_url":"https://avatars.githubusercontent.com/u/16140600?v=3","gravatar_id":"","url":"https://api.github.com/users/bracklanna","html_url":"https://github.com/bracklanna","followers_url":"https://api.github.com/users/bracklanna/followers","following_url":"https://api.github.com/users/bracklanna/following{/other_user}","gists_url":"https://api.github.com/users/bracklanna/gists{/gist_id}","starred_url":"https://api.github.com/users/bracklanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bracklanna/subscriptions","organizations_url":"https://api.github.com/users/bracklanna/orgs","repos_url":"https://api.github.com/users/bracklanna/repos","events_url":"https://api.github.com/users/bracklanna/events{/privacy}","received_events_url":"https://api.github.com/users/bracklanna/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T07:05:23Z","updated_at":"2016-12-01T07:05:23Z","body":"I don't expect any further reply unless something dawns on you, but looking through the logs above, indeed the UPBReader thread *does* successfully receive ACK messages to some commands. It seems this happens only right after killing & restarting OpenHAB. I wonder if I'm hitting some obscure bug in the UPB binding that is choking on a particular command or sequence of commands. Something like the \"can't use network IDs larger than 127\" bug mentioned in other comments -- non-obvious, but significant."}}
{"actor":{"display_login":"bracklanna"}}