payload: {"action":"created","issue":{"url":"https://api.github.com/repos/stampzilla/stampzilla-go/issues/168","repository_url":"https://api.github.com/repos/stampzilla/stampzilla-go","labels_url":"https://api.github.com/repos/stampzilla/stampzilla-go/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/stampzilla/stampzilla-go/issues/168/comments","events_url":"https://api.github.com/repos/stampzilla/stampzilla-go/issues/168/events","html_url":"https://github.com/stampzilla/stampzilla-go/issues/168","id":416434003,"node_id":"MDU6SXNzdWU0MTY0MzQwMDM=","number":168,"title":"proposal: add lastupdated field to Device models/devices/device.go","user":{"login":"jonaz","id":1146389,"node_id":"MDQ6VXNlcjExNDYzODk=","avatar_url":"https://avatars3.githubusercontent.com/u/1146389?v=4","gravatar_id":"","url":"https://api.github.com/users/jonaz","html_url":"https://github.com/jonaz","followers_url":"https://api.github.com/users/jonaz/followers","following_url":"https://api.github.com/users/jonaz/following{/other_user}","gists_url":"https://api.github.com/users/jonaz/gists{/gist_id}","starred_url":"https://api.github.com/users/jonaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonaz/subscriptions","organizations_url":"https://api.github.com/users/jonaz/orgs","repos_url":"https://api.github.com/users/jonaz/repos","events_url":"https://api.github.com/users/jonaz/events{/privacy}","received_events_url":"https://api.github.com/users/jonaz/received_events","type":"User","site_admin":false},"labels":[{"id":74355263,"node_id":"MDU6TGFiZWw3NDM1NTI2Mw==","url":"https://api.github.com/repos/stampzilla/stampzilla-go/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-03-02T19:47:03Z","updated_at":"2019-04-06T19:55:29Z","closed_at":null,"author_association":"MEMBER","body":"What do you think @stamp ? Currently some devices like xioami zigbee devices have it in their state. Perhaps would be nice to always put it in the device at the time the server gets the update-devices message. That way the server could also have a timeout period when it sets the devices as Online=false. \r\n\r\nedit: the timeout thing might only be applicable to sensors. "},"comment":{"url":"https://api.github.com/repos/stampzilla/stampzilla-go/issues/comments/480532980","html_url":"https://github.com/stampzilla/stampzilla-go/issues/168#issuecomment-480532980","issue_url":"https://api.github.com/repos/stampzilla/stampzilla-go/issues/168","id":480532980,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MDUzMjk4MA==","user":{"login":"stamp","id":1146381,"node_id":"MDQ6VXNlcjExNDYzODE=","avatar_url":"https://avatars2.githubusercontent.com/u/1146381?v=4","gravatar_id":"","url":"https://api.github.com/users/stamp","html_url":"https://github.com/stamp","followers_url":"https://api.github.com/users/stamp/followers","following_url":"https://api.github.com/users/stamp/following{/other_user}","gists_url":"https://api.github.com/users/stamp/gists{/gist_id}","starred_url":"https://api.github.com/users/stamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stamp/subscriptions","organizations_url":"https://api.github.com/users/stamp/orgs","repos_url":"https://api.github.com/users/stamp/repos","events_url":"https://api.github.com/users/stamp/events{/privacy}","received_events_url":"https://api.github.com/users/stamp/received_events","type":"User","site_admin":false},"created_at":"2019-04-06T19:55:29Z","updated_at":"2019-04-06T19:55:29Z","author_association":"MEMBER","body":"I'm thinking a solution that works something like this\r\n- [ ] Add a `lastSeen`\r\n- [ ] Add a label or flag that identifies a device as battery operated\r\n- [ ] Automatically generate and maintain `notification rules` based on `lastSeen` for each battery operated sensor"}}
other: {"actor":{"display_login":"stamp"}}