RoeiOfri / homebridge-palgate-opener

PalGates homebridge plugin
MIT License
26 stars 8 forks source link

bug when i add homebridge on home assistant #5

Closed guyyar89 closed 3 years ago

guyyar89 commented 3 years ago

hey. i have 4 accessories and when i add homebridge on home assistant i have only 1 accessories and not all the 4 gate. how to fix it?

RoeiOfri commented 3 years ago

How many “PalGateOpener” entries you have in your config file? You need to insert a new entry for each gate with different name and it’s own gate id, token should be the same.

guyyar89 commented 3 years ago

4 “PalGateOpener” and the token same.

RoeiOfri commented 3 years ago

Paste your configuration here so I can see.

guyyar89 commented 3 years ago

i edit the token and names:

{
    "bridge": {
        "name": "Homebridge XXXX",
        "username": "0E:DE:XX:XX:XX:XX",
        "port": 5XXX2,
        "pin": "031-45-154"
    },
    "accessories": [
        {
            "accessory": "PalGateOpener",
            "name": "gate1",
            "accessoryType": "garageDoor",
            "deviceId": "3G4XXXX",
            "token": "XXXXXXXXXXXX"
        },
        {
            "accessory": "PalGateOpener",
            "name": "gate2",
            "accessoryType": "garageDoor",
            "deviceId": "3G4XXXXz",
            "token": "XXXXXXXXXXXX"
        },
        {
            "accessory": "PalGateOpener",
            "name": "gate3",
            "accessoryType": "garageDoor",
            "deviceId": "3G4XXXXy",
            "token": "XXXXXXXXXXXX"
        },
        {
            "accessory": "PalGateOpener",
            "name": "gate4",
            "accessoryType": "garageDoor",
            "deviceId": "3G4XXXXd",
            "token": "XXXXXXXXXXXX"
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 4725,
            "platform": "config"
        }
    ]
}
RoeiOfri commented 3 years ago

Any errors in the log? Paste the log here if there are any errors; Did you restart HB after adding the entries?

guyyar89 commented 3 years ago

yes and this is the log: `[cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] syncing disks. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting. [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 10-adduser: executing... usermod: no changes

GID/UID

User uid: 1000 User gid: 1000

[cont-init.d] 10-adduser: exited 0. [cont-init.d] 20-set-timezone: executing... [cont-init.d] 20-set-timezone: exited 0. [cont-init.d] 30-packages: executing... [cont-init.d] 30-packages: exited 0. [cont-init.d] 40-dbus-avahi: executing... [cont-init.d] 40-dbus-avahi: exited 1. [cont-init.d] 45-user-data: executing... [cont-init.d] 45-user-data: exited 0. [cont-init.d] 50-plugins: executing... Thank you for using the oznu/homebridge docker image! If you find this project useful please STAR it on GitHub: https://github.com/oznu/docker-homebridge Homebridge: Installing plugins... up to date in 0.126s up to date in 0.133s [cont-init.d] 50-plugins: exited 0. [cont-init.d] 55-config-ui: executing... Enabling homebridge-config-ui-x... [cont-init.d] 55-config-ui: exited 0. [cont-init.d] done. [services.d] starting services Starting cron [2/7/2021, 10:26:07 PM] [shoshana7] Triggered GET Target DoorState Thank you for using the oznu/homebridge docker image! If you find this project useful please STAR it on GitHub: https://github.com/oznu/docker-homebridge [services.d] done. [2/7/2021, 10:26:15 PM] [HB Supervisor] Homebridge Storage Path: /homebridge [2/7/2021, 10:26:15 PM] [HB Supervisor] Homebridge Config Path: /homebridge/config.json [2/7/2021, 10:26:15 PM] [HB Supervisor] Logging to /homebridge/homebridge.log [2/7/2021, 10:26:15 PM] [HB Supervisor] OS: Linux 5.0.0-38-generic x64 [2/7/2021, 10:26:15 PM] [HB Supervisor] Node.js v14.15.4 /usr/local/bin/node [2/7/2021, 10:26:15 PM] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge [2/7/2021, 10:26:15 PM] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js [2/7/2021, 10:26:16 PM] [Homebridge UI] Homebridge Config UI X v4.38.0 is listening on :: port 4725 [2/7/2021, 10:26:16 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /homebridge/node_modules [2/7/2021, 10:26:16 PM] [HB Supervisor] Started Homebridge v1.2.5 with PID: 369 [2/7/2021, 10:26:17 PM] Loaded config.json with 4 accessories and 1 platforms. [2/7/2021, 10:26:17 PM] --- [2/7/2021, 10:26:17 PM] Loaded plugin: homebridge-dummy@0.5.0 [2/7/2021, 10:26:17 PM] Registering accessory 'homebridge-dummy.DummySwitch' [2/7/2021, 10:26:17 PM] --- [2/7/2021, 10:26:17 PM] Loaded plugin: homebridge-palgate-opener@1.0.5 [2/7/2021, 10:26:17 PM] Registering accessory 'homebridge-palgate-opener.PalGateOpener' [2/7/2021, 10:26:17 PM] --- [2/7/2021, 10:26:17 PM] Loaded plugin: homebridge-config-ui-x@4.38.0 [2/7/2021, 10:26:17 PM] Registering platform 'homebridge-config-ui-x.config' [2/7/2021, 10:26:17 PM] --- [2/7/2021, 10:26:17 PM] Loading 1 platforms... [2/7/2021, 10:26:17 PM] [Config] Initializing config platform... [2/7/2021, 10:26:17 PM] [Config] Running in Service Mode [2/7/2021, 10:26:17 PM] Loading 4 accessories... [2/7/2021, 10:26:17 PM] [shoshana7] Initializing PalGateOpener accessory... [2/7/2021, 10:26:17 PM] [ehudmanor10] Initializing PalGateOpener accessory... [2/7/2021, 10:26:17 PM] [ofra16] Initializing PalGateOpener accessory... [2/7/2021, 10:26:17 PM] [parkingofra16] Initializing PalGateOpener accessory... Setup Payload: X-HM://0023ISYWY0IB7 Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 031-45-154 │     
└────────────┘     

[2/7/2021, 10:26:17 PM] Homebridge v1.2.5 is running on port 51992. [2/7/2021, 10:26:34 PM] [shoshana7] Triggered GET Current DoorState [2/7/2021, 10:26:34 PM] [shoshana7] Triggered GET Target DoorState`

RoeiOfri commented 3 years ago

There aren’t any errors, looks like everything is just fine, did you check if they garage doors appear under “Default Room” in the HomeKit app? If they’re not there, try changing ‘accessoryType’ from GarageDoor to switch, might be a HomeKit limitation but I don’t think so and not aware of any limitation like that but let’s try to isolate the problem...

guyguy1989 commented 3 years ago

Where i change it?

RoeiOfri commented 3 years ago

Open Home App > upper left/right corner (depends on OS language) click on the home icon > click on Default Room > check if you see the gates there

guyguy1989 commented 3 years ago

I add the controller homekit on homeassistant and not on my home. I try again with 2 users on palgate and same