NorthernMan54 / homebridge-alexa

Expose your homebridge controlled devices to Amazon Alexa.
https://www.homebridge.ca
442 stars 77 forks source link

ERROR: ( homebridge-alexa) Login to homebridge.ca failed, please validate your credentials in config.json and restart homebridge. #604

Closed HTCooper94 closed 3 months ago

HTCooper94 commented 3 months ago

Current Situation

I am getting the below error despite login info and pin being correct.

ERROR: ( homebridge-alexa) Login to homebridge.ca failed, please validate your credentials in config.json and restart homebridge.

Logs


[3/11/2024, 7:14:01 AM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules -D --strict-plugin-resolution
[3/11/2024, 7:14:01 AM] [HB Supervisor] Started Homebridge v1.7.0 with PID: 4087
[3/11/2024, 7:14:02 AM] Loaded config.json with 0 accessories and 3 platforms.
[3/11/2024, 7:14:02 AM] Loaded 0 cached accessories from cachedAccessories.
[3/11/2024, 7:14:02 AM] ---
[3/11/2024, 7:14:02 AM] Loaded plugin: homebridge-alexa@0.6.8
[3/11/2024, 7:14:02 AM] Registering platform 'homebridge-alexa.Alexa'
[3/11/2024, 7:14:02 AM] ---
[3/11/2024, 7:14:02 AM] Loaded plugin: homebridge-govee@10.4.0
[3/11/2024, 7:14:02 AM] Registering platform 'homebridge-govee.Govee'
[3/11/2024, 7:14:02 AM] ---
[3/11/2024, 7:14:02 AM] Loading 3 platforms...
[3/11/2024, 7:14:02 AM] [Govee] Initializing Govee platform...
[3/11/2024, 7:14:02 AM] [Govee] Initializing child bridge 0E:94:51:2E:55:63
[3/11/2024, 7:14:02 AM] [Alexa] Initializing Alexa platform...
[3/11/2024, 7:14:02 AM] [Alexa] Initializing child bridge 0E:3A:0E:36:AD:D5
[3/11/2024, 7:14:02 AM] Publishing bridge accessory (name: Homebridge 2787, publishInfo: {
  username: '0E:88:3A:A4:27:87',
  port: 51405,
  pincode: '***-**-***',
  category: 2,
  bind: [ 'eth0', [length]: 1 ],
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: 'avahi'
}).
Setup Payload:
X-HM://0024K88KQZB0A
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ 660-03-306 │     
    └────────────┘     

[3/11/2024, 7:14:02 AM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 2787) is running on port 51405.
[3/11/2024, 7:14:02 AM] [Homebridge UI] Starting terminal session
[3/11/2024, 7:14:02 AM] [Govee] Launched child bridge with PID 4106
[3/11/2024, 7:14:02 AM] [Alexa] Launched child bridge with PID 4107
[3/11/2024, 7:14:02 AM] Registering platform 'homebridge-govee.Govee'
[3/11/2024, 7:14:02 AM] [Govee] Loaded homebridge-govee v10.4.0 child bridge successfully
[3/11/2024, 7:14:02 AM] Loaded 12 cached accessories from cachedAccessories.0E94512E5563.
[3/11/2024, 7:14:02 AM] [Govee] Initialising plugin v10.4.0 | System linux | Node v20.11.1 | HB v1.7.0 | HAPNodeJS v0.11.1...
[3/11/2024, 7:14:02 AM] Publishing bridge accessory (name: Govee, publishInfo: {
  username: '0E:94:51:2E:55:63',
  port: 59398,
  pincode: '***-**-***',
  category: 2,
  bind: [ 'eth0', [length]: 1 ],
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: 'avahi'
}).
[3/11/2024, 7:14:02 AM] [Govee] Plugin initialised. Setting up accessories....
[3/11/2024, 7:14:02 AM] Homebridge v1.7.0 (HAP v0.11.1) (Govee) is running on port 59398.
[3/11/2024, 7:14:02 AM] Registering platform 'homebridge-alexa.Alexa'
[3/11/2024, 7:14:02 AM] [Alexa] Loaded homebridge-alexa v0.6.8 child bridge successfully
[3/11/2024, 7:14:02 AM] Loaded 0 cached accessories from cachedAccessories.0E3A0E36ADD5.
[3/11/2024, 7:14:02 AM] [Alexa] homebridge-alexa v0.6.8, node v20.11.1, homebridge v1.7.0
[3/11/2024, 7:14:02 AM] Initializing platform accessory 'Alexa'...
[3/11/2024, 7:14:02 AM] Publishing bridge accessory (name: Alexa, publishInfo: {
  username: '0E:3A:0E:36:AD:D5',
  port: 41369,
  pincode: '***-**-***',
  category: 2,
  bind: [ 'eth0', [length]: 1 ],
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: 'avahi'
}).
[3/11/2024, 7:14:02 AM] Homebridge v1.7.0 (HAP v0.11.1) (Alexa) is running on port 41369.
[3/11/2024, 7:14:02 AM] [Alexa] ERROR: ( homebridge-alexa) Login to homebridge.ca failed, please validate your credentials in config.json and restart homebridge.
[3/11/2024, 7:14:04 AM] [Govee] [LAN] client enabled and found 0 device(s).
[3/11/2024, 7:14:04 AM] [Govee] [HTTP] client enabled and found 12 device(s).
[3/11/2024, 7:14:04 AM] [Govee] [AWS] client enabled.
[3/11/2024, 7:14:04 AM] [Govee] [BLE] disabling client as EAFNOSUPPORT, Address family not supported by protocol at new BluetoothHciSocketWrapped (/homebridge/node_modules/homebridge-govee/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5).
[3/11/2024, 7:14:04 AM] [Govee] [Breezeway Thermometer] initialising with options {"lowBattThreshold":20}.
[3/11/2024, 7:14:04 AM] [Govee] [Breezeway Thermometer] initialised with id [5A:2D:18:1F:68:B1:9C:8B] [H5179].
[3/11/2024, 7:14:04 AM] [Govee] [Flower Fridge] initialising with options {"lowBattThreshold":20}.
[3/11/2024, 7:14:04 AM] [Govee] [Flower Fridge] initialised with id [73:2D:18:1F:68:C2:E8:3D] [H5179].
[3/11/2024, 7:14:04 AM] [Govee] [Greenhouse PowerMod 2] initialising with options {"showAs":"outlet"}.
[3/11/2024, 7:14:04 AM] [Govee] [Greenhouse PowerMod 2] initialised with id [17:CB:60:74:F4:55:E2:B2] [H5160].
[3/11/2024, 7:14:04 AM] [Govee] [Greenhouse PowerMod 1] initialising with options {"showAs":"outlet"}.
[3/11/2024, 7:14:04 AM] [Govee] [Greenhouse PowerMod 1] initialised with id [37:1F:60:74:F4:55:6D:28] [H5160].
[3/11/2024, 7:14:04 AM] [Govee] [Greenhouse Thermometer] initialising with options {"lowBattThreshold":20}.
[3/11/2024, 7:14:04 AM] [Govee] [Greenhouse Thermometer] initialised with id [C6:C3:18:1F:68:B2:7C:E3] [H5179].
[3/11/2024, 7:14:04 AM] [Govee] [Water Heater] initialising with options {}.
[3/11/2024, 7:14:04 AM] [Govee] [Water Heater] initialised with id [7E:87:CE:BC:1F:5F:00:67:59] [H5054].
[3/11/2024, 7:14:04 AM] [Govee] [Bathroom Sink] initialising with options {}.
[3/11/2024, 7:14:04 AM] [Govee] [Bathroom Sink] initialised with id [7E:87:CE:BC:1F:5F:00:5F:E0] [H5054].
[3/11/2024, 7:14:04 AM] [Govee] [Sump Pump] initialising with options {}.
[3/11/2024, 7:14:04 AM] [Govee] [Sump Pump] initialised with id [7E:87:CE:BC:1F:5F:00:63:18] [H5054].
[3/11/2024, 7:14:04 AM] [Govee] [Dishwasher Water Line] initialising with options {}.
[3/11/2024, 7:14:04 AM] [Govee] [Dishwasher Water Line] initialised with id [B6:8A:0A:C2:A4:CB:00:BF:F0] [H5054].
[3/11/2024, 7:14:04 AM] [Govee] [Dishwasher Drain] initialising with options {}.
[3/11/2024, 7:14:04 AM] [Govee] [Dishwasher Drain] initialised with id [B6:8A:0A:C2:A4:CB:00:C2:56] [H5054].
[3/11/2024, 7:14:04 AM] [Govee] [Kitchen Sink] initialising with options {}.
[3/11/2024, 7:14:04 AM] [Govee] [Kitchen Sink] initialised with id [B6:8A:0A:C2:A4:CB:00:BF:E4] [H5054].
[3/11/2024, 7:14:04 AM] [Govee] [Bulb Thermometer] initialising with options {"lowBattThreshold":20}.
[3/11/2024, 7:14:04 AM] [Govee] [Bulb Thermometer] initialised with id [E0:5A:1B:7D:D9:72:98:4A] [H5179].
[3/11/2024, 7:14:04 AM] [Govee] [BLE] sync for thermo-hygrometer sensors disabled as required hardware/packages not available.
[3/11/2024, 7:14:05 AM] [Govee] [Breezeway Thermometer] current humidity [53.2%].
[3/11/2024, 7:14:05 AM] [Govee] [Flower Fridge] current temperature [6.7°C / 44.1°F].
[3/11/2024, 7:14:05 AM] [Govee] [Flower Fridge] current humidity [95.1%].
[3/11/2024, 7:14:05 AM] [Govee] [Greenhouse Thermometer] current temperature [5.4°C / 41.7°F].
[3/11/2024, 7:14:05 AM] [Govee] [Greenhouse Thermometer] current humidity [57.6%].
[3/11/2024, 7:14:05 AM] [Govee] [Bulb Thermometer] current temperature [3.1°C / 37.6°F].
[3/11/2024, 7:14:05 AM] [Govee] [Bulb Thermometer] current humidity [76.6%].
[3/11/2024, 7:14:05 AM] [Govee] ✓ Setup complete. This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful!
[3/11/2024, 7:14:05 AM] [Homebridge UI] Terminal session ended.
[3/11/2024, 7:14:22 AM] [Alexa] ERROR: HAP Discovery failed, please review config

Configuration

{
    "bridge": {
        "name": "Homebridge 2787",
        "username": "0E:88:3A:A4:27:87",
        "port": 51405,
        "pin": "660-03-306",
        "advertiser": "avahi",
        "bind": [
            "eth0"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "dark-mode-red",
            "tempUnits": "f",
            "lang": "auto",
            "platform": "config"
        },
        {
            "name": "Govee",
            "username": "username",
            "password": "password",
            "platform": "Govee",
            "_bridge": {
                "username": "0E:94:51:2E:55:63",
                "port": 59398
            }
        },
        {
            "name": "Alexa",
            "username": "username",
            "password": "password",
            "pin": "660-03-306",
            "refresh": 900,
            "keepalive": 5,
            "CloudTransport": "mqtts",
            "deviceListHandling": "none",
            "platform": "Alexa",
            "_bridge": {
                "username": "0E:3A:0E:36:AD:D5",
                "port": 41369
            }
        }
    ],
    "disabledPlugins": []
}

Environment

Process Supervisor

Docker (Mention image name in Additional Context)

Additional Context

No response

HTCooper94 commented 3 months ago

username’s and password’s were modified for security, but I assure you they are correct.

NorthernMan54 commented 3 months ago

On first pass a couple of possibilities come up

1 - The network connection to the cloud servers is being blocked / not getting thru, try the other options under Advanced Setting --> Cloud Server Connection Transport

2 - Your username / password contains a character or something that breaks the connection, try simplifying your password. Alternatively, reach out to me directly via the Homebridge Discord server, and share the details.

3 - A typo