{"action":"created","issue":{"url":"https://api.github.com/repos/QuailAutomation/openhab2-addons/issues/112","repository_url":"https://api.github.com/repos/QuailAutomation/openhab2-addons","labels_url":"https://api.github.com/repos/QuailAutomation/openhab2-addons/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/QuailAutomation/openhab2-addons/issues/112/comments","events_url":"https://api.github.com/repos/QuailAutomation/openhab2-addons/issues/112/events","html_url":"https://github.com/QuailAutomation/openhab2-addons/issues/112","id":275932220,"number":112,"title":"Capture User Actions from Omni log file","user":{"login":"swamiller","id":17254439,"avatar_url":"https://avatars0.githubusercontent.com/u/17254439?v=4","gravatar_id":"","url":"https://api.github.com/users/swamiller","html_url":"https://github.com/swamiller","followers_url":"https://api.github.com/users/swamiller/followers","following_url":"https://api.github.com/users/swamiller/following{/other_user}","gists_url":"https://api.github.com/users/swamiller/gists{/gist_id}","starred_url":"https://api.github.com/users/swamiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swamiller/subscriptions","organizations_url":"https://api.github.com/users/swamiller/orgs","repos_url":"https://api.github.com/users/swamiller/repos","events_url":"https://api.github.com/users/swamiller/events{/privacy}","received_events_url":"https://api.github.com/users/swamiller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-11-22T03:18:41Z","updated_at":"2017-12-15T18:01:48Z","closed_at":null,"author_association":"NONE","body":"I am trying to pass usernames to a notification app (Pushover) during alarm mode changes (arm away, disarm, arm night, etc.).  I have a map file with code to name translations. One problem I have is the omnilink binding doesn't seem to capture codes entered at a console.  I am able to pass user codes within OH (programmed from a rule and human readable) and map the code to the user. The problem with this method is the binding is sending two responses, one with the code sent and a second \"UNDEF\" user (state). \r\n\r\n**Test Rule:**\r\nrule \"Pushover Notification Alarm Set\"\r\nwhen\r\n\tItem AlarmMode changed\r\nthen\r\n       val vAlarmMode = transform(\"MAP\",\"area-modes.map\",(AlarmMode.state).toString)\r\n       val vWho = transform(\"MAP\",\"usercode.map\", AlarmModeDisarm.state.toString)\r\n\tval message=\"Alarm set to: \" + vAlarmMode + \" by \" + vWho\r\n\tpushover(message)\r\n\tlogInfo(\"Alarm Message\",AlarmModeDisarm.toString)\r\nend\r\n\r\n**Output from OH Log:**\r\n2017-11-22 01:53:45.181 [INFO ] [.smarthome.model.script.Item Trigger] - Steve\r\n2017-11-22 01:53:45.617 [INFO ] [.smarthome.model.script.Item Trigger] - Unknown\r\n\r\n**Event log from PC Access:**\r\n5\t11/21 7:53 PM\tSteve DISARM House Area\r\n6\t11/21 7:52 PM\tSteve ARM House Area DAY\r\n\r\nThe Event logs from the Omni accurately show who sent an action regardless if sent from a rule or manually entered at the console.\r\n\r\nIs it possible to read the omni event log and capture usable data to trigger rules?  This would be advantageous from a security standpoint because user codes would not need to be made visible within OH because the translation from code to username would happen within the omni panel. \r\n\r\nIf not, is there an intended way to handle capturing user codes used for alarm actions?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/QuailAutomation/openhab2-addons/issues/comments/352072061","html_url":"https://github.com/QuailAutomation/openhab2-addons/issues/112#issuecomment-352072061","issue_url":"https://api.github.com/repos/QuailAutomation/openhab2-addons/issues/112","id":352072061,"user":{"login":"swamiller","id":17254439,"avatar_url":"https://avatars0.githubusercontent.com/u/17254439?v=4","gravatar_id":"","url":"https://api.github.com/users/swamiller","html_url":"https://github.com/swamiller","followers_url":"https://api.github.com/users/swamiller/followers","following_url":"https://api.github.com/users/swamiller/following{/other_user}","gists_url":"https://api.github.com/users/swamiller/gists{/gist_id}","starred_url":"https://api.github.com/users/swamiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swamiller/subscriptions","organizations_url":"https://api.github.com/users/swamiller/orgs","repos_url":"https://api.github.com/users/swamiller/repos","events_url":"https://api.github.com/users/swamiller/events{/privacy}","received_events_url":"https://api.github.com/users/swamiller/received_events","type":"User","site_admin":false},"created_at":"2017-12-15T18:01:48Z","updated_at":"2017-12-15T18:01:48Z","author_association":"NONE","body":"Ok, I get it...nothing is simple with HAI!  Thank you for this enhancement!  I like this path much better than exposing user codes in OH.  "}}
{"actor":{"display_login":"swamiller"}}