itsmepetrov / homebridge-zigbee

ZigBee Platform plugin for HomeBridge
https://itsmepetrov.github.io/homebridge-zigbee/
MIT License
106 stars 36 forks source link

Permit Join Button missing #26

Open wallenium opened 5 years ago

wallenium commented 5 years ago

Hi, I tried it several times, Every Time i install the Plugin, the permit Join Button is missing. Any idea what Happens? Any idea how to add it?

Thanks a lot

Chephren77 commented 5 years ago

Hi, I have the same problem. The button to activate pairing does not appear in either the Home App or the UI of Homebridge. Already uninstalled and reinstalled the plugin. Unfortunately without success.

Is there a possibility to activate pairing via the command line or a way to fix this?

Thanks in advance.

itsmepetrov commented 5 years ago

It looks like you have issues in homebridge configuration or something else, please attach logs from homebridge.

Chephren77 commented 5 years ago

Here is my current config. The attachment contains an excerpt from the log after restarting the Homebridge.

{  
    "bridge": {  
        "name": "Homebridge",  
        "username": "CC:22:3D:E3:CE:30",  
        "port": 51826,  
        "pin": "031-45-154"  
    },  
    "description": "Home Smart Home",  
    "platforms": [  
        {  
            "platform": "config",  
            "name": "Config",
            "port": 8080,
            "auth": "form",
            "theme": "red",
            "restart": "sudo -n systemctl restart homebridge",
            "temp": "/sys/class/thermal/thermal_zone0/temp",
            "sudo": true,
            "log": {
                "method": "systemd",
                "service": "homebridge"
            }
        },
        {
            "platform": "VorwerkVacuumRobot",
            "email": "********",
            "password": "********"
        },
        {
            "platform": "SamsungTizen",
            "devices": [
                {
                    "name": "TV",
                    "ip": "192.168.10.140",
                    "mac": "70:2A:D5:EB:4C:0E",
                    "token": "********"
                }
            ]
        },
        {
            "platform": "Shelly",
            "name": "Shelly",
            "username": null,
            "password": null
        },
        {
            "name": "ZigBee",
            "panId": 65535,
            "channel": 11,
            "permitJoinTimeout": 120,
            "routerPollingInterval": 60,
            "disableLed": false,
            "disablePingLog": false,
            "platform": "ZigBeePlatform"
        }
    ],
    "accessories": [
        {
            "accessory": "FakeBulb",
            "name": "Test lamp 1",
            "bulb_name": "Lamp1"
        },
        {
            "accessory": "FakeBulb",
            "name": "Test lamp 2",
            "bulb_name": "Lamp2"
        }
    ]
}

homebridge.log

itsmepetrov commented 5 years ago

@Chephren77 config looks ok, but logs isn't complete, here an example of right logs for the plugin:

[3/19/2019, 2:40:23 PM] Homebridge is running on port 51826.
[3/19/2019, 2:40:27 PM] [ZigBee] ZigBee platform initialized, info:
[3/19/2019, 2:40:27 PM] [ZigBee] ------------------------------------
[3/19/2019, 2:40:27 PM] [ZigBee] channel: 11
[3/19/2019, 2:40:27 PM] [ZigBee] pan id: 0xc1c9
[3/19/2019, 2:40:27 PM] [ZigBee] extended pan id: 0xdddddddddddddddd
[3/19/2019, 2:40:27 PM] [ZigBee] ieee address: 0x00124b000e896b4d
[3/19/2019, 2:40:27 PM] [ZigBee] nwk address: 0
[3/19/2019, 2:40:27 PM] [ZigBee] firmware version: null
[3/19/2019, 2:40:27 PM] [ZigBee] firmware revision: null
[3/19/2019, 2:40:27 PM] [ZigBee] ------------------------------------

Please remove all platforms and accessories except zigbee from config and try to run homebridge again

smartiebs commented 5 years ago

Hi, i have the same issue. My config is nearly the same and my logfile don't looks like your example :/ remove all platforms and accessories except zigbee from the config doesn't fix the problem. What can i do?

Thanks in advance

wallenium commented 5 years ago

I added /dev/ttyACM0 as Port and since today it suddenly started to work..

zesa0000 commented 5 years ago

same here.... I add the /dev/ttyACM0 but it doesnt work :( Any ideas?

moritzmhmk commented 5 years ago

The Button does not appear when the plugin fails to initialize, there really should be some kind of error message in the log - would have saved some time ;)

usermod -a -G dialout homebridge solved it for me.

xiwenc commented 4 years ago

Also ran into this issue. I fixed it by changing the environment variables in docker-compose.yaml to:

    environment:
      - PGID=0
      - PUID=0

From the default of 1000. The plugin should give better error feedback in this case.