homebridge / homebridge

HomeKit support for the impatient.

Home Page:https://homebridge.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

connecting with homebridge does not work

ItzAPranko opened this issue · comments

commented

when I want to connect to hambridge from my apple device's it does not work
in homekit It loads fore a long time and after 5 minutes I get the message "accessoire is not reachable"
---web interface does work and I can acces everything thru the ip

What have I already done

  1. I did a reset of my hosting Mac
  2. reset of the network
  3. clean install homebridge
  4. clean install Node & Npm
  5. in homebridge web interface I did a reset of the connection code
  6. downgrade to a earlier version off homebridge with worked before
  7. changed connection method multiple time's 'ciao & bonjour'
  8. reset homekit
  9. disconest homekit from iCloud
  10. reconnect homekit to iCloud

Describe The Bug:
when I want to connect to homebridge via homekit it does not work I have tried multiple apple devices like iPhone's and iPad's on the same wifi connection.

when I want to connect I get the message "accessoire is not reachable"

devices on network
Apple:

  • iPhone 12
  • iPhone se
  • iPhone 8
  • Apple TV
  • Apple TV 4K
  • iPad
  • MacBook Pro (Homebridge host)
  • MacBook Air

Other:

  • windows notebook
  • Nintendo Switch

Logs Homebridge 1.3.6:

