{"action":"created","issue":{"url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/155","repository_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt","labels_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/155/comments","events_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/155/events","html_url":"https://github.com/Koenkk/zigbee2mqtt/issues/155","id":336277993,"node_id":"MDU6SXNzdWUzMzYyNzc5OTM=","number":155,"title":"Unable to control  Xiaomi Aqara double key wired wall switch(QBKG03LM) after weeks of running","user":{"login":"x01673","id":3390079,"node_id":"MDQ6VXNlcjMzOTAwNzk=","avatar_url":"https://avatars3.githubusercontent.com/u/3390079?v=4","gravatar_id":"","url":"https://api.github.com/users/x01673","html_url":"https://github.com/x01673","followers_url":"https://api.github.com/users/x01673/followers","following_url":"https://api.github.com/users/x01673/following{/other_user}","gists_url":"https://api.github.com/users/x01673/gists{/gist_id}","starred_url":"https://api.github.com/users/x01673/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x01673/subscriptions","organizations_url":"https://api.github.com/users/x01673/orgs","repos_url":"https://api.github.com/users/x01673/repos","events_url":"https://api.github.com/users/x01673/events{/privacy}","received_events_url":"https://api.github.com/users/x01673/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-27T15:25:53Z","updated_at":"2018-06-27T15:43:57Z","closed_at":null,"author_association":"NONE","body":" I have paired wall switch to zigbee2mqtt successfully and it worked perfect. \r\n\r\nBut recently , I was unable to control the switch in Home Assistant, and  the physical actions no longer recorded in the log. \r\n\r\nI don't remember when the first time this issue happened, but this is the third time I have encountered it. (last time was one week ago)\r\nthe only solution is to re-join it to zigbee2mqtt to get it work.\r\n\r\nhere is the log I find: \r\n\r\n2018-06-27T15:01:39.226Z - debug: Using zigbee-shepherd with settings: '{\"net\":{\"panId\":6754,\"channelList\":[11]},\"dbPath\":\"/share/zigbee2mqtt/database.db\",\"sp\":{\"baudrate\":115200,\"rtscts\":true}}'\r\n2018-06-27T15:01:39.864Z - info: Starting zigbee2mqtt version 0.0.0 (commit #6985ee1)\r\n2018-06-27T15:01:39.875Z - info: Starting zigbee-shepherd\r\n2018-06-27T15:01:41.609Z - info: zigbee-shepherd started\r\n2018-06-27T15:01:41.678Z - info: Currently 8 devices are joined:\r\n2018-06-27T15:01:41.685Z - info: 0x00158d00022bcc7f (0x00158d00022bcc7f): WXKG01LM - Xiaomi MiJia wireless switch (EndDevice)\r\n2018-06-27T15:01:41.690Z - info: 0x00158d0002310c34 (0x00158d0002310c34): MFKZQ01LM - Xiaomi Mi smart home cube (EndDevice)\r\n2018-06-27T15:01:41.693Z - info: 0x00158d0001b947c1 (0x00158d0001b947c1): WXKG12LM - Xiaomi Aqara wireless switch (with gyroscope) (EndDevice)\r\n2018-06-27T15:01:41.696Z - info: 0x00158d00022c9baa (0x00158d00022c9baa): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)\r\n2018-06-27T15:01:41.699Z - info: 0x00158d00022cd075 (0x00158d00022cd075): MCCGQ01LM - Xiaomi MiJia door & window contact sensor (EndDevice)\r\n2018-06-27T15:01:41.702Z - info: 0x00158d00022345c6 (0x00158d00022345c6): RTCGQ01LM - Xiaomi MiJia human body movement sensor (EndDevice)\r\n2018-06-27T15:01:41.704Z - info: 0x00158d0002326b3c (0x00158d0002326b3c): ZNCZ02LM - Xiaomi Mi power plug ZigBee (Router)\r\n2018-06-27T15:01:41.707Z - info: 0x00158d00023a990f (0x00158d00023a990f): QBKG03LM - Xiaomi Aqara double key wired wall switch (Router)\r\n2018-06-27T15:01:41.710Z - warn: `permit_join` set to  `true` in configuration.yaml.\r\n2018-06-27T15:01:41.713Z - warn: Allowing new devices to join.\r\n2018-06-27T15:01:41.715Z - warn: Set `permit_join` to `false` once you joined all devices.\r\n2018-06-27T15:01:41.719Z - info: Zigbee: allowing new devices to join.\r\n2018-06-27T15:01:41.730Z - info: Connecting to MQTT server at mqtt://homeassistant:1883\r\n2018-06-27T15:01:42.744Z - info: zigbee-shepherd ready\r\n2018-06-27T15:01:42.830Z - info: Connected to MQTT server\r\n2018-06-27T15:01:42.832Z - info: MQTT publish, topic: 'zigbee2mqtt/bridge/state', payload: 'online'\r\n2018-06-27T15:01:42.855Z - info: MQTT publish, topic: 'homeassistant/sensor/0x00158d00022bcc7f/click/config', payload: '{\"icon\":\"mdi:toggle-switch\",\"value_template\":\"{{ value_json.click }}\",\"json_attributes\":[\"battery\",\"voltage\",\"action\",\"duration\"],\"state_topic\":\"zigbee2mqtt/0x00158d00022bcc7f\",\"availability_topic\":\"zigbee2mqtt/bridge/state\",\"name\":\"0x00158d00022bcc7f\",\"unique_id\":\"0x00158d00022bcc7f_click_zigbee2mqtt\"}'\r\n2018-06-27T15:01:42.858Z - info: MQTT publish, topic: 'homeassistant/sensor/0x00158d0002310c34/action/config', payload: '{\"icon\":\"mdi:cube\",\"value_template\":\"{{ value_json.action }}\",\"json_attributes\":[\"battery\",\"voltage\",\"angle\",\"side\",\"from_side\",\"to_side\"],\"state_topic\":\"zigbee2mqtt/0x00158d0002310c34\",\"availability_topic\":\"zigbee2mqtt/bridge/state\",\"name\":\"0x00158d0002310c34\",\"unique_id\":\"0x00158d0002310c34_action_zigbee2mqtt\"}'\r\n2018-06-27T15:01:42.859Z - info: MQTT publish, topic: 'homeassistant/sensor/0x00158d0001b947c1/click/config', payload: '{\"icon\":\"mdi:toggle-switch\",\"value_template\":\"{{ value_json.click }}\",\"json_attributes\":[\"battery\",\"voltage\",\"action\",\"duration\"],\"state_topic\":\"zigbee2mqtt/0x00158d0001b947c1\",\"availability_topic\":\"zigbee2mqtt/bridge/state\",\"name\":\"0x00158d0001b947c1\",\"unique_id\":\"0x00158d0001b947c1_click_zigbee2mqtt\"}'\r\n2018-06-27T15:01:42.861Z - info: MQTT publish, topic: 'homeassistant/sensor/0x00158d00022c9baa/temperature/config', payload: '{\"unit_of_measurement\":\"°C\",\"icon\":\"mdi:temperature-celsius\",\"value_template\":\"{{ value_json.temperature }}\",\"json_attributes\":[\"battery\",\"voltage\"],\"state_topic\":\"zigbee2mqtt/0x00158d00022c9baa\",\"availability_topic\":\"zigbee2mqtt/bridge/state\",\"name\":\"0x00158d00022c9baa_temperature\",\"unique_id\":\"0x00158d00022c9baa_temperature_zigbee2mqtt\"}'\r\n2018-06-27T15:01:42.863Z - info: MQTT publish, topic: 'homeassistant/sensor/0x00158d00022c9baa/humidity/config', payload: '{\"unit_of_measurement\":\"%\",\"icon\":\"mdi:water-percent\",\"value_template\":\"{{ value_json.humidity }}\",\"json_attributes\":[\"battery\",\"voltage\"],\"state_topic\":\"zigbee2mqtt/0x00158d00022c9baa\",\"availability_topic\":\"zigbee2mqtt/bridge/state\",\"name\":\"0x00158d00022c9baa_humidity\",\"unique_id\":\"0x00158d00022c9baa_humidity_zigbee2mqtt\"}'\r\n2018-06-27T15:01:42.864Z - info: MQTT publish, topic: 'homeassistant/sensor/0x00158d00022c9baa/pressure/config', payload: '{\"unit_of_measurement\":\"Pa\",\"icon\":\"mdi:speedometer\",\"value_template\":\"{{ value_json.pressure }}\",\"json_attributes\":[\"battery\",\"voltage\"],\"state_topic\":\"zigbee2mqtt/0x00158d00022c9baa\",\"availability_topic\":\"zigbee2mqtt/bridge/state\",\"name\":\"0x00158d00022c9baa_pressure\",\"unique_id\":\"0x00158d00022c9baa_pressure_zigbee2mqtt\"}'\r\n2018-06-27T15:01:42.866Z - info: MQTT publish, topic: 'homeassistant/binary_sensor/0x00158d00022cd075/contact/config', payload: '{\"payload_on\":false,\"payload_off\":true,\"value_template\":\"{{ value_json.contact }}\",\"device_class\":\"door\",\"json_attributes\":[\"battery\",\"voltage\"],\"state_topic\":\"zigbee2mqtt/0x00158d00022cd075\",\"availability_topic\":\"zigbee2mqtt/bridge/state\",\"name\":\"0x00158d00022cd075\",\"unique_id\":\"0x00158d00022cd075_contact_zigbee2mqtt\"}'\r\n2018-06-27T15:01:42.867Z - info: MQTT publish, topic: 'homeassistant/binary_sensor/0x00158d00022345c6/occupancy/config', payload: '{\"payload_on\":true,\"payload_off\":false,\"value_template\":\"{{ value_json.occupancy }}\",\"device_class\":\"motion\",\"json_attributes\":[\"battery\",\"voltage\"],\"state_topic\":\"zigbee2mqtt/0x00158d00022345c6\",\"availability_topic\":\"zigbee2mqtt/bridge/state\",\"name\":\"0x00158d00022345c6\",\"unique_id\":\"0x00158d00022345c6_occupancy_zigbee2mqtt\"}'\r\n2018-06-27T15:01:42.869Z - info: MQTT publish, topic: 'homeassistant/switch/0x00158d0002326b3c/switch/config', payload: '{\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"value_template\":\"{{ value_json.state }}\",\"command_topic\":\"zigbee2mqtt/0x00158d0002326b3c/set\",\"state_topic\":\"zigbee2mqtt/0x00158d0002326b3c\",\"availability_topic\":\"zigbee2mqtt/bridge/state\",\"name\":\"0x00158d0002326b3c_switch\",\"unique_id\":\"0x00158d0002326b3c_switch_zigbee2mqtt\"}'\r\n2018-06-27T15:01:42.871Z - info: MQTT publish, topic: 'homeassistant/sensor/0x00158d0002326b3c/power/config', payload: '{\"unit_of_measurement\":\"Watt\",\"icon\":\"mdi:flash\",\"value_template\":\"{{ value_json.power }}\",\"json_attributes\":[\"voltage\",\"temperature\",\"consumption\"],\"state_topic\":\"zigbee2mqtt/0x00158d0002326b3c\",\"availability_topic\":\"zigbee2mqtt/bridge/state\",\"name\":\"0x00158d0002326b3c_power\",\"unique_id\":\"0x00158d0002326b3c_power_zigbee2mqtt\"}'\r\n2018-06-27T15:01:42.872Z - info: MQTT publish, topic: 'homeassistant/switch/0x00158d00023a990f/switch_left/config', payload: '{\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"value_template\":\"{{ value_json.state_left }}\",\"command_topic\":\"zigbee2mqtt/0x00158d00023a990f/left/set\",\"command_topic_prefix\":\"left\",\"state_topic\":\"zigbee2mqtt/0x00158d00023a990f\",\"availability_topic\":\"zigbee2mqtt/bridge/state\",\"name\":\"0x00158d00023a990f_switch_left\",\"unique_id\":\"0x00158d00023a990f_switch_left_zigbee2mqtt\"}'\r\n2018-06-27T15:01:42.874Z - info: MQTT publish, topic: 'homeassistant/switch/0x00158d00023a990f/switch_right/config', payload: '{\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"value_template\":\"{{ value_json.state_right }}\",\"command_topic\":\"zigbee2mqtt/0x00158d00023a990f/right/set\",\"command_topic_prefix\":\"right\",\"state_topic\":\"zigbee2mqtt/0x00158d00023a990f\",\"availability_topic\":\"zigbee2mqtt/bridge/state\",\"name\":\"0x00158d00023a990f_switch_right\",\"unique_id\":\"0x00158d00023a990f_switch_right_zigbee2mqtt\"}'\r\n2018-06-27T15:02:09.519Z - debug: Recieved mqtt message on topic 'zigbee2mqtt/0x00158d00023a990f/left/set' with data 'ON' \r\n2018-06-27T15:02:09.571Z - info: Zigbee publish to '0x00158d00023a990f', genOnOff - on - {} - 2  **this is the click event I did in Home Assistant** \r\n2018-06-27T15:02:12.959Z - debug: Recieved mqtt message on topic 'zigbee2mqtt/0x00158d00023a990f/right/set' with data 'ON'\r\n2018-06-27T15:02:13.005Z - info: Zigbee publish to '0x00158d00023a990f', genOnOff - on - {} - 3\r\n2018-06-27T15:02:41.748Z - debug: Check online 0x00158d0002326b3c\r\n2018-06-27T15:02:41.756Z - debug: Check online 0x00158d00023a990f\r\n2018-06-27T15:03:41.783Z - debug: Check online 0x00158d0002326b3c\r\n2018-06-27T15:03:41.793Z - debug: Check online 0x00158d00023a990f\r\n2018-06-27T15:04:41.835Z - debug: Check online 0x00158d0002326b3c\r\n2018-06-27T15:04:41.843Z - debug: Check online 0x00158d00023a990f\r\n2018-06-27T15:05:41.879Z - debug: Check online 0x00158d0002326b3c\r\n2018-06-27T15:05:41.888Z - debug: Check online 0x00158d00023a990f\r\n\r\nDo you have any suggestions ? \r\nThanks \r\n"},"comment":{"url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/comments/400724207","html_url":"https://github.com/Koenkk/zigbee2mqtt/issues/155#issuecomment-400724207","issue_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/155","id":400724207,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDcyNDIwNw==","user":{"login":"mali1","id":1225124,"node_id":"MDQ6VXNlcjEyMjUxMjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1225124?v=4","gravatar_id":"","url":"https://api.github.com/users/mali1","html_url":"https://github.com/mali1","followers_url":"https://api.github.com/users/mali1/followers","following_url":"https://api.github.com/users/mali1/following{/other_user}","gists_url":"https://api.github.com/users/mali1/gists{/gist_id}","starred_url":"https://api.github.com/users/mali1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mali1/subscriptions","organizations_url":"https://api.github.com/users/mali1/orgs","repos_url":"https://api.github.com/users/mali1/repos","events_url":"https://api.github.com/users/mali1/events{/privacy}","received_events_url":"https://api.github.com/users/mali1/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T15:43:56Z","updated_at":"2018-06-27T15:43:56Z","author_association":"NONE","body":"Maybe it`s the same problem that the ZiGate experiences: https://github.com/fairecasoimeme/ZiGate/issues/38"}}
{"actor":{"display_login":"mali1"}}