Coder Social home page Coder Social logo

Comments (9)

derek-miller avatar derek-miller commented on June 22, 2024 1

No worries! Glad you figured it out. Let me know if you hit any other issues.

from homebridge-genie-aladdin-connect.

derek-miller avatar derek-miller commented on June 22, 2024

The genie API is pretty flaky. Is it consistently doing this or is this the first time you are trying it?

from homebridge-genie-aladdin-connect.

andywaplinger avatar andywaplinger commented on June 22, 2024

I've restarted Homebridge multiple times, so it's doing this consistently.

from homebridge-genie-aladdin-connect.

derek-miller avatar derek-miller commented on June 22, 2024

Hmm I just tried to reproduce it and it works for me. Is it possible anything in your network might be blocking certain outbound requests?

from homebridge-genie-aladdin-connect.

andywaplinger avatar andywaplinger commented on June 22, 2024

Weird, I don't block outbound requests on any of my devices, so I doubt it's something like that.

Is the name supposed to be something specific from my Aladdin account? Or is that what I want it to say within Homebridge?

from homebridge-genie-aladdin-connect.

derek-miller avatar derek-miller commented on June 22, 2024

Can you give me some more info about your setup? See https://github.com/derek-miller/homebridge-genie-aladdin-connect/blob/master/.github/ISSUE_TEMPLATE/bug-report.md for context.

from homebridge-genie-aladdin-connect.

andywaplinger avatar andywaplinger commented on June 22, 2024

One thing to note is that I was using the other Aladdin Homebridge plugin homebridge-aladdin-connect-garage-door but I disabled it after I installed your plugin. I'm happy to delete it entirely as a next step if there are no other debugging options.

Describe The Bug: OAuth login timeout

To Reproduce: Installed plugin, filled in login fields, restarted Homebridge

Expected behavior: Log into Aladdin and display garage doors in Apple Home

