Plug entities status unknown in HA but can be changed in ZB2MQTT UI

I’m new to zigbee.

I have 3 sonoff s40 plugs, they are paired and show in the ZB webui:

plug details:

They can be controlled from the ZB2MQTT web ui:
zb2

but they keep going to unknown status in HA:
zb3

The entity name is correct and when I deleted and reinstalled zb2mqtt they were found by HA last night and again today they have disappeared. I tested my ikea button and its still triggering my HA automation.

This is probably something easy but I’m new to zigB. I would greatly appreciate any help.

I updated my socat (zigbee2mqtt options)
from:
enabled: false
to
enabled: true

and it seems to work now. I will monitor and update if it fails tomorrow.

The devices still disappeared the next day.

I uninstalled, deleted files and reinstalled. seems ok

disappeared this morning again.
I’m also having inconsistances between my ikea buttons. I have 3 buttons and only one still shows the on action the other two have lost any actions except for battery change status.

Try manually turn off and on plugs. It should be possible on the plug and check then in home assistant. Do you have anything connected to those plugs?

I’ve been playing with me settings alot but I’ve tried to get everything back to default: Does anything stand out?

external_converters: []
devices:
  - devices.yaml
groups:
  - groups.yaml
homeassistant:
  legacy_entity_attributes: true
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://<I removed the ip>
  user: ''
  password: ''
serial:
  port: >-
    /dev/serial/by-id/usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_8cd37a9cfd93eb11a321a85b3d98b6d1-if00-port0
advanced:
  log_level: error
  pan_id: 473
  channel: 25
  network_key:
    - 114
    - 35
    - 78
    - 229
    - 60
    - 75
    - 182
    - 61
    - 114
    - 223
    - 127
    - 125
    - 228
    - 130
    - 158
    - 209
  availability_blocklist: []
  availability_passlist: []
  log_syslog:
    app_name: Zigbee2MQTT
    eol: /n
    host: localhost
    localhost: localhost
    path: /dev/log
    pid: process.pid
    port: 123
    protocol: tcp4
    type: '5424'
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
  last_seen: ISO_8601_local
device_options:
  legacy: false
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}
availability: true
'{"id":1,"type":"Coordinator","ieeeAddr":"0x00124b0024c2b3d0","nwkAddr":0,"manufId":0,"epList":[1,2,3,4,5,6,8,10,11,12,13,47,110,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"2":{"profId":257,"epId":2,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"3":{"profId":260,"epId":3,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"4":{"profId":263,"epId":4,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"5":{"profId":264,"epId":5,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"6":{"profId":265,"epId":6,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"8":{"profId":260,"epId":8,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"10":{"profId":260,"epId":10,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"11":{"profId":260,"epId":11,"devId":1024,"inClusterList":[1281,10],"outClusterList":[1280,1282],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"12":{"profId":49246,"epId":12,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"13":{"profId":260,"epId":13,"devId":5,"inClusterList":[25],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"47":{"profId":260,"epId":47,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"110":{"profId":260,"epId":110,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"interviewCompleted":true,"meta":{},"lastSeen":null,"defaultSendRequestWhen":"immediate"}

{"id":2,"type":"EndDevice","ieeeAddr":"0x00158d00024bef9c","nwkAddr":55959,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_wleak.aq1","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,3,1],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"65281":{"1":3175,"3":29,"4":5032,"5":50,"6":[0,1],"8":516,"10":0,"100":1},"modelId":"lumi.sensor_wleak.aq1","appVersion":4,"manufacturerName":"LUMI","powerSource":3,"zclVersion":1,"stackVersion":2,"hwVersion":2,"dateCode":"20170721","swBuildId":"3000-0001"}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":4,"stackVersion":2,"hwVersion":2,"dateCode":"20170721","swBuildId":"3000-0001","zclVersion":1,"interviewCompleted":true,"meta":{},"lastSeen":1660501724906,"defaultSendRequestWhen":"immediate"}
 
