{"action":"created","issue":{"url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/775","repository_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt","labels_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/775/labels{/name}","comments_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/775/comments","events_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/775/events","html_url":"https://github.com/Koenkk/zigbee2mqtt/issues/775","id":394817237,"node_id":"MDU6SXNzdWUzOTQ4MTcyMzc=","number":775,"title":"Testing: device availability","user":{"login":"Koenkk","id":2892853,"node_id":"MDQ6VXNlcjI4OTI4NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/2892853?v=4","gravatar_id":"","url":"https://api.github.com/users/Koenkk","html_url":"https://github.com/Koenkk","followers_url":"https://api.github.com/users/Koenkk/followers","following_url":"https://api.github.com/users/Koenkk/following{/other_user}","gists_url":"https://api.github.com/users/Koenkk/gists{/gist_id}","starred_url":"https://api.github.com/users/Koenkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Koenkk/subscriptions","organizations_url":"https://api.github.com/users/Koenkk/orgs","repos_url":"https://api.github.com/users/Koenkk/repos","events_url":"https://api.github.com/users/Koenkk/events{/privacy}","received_events_url":"https://api.github.com/users/Koenkk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-12-29T18:56:19Z","updated_at":"2019-01-01T16:53:02Z","closed_at":null,"author_association":"OWNER","body":"This allows zigbee2mqtt to mark individual devices as offline. E.g. when you switch a bulb off using the regular switch. \r\n\r\nThe device availability is published on `zigbee2mqtt/[FRIENLDY_NAME]/availability` with possible payloads being `offline` and `online`.\r\n\r\nHome Assistant integration has been updated, devices will be shown as `unavailable` when they are offline.\r\n\r\nDevice availability is only checked for AC powered routers.\r\n\r\n**Todos**\r\n- [ ] Check device availability for new paired devices (without having to restart zigbee2mqtt)\r\n- [ ] Test, test and test\r\n- [ ] Update documentation\r\n\r\n**How to test**\r\nUpdate zigbee2mqtt to the latest dev branch (edge for hassio users). Stop zigbee2mqtt, add to zigbee2mqtt `configuration.yaml`\r\n\r\n```yaml\r\nexperimental:\r\n  availability_timeout: 60 # Availability check interval\r\n```\r\n\r\nstart zigbee2mqtt and restart Home Assistant.\r\n\r\n\r\nMost of the credits of this feature go to @ugrug "},"comment":{"url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/comments/450742948","html_url":"https://github.com/Koenkk/zigbee2mqtt/issues/775#issuecomment-450742948","issue_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/775","id":450742948,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDc0Mjk0OA==","user":{"login":"Koenkk","id":2892853,"node_id":"MDQ6VXNlcjI4OTI4NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/2892853?v=4","gravatar_id":"","url":"https://api.github.com/users/Koenkk","html_url":"https://github.com/Koenkk","followers_url":"https://api.github.com/users/Koenkk/followers","following_url":"https://api.github.com/users/Koenkk/following{/other_user}","gists_url":"https://api.github.com/users/Koenkk/gists{/gist_id}","starred_url":"https://api.github.com/users/Koenkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Koenkk/subscriptions","organizations_url":"https://api.github.com/users/Koenkk/orgs","repos_url":"https://api.github.com/users/Koenkk/repos","events_url":"https://api.github.com/users/Koenkk/events{/privacy}","received_events_url":"https://api.github.com/users/Koenkk/received_events","type":"User","site_admin":false},"created_at":"2019-01-01T16:53:02Z","updated_at":"2019-01-01T16:53:02Z","author_association":"OWNER","body":"Happy 2019! Somehow the functionallity is not enabled yet (because it still publishes zigbee2mqtt/bridge/state as availabillity topic). Can you post the experimental part of your configuration.yaml again?"}}
{"actor":{"display_login":"Koenkk"}}