Logs (can provide more, but I don't see any errors or possible issues with other plugins in the logs):

[4/22/2022, 10:40:24 AM] [Garage Doors] [API] An error occurred getting oauth token; timeout of 5000ms exceeded
[4/22/2022, 10:40:24 AM] [Garage Doors] [API] An error occurred getting devices from account; timeout of 5000ms exceeded
[4/22/2022, 10:40:24 AM] [Garage Doors] Failed to load doors from account; skipping discovery

Plugin Config:

{
    "bridge": {
        "name": "Homebridge",
        "username": "[REDACTED]",
        "port": 51409,
        "pin": "[REDACTED]"
    },
    "description": "AW Home",
    "platforms": [
        {
            "name": "Config",
            "port": 8080,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "f",
            "lang": "auto",
            "platform": "config"
        },
        {
            "name": "Harmony Hub",
            "hubIP": "[REDACTED]",
            "DELAY_BEFORE_RETRY_AFTER_NETWORK_LOSS": 60000,
            "HUB_CONNECT_TIMEOUT": 10000,
            "HUB_SEND_TIMEOUT": 30000,
            "cleanCache": false,
            "TVAccessory": true,
            "sortInput": 3,
            "mainActivity": "Watch Apple TV",
            "activitiesToPublishAsInputForTVMode": [
                "Watch Apple TV",
                "Listen to Sonos",
                "Turn on Minilith",
                "Play Xbox",
                "Play PS3",
                "Listen to Media Room Sonos",
                "Turn on Apfel TV Sonos"
            ],
            "showTurnOffActivity": "false",
            "publishGeneralVolumeSlider": false,
            "publishGeneralVolumeSwitches": false,
            "devicesToPublishAsAccessoriesSwitch": [
                "LG TV|TV"
            ],
            "otherPlatforms": [
                {
                    "sortInput": 0
                }
            ],
            "platform": "HarmonyHubWebSocket"
        },
        {
            "units": "us",
            "interval": 5,
            "stations": [
                {
                    "service": "openweathermap",
                    "key": "[REDACTED]",
                    "locationGeo": [
                        [REDACTED],
                        [REDACTED]
                    ],
                    "locationCity": "[REDACTED]",
                    "language": "en",
                    "compatibility": "home",
                    "nameForecast": "Today",
                    "conditionCategory": "simple",
                    "now": true,
                    "extraHumidity": false,
                    "hidden": [
                        "Air Pressure",
                        "Dew Point",
                        "Humidity",
                        "Rain",
                        "Temperature Min",
                        "Temperature Apparent",
                        "UV Index",
                        "Wind Direction",
                        "Wind Speed"
                    ],
                    "tresholdCloudCover": 75,
                    "tresholdUvIndex": 5,
                    "tresholdWindSpeed": 15
                }
            ],
            "platform": "WeatherPlus"
        },
        {
            "platform": "RFButtons",
            "pin": 2,
            "debounceDelay": 200,
            "buttons": [
                {
                    "name": "Power Off",
                    "codes": [
                        [REDACTED]
                    ]
                },
                {
                    "name": "Guest Power On",
                    "codes": [
                        [REDACTED]
                    ]
                },
                {
                    "name": "Guest Power Off",
                    "codes": [
                        [REDACTED]
                    ]
                }
            ]
        },
        {
            "platform": "EufySecurity",
            "username": "[REDACTED]",
            "password": "[REDACTED]",
            "ignoreStations": [
                "[REDACTED]"
            ],
            "ignoreDevices": [
                "[REDACTED]",
                "[REDACTED]",
                "[REDACTED]"
            ],
            "enableCamera": true,
            "pollingIntervalMinutes": 30,
            "hkHome": 47,
            "hkAway": 47,
            "hkNight": 47,
            "hkOff": 47,
            "enableDetailedLogging": 0
        },
        {
            "name": "Sonos",
            "alarms": false,
            "brightness": true,
            "nameScheme": "%",
            "service": "light",
            "speakers": true,
            "platform": "ZP"
        },
        {
            "platform": "ZPS1"
        },
        {
            "name": "Garage Doors",
            "username": "[REDACTED]",
            "password": "[REDACTED]",
            "batteryLowLevel": 15,
            "userInfoCacheTtl": 3600,
            "doorStatusStationaryCacheTtl": 15,
            "doorStatusTransitioningCacheTtl": 10,
            "doorStatusPollInterval": 30000,
            "logApiResponses": true,
            "platform": "GenieAladdinConnect"
        }
    ],
    "accessories": [
        {
            "accessory": "Plex",
            "name": "Plex",
            "plex_token": "[REDACTED]",
            "host": "[REDACTED]",
            "filter": [
                {
                    "player": "Media Room"
                }
            ]
        },
        {
            "name": "Roomba",
            "model": "960",
            "blid": "[REDACTED]",
            "robotpwd": "[REDACTED]",
            "ipaddress": "[REDACTED]",
            "dockContactSensor": true,
            "runningContactSensor": true,
            "binContactSensor": true,
            "dockingContactSensor": true,
            "homeSwitch": true,
            "stopBehaviour": "pause",
            "accessory": "Roomba2"
        },
        {
            "name": "Homebridge Netatmo Rain Sensor",
            "deviceType": "Switch",
            "netatmoUsername": "[REDACTED]",
            "netatmoPassword": "[REDACTED]",
            "netatmoClientId": "[REDACTED]",
            "netatmoClientSecret": "[REDACTED]",
            "pollingInterval": 60,
            "slidingWindowSize": 30,
            "cooldownInterval": 0,
            "rainSensorSerial": "[REDACTED]",
            "accessory": "homebridge-plugin-netatmo-rain-sensor"
        },
        {
            "name": "Raining Now",
            "stateful": true,
            "reverse": false,
            "time": 60000,
            "resettable": true,
            "accessory": "DummySwitch"
        },
        {
            "name": "Mercedes",
            "username": "[REDACTED]",
            "password": "[REDACTED]",
            "status_update_delay": "25",
            "poll_state_delay": 30,
            "device_number": 1,
            "garage_number": 3,
            "log_polling": true,
            "accessory": "AladdinConnectGarageDoorOpener"
        },
        {
            "name": "M3",
            "username": "[REDACTED]",
            "password": "[REDACTED]",
            "status_update_delay": "25",
            "poll_state_delay": 30,
            "device_number": 1,
            "garage_number": 1,
            "log_polling": true,
            "accessory": "AladdinConnectGarageDoorOpener"
        }
    ],
    "disabledPlugins": [
        "homebridge-magichome-dynamic-platform",
        "homebridge-plex-v2",
        "homebridge-aladdin-connect-garage-door"
    ]
}

Screenshots: In first post

Environment:
Plugin Version: v2.1.4
Homebridge Version: v1.4.0
Node.js Version: v16.14.2
NPM Version: v6.14.15
Operating System: Raspbian GNU/Linux Buster (10)

from homebridge-genie-aladdin-connect.

derek-miller avatar derek-miller commented on June 22, 2024

Are there any logs surrounding the snippet you pasted above? Im looking for warnings about other plugins which might be slowing down homebridge and causing it to fail. Nodejs uses cooperative concurrency control for its promises so another plugin could block longer than the configured timeout in my plugin. You could test this by disabling the other plugins such that only the genie plugin is running.

from homebridge-genie-aladdin-connect.

andywaplinger avatar andywaplinger commented on June 22, 2024

Welp, I feel like an idiot. I just restarted my Pi and your plugin is now working no problem. So much for troubleshooting 101 😆

I really appreciate your help! And I'm super happy to be moving to your plugin from the other one. Thank you!

from homebridge-genie-aladdin-connect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.