Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error seen when restarting child bridge for accessories that are published as External (TV accessory) #130

Open
valiquette opened this issue Sep 10, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@valiquette
Copy link

Describe The Bug:
When a child bridge for any plugin supporting an External TV accessory (platform accessories are ok) there will be a repeating nodejs error info message seen in the log. This message will be seen until the homebridge-gsh plugin is also restarted.

To Reproduce:
Restart External Accessory chile bridge

Expected behavior:
Expect not to see nodes error repeating on a loop

Logs:

homebridge.log-3.txt

Homebridge Config:

{
    "bridge": {
        "name": "Homebridge 9852",
        "username": "0E:53:85:61:98:52",
        "port": 51245,
        "pin": "628-83-080",
        "advertiser": "ciao",
        "bind": [
            "eth0"
        ]
    },
    "accessories": [
        {
            "name": "Pi-Hole",
            "auth": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
            "ssl": false,
            "rejectUnauthorized": true,
            "host": "192.168.188.225",
            "port": 80,
            "baseDirectory": "/admin/",
            "time": 300,
            "reversed": false,
            "logLevel": 1,
            "accessory": "Pihole"
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "dark-mode",
            "tempUnits": "f",
            "lang": "auto",
            "loginWallpaper": "/home/pi/moab.jpeg",
            "debug": false,
            "platform": "config"
        },
        {
            "name": "Living Room",
            "hubIP": "192.168.188.205",
            "hubName": "Living Room",
            "publishAllTVAsExternalAccessory": true,
            "TVAccessory": true,
            "mainActivity": "Cable",
            "switchAccessories": false,
            "publishGeneralMuteSwitch": false,
            "publishGeneralVolumeSlider": false,
            "linkVolumeControlToTV": true,
            "publishSwitchActivitiesAsIndividualAccessories": true,
            "showCommandsAtStartup": false,
            "otherPlatforms": [
                {
                    "name": "Loft",
                    "hubIP": "192.168.188.206",
                    "hubName": "Loft",
                    "TVAccessory": true,
                    "mainActivity": "Apple TV",
                    "switchAccessories": false,
                    "publishGeneralMuteSwitch": false,
                    "publishGeneralVolumeSlider": false,
                    "linkVolumeControlToTV": true,
                    "publishSwitchActivitiesAsIndividualAccessories": true,
                    "showCommandsAtStartup": false
                }
            ],
            "_bridge": {
                "name": "Harmony Remote",
                "username": "0E:2C:EC:4B:25:BA",
                "port": 58174
            },
            "platform": "HarmonyHubWebSocket"
        },
        {
            "name": "Google Smart Home",
            "token": "xxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxx",
            "notice": "Keep your token a secret!",
            "accessoryFilter": [
                "Living Room",
                "Loft"
            ],
            "platform": "google-smarthome"
        },
        {
            "devices": [
                {
                    "name": "LG OLED-55 TV",
                    "ip": "192.168.188.166",
                    "mac": "18:83:bf:9e:5d:c2",
                    "pollingInterval": 5,
                    "volumeLimit": 100,
                    "volumeControl": "none",
                    "channelControl": false,
                    "mediaControl": false
                },
                {
                    "name": "LG OLED-65 TV",
                    "ip": "192.168.188.219",
                    "mac": "ac:f1:08:cc:5e:fc",
                    "pollingInterval": 5,
                    "volumeLimit": 100,
                    "volumeControl": "none",
                    "channelControl": false,
                    "mediaControl": false
                }
            ],
            "_bridge": {
                "name": "LG WebOS-TV",
                "username": "0E:49:B6:2D:5B:34",
                "port": 43897
            },
            "platform": "webostv"
        },
        {
            "devices": [
                {
                    "name": "Home Theater",
                    "host": "192.168.188.109",
                    "port": 8080,
                    "refreshInterval": 5,
                    "zoneControl": 0,
                    "volumeControl": 0,
                    "masterPower": true,
                    "masterVolume": false,
                    "masterMute": false,
                    "switchInfoMenu": false,
                    "disableLogInfo": true,
                    "inputs": [
                        {
                            "name": "Xfinity",
                            "reference": "SAT/CBL",
                            "mode": "SI"
                        },
                        {
                            "name": "Apple TV",
                            "reference": "8K",
                            "mode": "SI"
                        },
                        {
                            "name": "Blu-Ray",
                            "reference": "BD",
                            "mode": "SI"
                        },
                        {
                            "name": "HEOS",
                            "reference": "NET",
                            "mode": "SI"
                        },
                        {
                            "name": "Amazon Fire TV",
                            "reference": "MPLAY",
                            "mode": "SI"
                        },
                        {
                            "name": "Sirius XM",
                            "reference": "QUICK4",
                            "mode": "MS"
                        }
                    ],
                    "manufacturer": "Denon",
                    "modelName": "AVR-X4700H"
                }
            ],
            "_bridge": {
                "name": "Denon-TV",
                "username": "0E:33:41:4D:7A:43",
                "port": 37116
            },
            "platform": "DenonTv"
        },
        {
            "name": "Rachio",
            "api_key": "xxxxxxxxxxxx-xxxxx-xxxx-xxxxxxxxx-xxxxxxxxxx",
            "default_runtime": 3,
            "use_irrigation_display": true,
            "show_standby": true,
            "show_runall": true,
            "show_schedules": true,
            "external_IP_address": "76.1.1.1",
            "external_webhook_port": 12456,
            "internal_webhook_port": 27546,
            "use_basic_auth": true,
            "user": "user",
            "password": "password",
            "delete_webhooks": false,
            "_bridge": {
                "username": "0E:E2:F4:D1:E1:23",
                "port": 32046
            },
            "platform": "rachio"
        },
        {
            "name": "Orbit",
            "email": "email@gmail.com",
            "password": "password",
            "_bridge": {
                "username": "0E:AF:1C:A0:10:98",
                "port": 40804
            },
            "platform": "orbit"
        }
    ],
    "disabledPlugins": []
}

Screenshots:
message seen in the log. Note the port is random following any child bridge restart.

Error: from server 192.168.188.225:46579 Error: connect ECONNREFUSED 192.168.188.225:46579
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '192.168.188.225',
port: 46579
}

Environment:

  • Node.js Version: v14.17.6
  • NPM Version: v7,23,0
  • Homebridge Version: v1.3.4
  • Homebridge GSH Plugin Version:homebridge-gsh v2.1.0
  • Homebridge Config UI X Plugin Version:homebridge-config-ui-x v4.41.2
  • Operating System: Raspbian GNU/Linux Buster (10)
@valiquette valiquette added the bug Something isn't working label Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant