bloomkd46 / homebridge-XfinityHome

A Repository For Controlling Your Xfinity Home System and Devices
Apache License 2.0
11 stars 0 forks source link

Support Request: Question Regarding Response Times #43

Closed jmnovak50 closed 1 month ago

jmnovak50 commented 2 months ago

Describe Your Problem:

Hi,

I had a question and perhaps you can answer it for me. I've noticed the response times for any particular device to be relatively long but I'm not sure if this is expected behavior. For axample, I've noticed any particular door or window sensor changes to register in homebridge on average 1-2 minutes from when they occur. Is this normal behavior?

Expected behavior:

I'd expect these changes to be on the order of seconds from when they actually occur.

Logs:

N/A as of yet.  I'm not seeing anything unusual coming from the logs.  Currently set to 3.

Config:

{
    "bridge": {
        "name": "Homebridge 7869",
        "username": "0E:27:42:C6:78:69",
        "port": 51899,
        "pin": "337-29-201",
        "advertiser": "ciao",
        "bind": [
            "eth0"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "f",
            "lang": "auto",
            "platform": "config"
        },
        {
            "name": "Harmony Hub",
            "hubIP": "192.168.1.XX",
            "DELAY_BEFORE_RETRY_AFTER_NETWORK_LOSS": 60000,
            "HUB_CONNECT_TIMEOUT": 10000,
            "HUB_SEND_TIMEOUT": 30000,
            "TVAccessory": true,
            "sortInput": 0,
            "switchAccessories": true,
            "publishGeneralMuteSwitch": true,
            "publishGeneralVolumeSlider": true,
            "linkVolumeControlToTV": true,
            "otherPlatforms": [
                {
                    "TVAccessory": false,
                    "sortInput": 0
                }
            ],
            "_bridge": {
                "username": "0E:A3:DB:A3:95:6A",
                "port": 34350
            },
            "platform": "HarmonyHubWebSocket"
        },
        {
            "name": "Nest",
            "googleAuth": {
                "issueToken": "https://accounts.google.com/o/oauth2/iframerpc?action=issueToken&response_type=XXX",
                "cookies": "XXX"
            },
            "_bridge": {
                "username": "0E:DA:71:19:6B:78",
                "port": 54198
            },
            "platform": "Nest"
        },
        {
            "units": "us",
            "interval": 5,
            "stations": [
                {
                    "nameNow": "Highland Park",
                    "service": "openweathermap",
                    "key": "d8c2ca9c49f6f8fe2b30a21c820c08ad",
                    "locationGeo": [
                        42.178995438801536,
                        -87.83265986921101
                    ],
                    "locationCity": "Highland Park, US",
                    "language": "en",
                    "compatibility": "home",
                    "forecast": [
                        "Today"
                    ],
                    "conditionCategory": "simple",
                    "now": true,
                    "extraHumidity": false,
                    "hidden": [
                        "Air Pressure",
                        "Cloud Cover",
                        "Dew Point",
                        "Forecast Day",
                        "Rain",
                        "Snow",
                        "Temperature Min",
                        "Temperature Apparent"
                    ]
                }
            ],
            "_bridge": {
                "username": "0E:3A:44:CA:D2:51",
                "port": 58774
            },
            "platform": "WeatherPlus"
        },
        {
            "devices": [
                {
                    "name": "Basement TV",
                    "ip": "192.168.1.177",
                    "mac": "24:FC:E5:2F:67:AA",
                    "inputs": [
                        {
                            "type": "app",
                            "name": "Apple TV",
                            "value": "3201807016597"
                        },
                        {
                            "type": "app",
                            "name": "Plex",
                            "value": "3201512006963"
                        },
                        {
                            "type": "app",
                            "name": "Xfinity Stream",
                            "value": "3201803015836"
                        }
                    ]
                }
            ],
            "_bridge": {
                "username": "0E:43:7E:2B:35:BC",
                "port": 56656
            },
            "platform": "SamsungTizen"
        },
        {
            "pruning": {
                "pruneMissingCachedAccessories": true,
                "restartsBeforeMissingAccessoriesPruned": 3,
                "pruneAllAccessoriesNextRestart": false
            },
            "whiteEffects": {
                "simultaniousDevicesColorWhite": false,
                "colorWhiteThreshold": 10,
                "colorWhiteThresholdSimultaniousDevices": 50,
                "colorOffThresholdSimultaniousDevices": 5
            },
            "deviceManagement": {
                "blacklistOrWhitelist": "blacklist"
            },
            "advancedOptions": {
                "periodicDiscovery": false,
                "namesWithMacAddress": false,
                "logLevel": 3
            },
            "_bridge": {
                "username": "0E:A1:4B:9B:BC:54",
                "port": 56675
            },
            "platform": "homebridge-magichome-dynamic-platform"
        },
        {
            "devices": [
                {
                    "type": "GarageDoor",
                    "name": "Double Car Garage Door",
                    "id": "XXX",
                    "key": "YYY",
                    "manufacturer": "eKyro 2",
                    "model": "Smart Garage Door Controller",
                    "dpAction": 1,
                    "dpStatus": 3
                },
                {
                    "type": "RGBTWLight",
                    "name": "Falyn’s Bedroom Table Lamp",
                    "id": "XXX",
                    "key": "YYY",
                    "manufacturer": "HUGOAI",
                    "model": "HG02",
                    "dpPower": 20,
                    "dpBrightness": 22,
                    "dpColorTemperature": 23,
                    "dpMode": 21,
                    "dpColor": 24,
                    "colorFunction": "HSB",
                    "scaleBrightness": 1000,
                    "scaleWhiteColor": 1000
                },
                {
                    "type": "SimpleDimmer",
                    "name": "Backyard String Lights",
                    "id": "XXX",
                    "key": "YYY",
                    "manufacturer": "Otdair",
                    "model": "39122206",
                    "scaleBrightness": 1000
                },
                {
                    "type": "RGBTWLight",
                    "name": "Jason’s Table Lamp",
                    "id": "XXX",
                    "key": "YYY",
                    "manufacturer": "AUKEY",
                    "model": "Smart LED Lamp",
                    "dpPower": 1,
                    "dpBrightness": 3,
                    "dpColorTemperature": 4,
                    "dpMode": 2,
                    "dpColor": 5,
                    "colorFunction": "HEXHSB",
                    "scaleBrightness": 255,
                    "scaleWhiteColor": 255
                },
                {
                    "type": "SimpleDimmer",
                    "name": "Falyn Bedroom Main",
                    "id": "XXX",
                    "key": "YYY",
                    "manufacturer": "Dimmer Switch",
                    "model": "DS02S",
                    "scaleBrightness": 1000
                },
                {
                    "type": "GarageDoor",
                    "name": "Single Car Garage Door",
                    "id": "XXX",
                    "key": "YYY",
                    "manufacturer": "eKyro 1",
                    "model": "DP-WG001-US",
                    "dpAction": 1,
                    "dpStatus": 3,
                    "flipState": false
                }
            ],
            "_bridge": {
                "username": "0E:86:EC:01:3A:75",
                "port": 47363
            },
            "platform": "TuyaLan"
        },
        {
            "name": "Rachio",
            "api_key": "XXX",
            "default_runtime": 10,
            "runtime_source": 0,
            "use_irrigation_display": true,
            "show_standby": false,
            "show_runall": false,
            "show_schedules": false,
            "internal_IP_address": "127.0.0.1",
            "auto_correct_IP": false,
            "external_webhook_port": 12453,
            "internal_webhook_port": 27546,
            "use_basic_auth": false,
            "delete_webhooks": false,
            "showAPIMessages": false,
            "showWebhookMessages": false,
            "valveType": 0,
            "showBridge": false,
            "showControllers": true,
            "showValves": true,
            "liveRefreshTimeout": 2,
            "liveRefreshRate": 20,
            "platform": "rachio",
            "_bridge": {
                "username": "0E:32:86:CA:3E:C5",
                "port": 45148
            }
        },
        {
            "exposeAirQuality": true,
            "exposeAmbientLight": true,
            "exposePlasmawave": true,
            "exposeAutoSwitch": true,
            "exposeSleepSwitch": false,
            "filterReplacementIndicatorPercentage": 1,
            "cacheIntervalSeconds": 60,
            "deviceRefreshIntervalMinutes": 60,
            "auth": {
                "username": "xxx@xx",
                "password": "XXX",
                "userId": "XXX"
            },
            "deviceOverrides": [
                {
                    "deviceId": "8472074F2E50_1655lt7ldd",
                    "nameDevice": "Winix Master"
                }
            ],
            "_bridge": {
                "username": "0E:27:2F:C3:A2:35",
                "port": 47807
            },
            "platform": "WinixPurifiers"
        },
        {
            "name": "Xfinity Home",
            "refreshToken": "XXX",
            "pin": "YYY",
            "temperatureSensors": true,
            "logLevel": 3,
            "logWatchdogErrors": true,
            "_bridge": {
                "username": "0E:7A:57:D9:7D:66",
                "port": 58079
            },
            "platform": "XfinityHomePlatform"
        }
    ],
    "disabledPlugins": [
        "homebridge-mqttthing",
        "homebridge-tuya-platform",
        "homebridge-tuya-lan"
    ]
}

Operating System:

Raspberian

Node Version:

20.17.0

NPM Version:

10.8.2

Homebridge Version:

1.8.4

Plugin Version:

3.5.1

bloomkd46 commented 1 month ago

Sorry for the delay, this issue got lost at the bottom of my inbox. Unfortunately, this is a limitation of Xfinity. The plugin notifies HomeKit of changes when notified by Xfinity. But, even in my own testing I noticed that everyone once in a while it would wait a few minutes, then send through everything that happened. In which case, the plugin notifies HomeKit in the order of which they occurred, but HomeKit doesn’t support telling it what time the events happened