{"id":3,"type":"Router","ieeeAddr":"0x00124b0026b87133","nwkAddr":52487,"manufId":4742,"manufName":"SONOFF","powerSource":"Mains (single phase)","modelId":"S40LITE","epList":[1,13,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":9,"inClusterList":[0,3,4,5,6,64599,64672],"outClusterList":[25],"clusters":{"genOnOff":{"attributes":{"onOff":1}},"genBasic":{"attributes":{"modelId":"S40LITE","manufacturerName":"SONOFF","powerSource":1,"zclVersion":3,"hwVersion":1,"dateCode":"20211222","swBuildId":"1.0.1"}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2b3d0","endpointID":242}],"configuredReportings":[],"meta":{}},"13":{"profId":49246,"epId":13,"devId":57694,"inClusterList":[4096],"outClusterList":[4096],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"hwVersion":1,"dateCode":"20211222","swBuildId":"1.0.1","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-353372667},"lastSeen":1660502340383,"defaultSendRequestWhen":"immediate"}

 {"id":5,"type":"Router","ieeeAddr":"0x00124b0026b87111","nwkAddr":48506,"manufId":4742,"manufName":"SONOFF","powerSource":"Mains (single phase)","modelId":"S40LITE","epList":[1,13,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":9,"inClusterList":[0,3,4,5,6,64599,64672],"outClusterList":[25],"clusters":{"genOnOff":{"attributes":{"onOff":0}},"genBasic":{"attributes":{"modelId":"S40LITE","manufacturerName":"SONOFF","powerSource":1,"zclVersion":3,"hwVersion":1,"dateCode":"20211222","swBuildId":"1.0.1"}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2b3d0","endpointID":242}],"configuredReportings":[],"meta":{}},"13":{"profId":49246,"epId":13,"devId":57694,"inClusterList":[4096],"outClusterList":[4096],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"hwVersion":1,"dateCode":"20211222","swBuildId":"1.0.1","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-353372667},"lastSeen":1660502975257,"defaultSendRequestWhen":"immediate"}

 {"id":6,"type":"Router","ieeeAddr":"0x00124b0026b8710b","nwkAddr":65089,"manufId":4742,"manufName":"SONOFF","powerSource":"Mains (single phase)","modelId":"S40LITE","epList":[1,13,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":9,"inClusterList":[0,3,4,5,6,64599,64672],"outClusterList":[25],"clusters":{"genOnOff":{"attributes":{"onOff":0}},"genBasic":{"attributes":{"modelId":"S40LITE","manufacturerName":"SONOFF","powerSource":1,"zclVersion":3,"hwVersion":1,"dateCode":"20211222","swBuildId":"1.0.1"}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2b3d0","endpointID":242}],"configuredReportings":[],"meta":{}},"13":{"profId":49246,"epId":13,"devId":57694,"inClusterList":[4096],"outClusterList":[4096],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"hwVersion":1,"dateCode":"20211222","swBuildId":"1.0.1","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-353372667},"lastSeen":1660502977302,"defaultSendRequestWhen":"immediate"}

 {"id":7,"type":"Router","ieeeAddr":"0x00124b0026b870a9","nwkAddr":54319,"manufId":4742,"manufName":"SONOFF","powerSource":"Mains (single phase)","modelId":"S40LITE","epList":[1,13,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":9,"inClusterList":[0,3,4,5,6,64599,64672],"outClusterList":[25],"clusters":{"genOnOff":{"attributes":{"onOff":0}},"genBasic":{"attributes":{"modelId":"S40LITE","manufacturerName":"SONOFF","powerSource":1,"zclVersion":3,"hwVersion":1,"dateCode":"20211222","swBuildId":"1.0.1"}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2b3d0","endpointID":242}],"configuredReportings":[],"meta":{}},"13":{"profId":49246,"epId":13,"devId":57694,"inClusterList":[4096],"outClusterList":[4096],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"hwVersion":1,"dateCode":"20211222","swBuildId":"1.0.1","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-353372667},"lastSeen":1660502722162,"defaultSendRequestWhen":"immediate"}

 {"id":8,"type":"EndDevice","ieeeAddr":"0x00124b002471229d","nwkAddr":10052,"manufId":0,"manufName":"eWeLink","powerSource":"Battery","modelId":"MS01","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,3,1280,1],"outClusterList":[3],"clusters":{"genBasic":{"attributes":{"modelId":"MS01","manufacturerName":"eWeLink","powerSource":3,"zclVersion":1,"appVersion":5,"hwVersion":1,"dateCode":"20211103"}},"ssIasZone":{"attributes":{"iasCieAddr":"0x00124b0024c2b3d0","zoneState":1}},"genPowerCfg":{"attributes":{"batteryVoltage":31,"batteryPercentageRemaining":200}}},"binds":[{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2b3d0","endpointID":242}],"configuredReportings":[{"cluster":1,"attrId":32,"minRepIntval":3600,"maxRepIntval":62000,"repChange":0},{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":62000,"repChange":0}],"meta":{}}},"appVersion":5,"hwVersion":1,"dateCode":"20211103","zclVersion":1,"interviewCompleted":true,"meta":{"configured":-615103259},"lastSeen":1660501676467,"defaultSendRequestWhen":"immediate"}

 {"id":9,"type":"EndDevice","ieeeAddr":"0x00158d000544a39b","nwkAddr":60079,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_cube.aqgl01","epList":[1,2,3],"endpoints":{"1":{"epId":1,"inClusterList":[],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"65281":{"1":2985,"3":22,"4":5032,"5":173,"6":[0,1],"10":0,"151":0,"152":28,"153":22,"154":4},"modelId":"lumi.sensor_cube.aqgl01","appVersion":5}}},"binds":[],"configuredReportings":[],"meta":{}},"2":{"epId":2,"inClusterList":[],"outClusterList":[],"clusters":{"genMultistateInput":{"attributes":{"presentValue":2}}},"binds":[],"configuredReportings":[],"meta":{}},"3":{"epId":3,"inClusterList":[],"outClusterList":[],"clusters":{"genAnalogInput":{"attributes":{"65285":500,"presentValue":19.329999923706055}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":5,"interviewCompleted":true,"meta":{},"lastSeen":1660500569188,"defaultSendRequestWhen":"immediate"}

 {"id":10,"type":"EndDevice","ieeeAddr":"0x84fd27fffe1e06ee","nwkAddr":42599,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Battery","modelId":"TRADFRI SHORTCUT Button","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":2080,"inClusterList":[0,1,3,9,32,4096,64636],"outClusterList":[3,4,6,8,25,4096],"clusters":{"genBasic":{"attributes":{"manufacturerName":"IKEA of Sweden","powerSource":3,"zclVersion":3,"appVersion":33,"stackVersion":98,"hwVersion":1}},"genPollCtrl":{"attributes":{"checkinInterval":172800}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":74}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2b3d0","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2b3d0","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":62000,"repChange":0}],"meta":{}}},"appVersion":33,"stackVersion":98,"hwVersion":1,"dateCode":"20210727","swBuildId":"2.3.080","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1342634917},"lastSeen":1660494190971,"defaultSendRequestWhen":"active"}

 {"id":11,"type":"EndDevice","ieeeAddr":"0x84fd27fffeae4341","nwkAddr":37635,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Battery","modelId":"TRADFRI SHORTCUT Button","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":2080,"inClusterList":[0,1,3,9,32,4096],"outClusterList":[3,4,6,8,25,258,4096],"clusters":{"genBasic":{"attributes":{"powerSource":3,"zclVersion":3}},"genPollCtrl":{"attributes":{"checkinInterval":172800}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":100}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2b3d0","endpointID":242},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2b3d0","endpointID":242},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2b3d0","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":62000,"repChange":0}],"meta":{}}},"appVersion":33,"stackVersion":98,"hwVersion":1,"dateCode":"20190715","swBuildId":"2.3.015","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1342634917},"lastSeen":1660446484805,"defaultSendRequestWhen":"active"}

 {"id":12,"type":"EndDevice","ieeeAddr":"0x84fd27fffeaaa28c","nwkAddr":38139,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Battery","modelId":"TRADFRI SHORTCUT Button","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":2080,"inClusterList":[0,1,3,9,32,4096],"outClusterList":[3,4,6,8,25,258,4096],"clusters":{"genPollCtrl":{"attributes":{"checkinInterval":172800}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2b3d0","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":33,"stackVersion":98,"hwVersion":1,"dateCode":"20190715","swBuildId":"2.3.015","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1660502074325,"defaultSendRequestWhen":"active"}

 {"id":13,"type":"EndDevice","ieeeAddr":"0x00158d000800fed0","nwkAddr":36198,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_magnet.aq2","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":24321,"inClusterList":[0,3,65535,6],"outClusterList":[0,4,65535],"clusters":{"genBasic":{"attributes":{"65281":{"1":3005,"3":28,"4":5032,"5":27,"6":[0,1],"10":52487,"100":0},"modelId":"lumi.sensor_magnet.aq2","appVersion":3,"manufacturerName":"LUMI","powerSource":3,"zclVersion":1,"stackVersion":2,"hwVersion":2,"dateCode":"20161128","swBuildId":"3000-0001"}},"genOnOff":{"attributes":{"onOff":0}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":3,"stackVersion":2,"hwVersion":2,"dateCode":"20161128","swBuildId":"3000-0001","zclVersion":1,"interviewCompleted":true,"meta":{"configured":-1496948516},"lastSeen":1660501691674,"defaultSendRequestWhen":"immediate"}

When you are trying to solve the problem go with the most obvious and easiest solutions. Try repairing those plugs. They should work as a routers. I never had a router problem in zigbee network nor they ever unpair from the network.

Thank you very much Daniel I really appreciate your help.
I’ve tried repairing devices and that does seem to help my issue.

I’m wondering if its an issue with MQTT now but honestly I feel lost. I recreated then restored my home assistant VM but that didn’t make a difference either.

There is one thing that i dont understand. Why people are using VM for home assistant?
It’s oke for testing but it’s seems to me that things are not made to be run in vms.
I don’t say that this is causing your problems, but home assistant must be running 24/7 otherwise it’s pointless.
I have zigbee network for a year or more. I installed supervisor on debian. For time to time some sensor or end device will disconnect but router never ever disconnected from the network.

I’ve been running HA in a VM for a few years now. I’ve been using zwave for most of my devices but ZB is so cheap and flexible that I’ve started playing with it. I think the issues started when I tried to migrate to @MQTT.

Recreating the VM was just a shot in the dark because I had moved around my USB ports a while back and thought that might be effecting the controller.

I finally got the ikea buttons to get their correct actions “on action” instead of unknown… which is a win!

I never used ha in vm and I’m not planning to do so. I don’t think that ha os or docker was engendered to be run in vm. I don’t say that this is causing you troubles but consider moving it to haos or debian as it’s supported.

I’ve found a referenced issue with unraid and I’m trying the usb manager app with connect as serial only to fix the issue:

https://forums.unraid.net/topic/113301-passthrough-of-conbee-ii-zigbee-usb-gateway-to-home-assistant-virtual-machine/page/2/

For anyone else reading this, I believe its a problem with the controller. I flashed it but it still will disconnect every couple days.
I have changed the cable and moved the off the home assistant zb2mqtt and I’m running it in a docker now but still have the same issue so that removes HA from the issue.
To fix it without replacing the controller I just have the docker auto restart on disconnect, its been two weeks and I dont notice any disconnects. Eventually I will probably have to replace the controller but thats future me’s problem.