[11/15/2021, 7:55:45 PM] Got SIGTERM, shutting down Homebridge...
[11/15/2021, 7:55:50 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[11/15/2021, 7:55:55 PM] [HB Supervisor] Restarting Homebridge...
[11/15/2021, 7:55:55 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -D
[11/15/2021, 7:55:55 PM] [HB Supervisor] Started Homebridge v1.3.6 with PID: 64467
[11/15/2021, 7:55:55 PM] Loaded config.json with 0 accessories and 2 platforms.
[11/15/2021, 7:55:55 PM] Loaded 2 cached accessories from cachedAccessories.
[11/15/2021, 7:55:55 PM] ---
[11/15/2021, 7:55:55 PM] Loaded plugin: homebridge-config-ui-x@4.41.2
[11/15/2021, 7:55:55 PM] Registering platform 'homebridge-config-ui-x.config'
[11/15/2021, 7:55:55 PM] ---
[11/15/2021, 7:55:55 PM] Loaded plugin: homebridge-nest@4.6.3
[11/15/2021, 7:55:55 PM] Registering platform 'homebridge-nest.Nest'
[11/15/2021, 7:55:55 PM] ---
[11/15/2021, 7:55:55 PM] Loading 2 platforms...
[11/15/2021, 7:55:55 PM] [Config] Initializing config platform...
[11/15/2021, 7:55:55 PM] [Config] Running in Service Mode
[11/15/2021, 7:55:55 PM] [Nest] Initializing Nest platform...
[11/15/2021, 7:55:55 PM] [Nest] Fetching Nest devices.
[11/15/2021, 7:55:55 PM] [Nest] Authenticating via Google.
[11/15/2021, 7:55:55 PM] Publishing bridge accessory (name: Homebridge 5C4F, publishInfo: {
  username: '0E:00:B3:00:0E:00', Fake
  port: 51309,
  pincode: '***-**-***',
  category: 2,
  bind: undefined,
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: 'ciao'
}).
Setup Payload:
X-HM://0024I88AF5IUA
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 626-43-000 │     
    └────────────┘     
                       
[11/15/2021, 7:55:56 PM] Homebridge v1.3.6 (HAP v0.9.7) (Homebridge 5C4F) is running on port 51309.
[11/15/2021, 7:55:56 PM] [Nest] Authenticating via access token.
[11/15/2021, 7:55:58 PM] [Nest] Authentication successful.
[11/15/2021, 7:56:04 PM] [Nest] initing thermostat "Family Room Thermostat": deviceId: 000000 structureId:00000
[11/15/2021, 7:56:04 PM] [Nest] Current temperature for Family Room Thermostat is: 21 °C / 69.8 °F
[11/15/2021, 7:56:04 PM] [Nest] Current humidity for Family Room Thermostat is: 56%
[11/15/2021, 7:56:04 PM] [Nest] Target temperature for Family Room Thermostat is: 21.5 °C / 70.7 °F
[11/15/2021, 7:56:04 PM] [Nest] Target heating/cooling state for Family Room Thermostat is: Heat
[11/15/2021, 7:56:04 PM] [Nest] Cooling threshold temperature for Family Room Thermostat is: 24 °C / 75.2 °F
[11/15/2021, 7:56:04 PM] [Nest] Heating threshold temperature for Family Room Thermostat is: 20 °C / 68 °F
[11/15/2021, 7:56:04 PM] [Nest] Online status for Family Room Thermostat is: true
[11/15/2021, 7:56:04 PM] [Nest] Sunlight Correction Enabled for Family Room Thermostat is: true
[11/15/2021, 7:56:04 PM] [Nest] initing home_away_sensor "Home Occupied": deviceId: 000 structureId: 0000000
[11/15/2021, 7:56:04 PM] [Nest] Home Occupied for Home Occupied is: true

Logs Homebridge 1.2.4:

[11/15/2021, 7:28:35 PM] [Homebridge UI] Sending SIGTERM to Homebridge
[11/15/2021, 7:28:39 PM] [HB Supervisor] Restarting Homebridge...
[11/15/2021, 7:28:39 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -D
[11/15/2021, 7:28:39 PM] [HB Supervisor] Started Homebridge v1.2.4 with PID: 63244
[11/15/2021, 7:28:39 PM] Loaded config.json with 0 accessories and 2 platforms.
[11/15/2021, 7:28:39 PM] ---
[11/15/2021, 7:28:39 PM] Loaded plugin: homebridge-config-ui-x@4.41.2
[11/15/2021, 7:28:39 PM] Registering platform 'homebridge-config-ui-x.config'
[11/15/2021, 7:28:39 PM] ---
[11/15/2021, 7:28:39 PM] Loaded plugin: homebridge-nest@4.6.3
[11/15/2021, 7:28:39 PM] Registering platform 'homebridge-nest.Nest'
[11/15/2021, 7:28:39 PM] ---
[11/15/2021, 7:28:39 PM] Loading 2 platforms...
[11/15/2021, 7:28:39 PM] [Config] Initializing config platform...
[11/15/2021, 7:28:39 PM] [Config] Running in Service Mode
[11/15/2021, 7:28:39 PM] [Nest] Initializing Nest platform...
[11/15/2021, 7:28:39 PM] [Nest] Fetching Nest devices.
[11/15/2021, 7:28:39 PM] [Nest] Authenticating via Google.
Setup Payload:
X-HM://0024I88AF5IUA
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 626-43-000 │     
    └────────────┘     
                       
[11/15/2021, 7:28:40 PM] Homebridge v1.2.4 is running on port 51309.
[11/15/2021, 7:28:40 PM] [Nest] Authenticating via access token.
[11/15/2021, 7:28:42 PM] [Homebridge UI] Sending SIGKILL to Homebridge
[11/15/2021, 7:28:42 PM] [HB Supervisor] Homebridge Process Ended. Code: null, Signal: SIGKILL
[11/15/2021, 7:28:47 PM] [HB Supervisor] Restarting Homebridge...
[11/15/2021, 7:28:47 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -D
[11/15/2021, 7:28:47 PM] [HB Supervisor] Started Homebridge v1.2.4 with PID: 63256
[11/15/2021, 7:28:48 PM] Loaded config.json with 0 accessories and 2 platforms.
[11/15/2021, 7:28:48 PM] ---
[11/15/2021, 7:28:48 PM] Loaded plugin: homebridge-config-ui-x@4.41.2
[11/15/2021, 7:28:48 PM] Registering platform 'homebridge-config-ui-x.config'
[11/15/2021, 7:28:48 PM] ---
[11/15/2021, 7:28:48 PM] Loaded plugin: homebridge-nest@4.6.3
[11/15/2021, 7:28:48 PM] Registering platform 'homebridge-nest.Nest'
[11/15/2021, 7:28:48 PM] ---
[11/15/2021, 7:28:48 PM] Loading 2 platforms...
[11/15/2021, 7:28:48 PM] [Config] Initializing config platform...
[11/15/2021, 7:28:48 PM] [Config] Running in Service Mode
[11/15/2021, 7:28:48 PM] [Nest] Initializing Nest platform...
[11/15/2021, 7:28:48 PM] [Nest] Fetching Nest devices.
[11/15/2021, 7:28:48 PM] [Nest] Authenticating via Google.
Setup Payload:
X-HM://0024I88AF5IUA
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 626-43-000│     
    └────────────┘     
                       
[11/15/2021, 7:28:48 PM] Homebridge v1.2.4 is running on port 51309.
[11/15/2021, 7:28:49 PM] [Nest] Authenticating via access token.
[11/15/2021, 7:28:51 PM] [Nest] Authentication successful.
[11/15/2021, 7:28:54 PM] [Nest] initing thermostat "Family Room Thermostat": deviceId: 00000 structureId:  0000
[11/15/2021, 7:28:54 PM] [Nest] Current temperature for Family Room Thermostat is: 21.5 °C / 70.7 °F
[11/15/2021, 7:28:54 PM] [Nest] Current humidity for Family Room Thermostat is: 56%
[11/15/2021, 7:28:54 PM] [Nest] Target temperature for Family Room Thermostat is: 21.5 °C / 70.7 °F
[11/15/2021, 7:28:54 PM] [Nest] Target heating/cooling state for Family Room Thermostat is: Heat
[11/15/2021, 7:28:54 PM] [Nest] Cooling threshold temperature for Family Room Thermostat is: 24 °C / 75.2 °F
[11/15/2021, 7:28:54 PM] [Nest] Heating threshold temperature for Family Room Thermostat is: 20 °C / 68 °F
[11/15/2021, 7:28:54 PM] [Nest] Online status for Family Room Thermostat is: true
[11/15/2021, 7:28:54 PM] [Nest] Sunlight Correction Enabled for Family Room Thermostat is: true
[11/15/2021, 7:28:54 PM] [Nest] initing home_away_sensor "Home Occupied": deviceId: 00 structureId: 000
[11/15/2021, 7:28:54 PM] [Nest] Home Occupied for Home Occupied is: true
[11/15/2021, 7:34:52 PM] [Homebridge UI] [homebridge] Failed to check registry.npmjs.org for updates: "timeout of 5000ms exceeded" - see https://git.io/JJSz6 for help.
[11/15/2021, 7:34:57 PM] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "timeout of 5000ms exceeded" - see https://git.io/JJSz6 for help.
[11/15/2021, 7:37:12 PM] [Nest] Current temperature for Family Room Thermostat is: 21 °C / 69.8 °F
[11/15/2021, 7:38:42 PM] [Homebridge UI] [homebridge] Failed to check registry.npmjs.org for updates: "timeout of 5000ms exceeded" - see https://git.io/JJSz6 for help.
[11/15/2021, 7:40:15 PM] [Homebridge UI] [homebridge] Failed to check registry.npmjs.org for updates: "timeout of 5000ms exceeded" - see https://git.io/JJSz6 for help.
[11/15/2021, 7:42:15 PM] [Homebridge UI] [homebridge] Failed to check registry.npmjs.org for updates: "timeout of 5000ms exceeded" - see https://git.io/JJSz6 for help.
[11/15/2021, 7:44:27 PM] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "timeout of 5000ms exceeded" - see https://git.io/JJSz6 for help.

Homebridge Config:

{
    "bridge": {
        "name": "Homebridge 5C4F",
        "advertiser": "ciao",
        "port": 51309,
        "pin": "626-43-...", "Fake"
        "username": "0E:00:B3:00:DE:00" "Fake"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "Nest",
            "refreshToken": "000000",
            "platform": "Nest"
        }
    ]
}

Screenshots:
IMG_1382

Environment:

  • Node.js Version: 17.1.0
  • NPM Version: 8.1.3
  • Homebridge Version: current 1.2.4 but also on latest 1.3.6
  • Operating System: macOS
  • Process Supervisor: Homebridge & hb-service
commented

downgrading npm and node to

Node.js Versie | v16.13.0
npm | v8.1.0

fixes the problems

I use this version :

Version de Node.js v16.13.0
v8.1.0

And i have a same problem

commented

I use this version :

Version de Node.js v16.13.0
v8.1.0
And i have a same problem

i have treid it on homebridge built 1.3.6 and node build 16.13.0 npm build 8.1.0

if this does not work try downgrading to a lower node build and see if this works.

I did use a Mac fore this solve

Nudge, I have the same issue running the same NPM and Node.js

Anyone have any suggestions?

commented

i am sorry I can't help the thing that still works fore me is downgrading to the LTS version of node and npm via
weblink: https://nodejs.org/en/ and don't upgrade after upgrading it immediately does not work anymore

same here with nodejs 17.3.0, will try downgrade to 16 to see if mitigated

Nudge, I have the same issue running the same NPM and Node.js

Anyone have any suggestions?

I switched to my ipad and tried to setup there, and it worked perfectly on the first try. Could be something to do with iOS and not the homebridge.

commented

FYI as per the homebridge wiki

Homebridge does not support odd-numbered releases of Node.js, such as 11.x, 13.x, 15.x or 17.x.

I would recommend to anyone running node 17 to downgrade properly to node 16, using the hb-service tool if available to you.

sudo hb-service update-node 16.13.1

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been closed as no further activity has occurred.