oznu / homebridge-gsh

Allow Google Assistant to control your Homebridge accessories.
https://assistant.google.com/services/a/uid/000000b558f0d5d1?hl=en
GNU General Public License v3.0
399 stars 55 forks source link

Demon homebridge change on NOK himself #173

Open MadjestiK59 opened 2 years ago

MadjestiK59 commented 2 years ago

Describe Your Problem: Sometimes the DEMON of HOMEBRIDGE change on NOK after 3/4 days Nebz, the developer plugin homebridge for jeedom say :"it"'s problem with homebridge-gsh"

Could you help me ?

Logs:`

Show the Homebridge logs here: 

[7/30/2022, 11:24:28 AM] [Google Smart Home] Received QUERY intent
[7/30/2022, 11:41:28 AM] [Google Smart Home] Received QUERY intent
[7/30/2022, 11:41:29 AM] [Google Smart Home] Received QUERY intent
[7/30/2022, 11:43:58 AM] [Google Smart Home] Received QUERY intent
[7/30/2022, 11:46:48 AM] [Google Smart Home] Received QUERY intent
[7/30/2022, 11:46:49 AM] [Google Smart Home] Received QUERY intent
[7/30/2022, 12:26:47 PM] [Google Smart Home] Received QUERY intent
[7/30/2022, 12:26:48 PM] [Google Smart Home] Received QUERY intent
[7/30/2022, 12:29:27 PM] [Google Smart Home] Received QUERY intent
[7/30/2022, 12:31:42 PM] [Google Smart Home] Received SYNC intent
[7/30/2022, 12:31:43 PM] [Google Smart Home] Received SYNC intent
[7/30/2022, 12:36:56 PM] [Google Smart Home] Received QUERY intent
[7/30/2022, 12:38:25 PM] [Google Smart Home] Received QUERY intent
[7/30/2022, 12:38:26 PM] [Google Smart Home] Received QUERY intent
[7/30/2022, 12:44:21 PM] [Google Smart Home] Received QUERY intent
[7/30/2022, 12:44:22 PM] [Google Smart Home] Received QUERY intent
[7/30/2022, 12:46:50 PM] [Google Smart Home] Received QUERY intent
[7/31/2022, 12:04:09 AM] TypeError: Cannot read properties of undefined (reading 'uniqueId')
    at Hap.<anonymous> (/usr/lib/node_modules/homebridge-gsh/src/hap.ts:485:22)
    at Generator.next (<anonymous>)
    at /usr/lib/node_modules/homebridge-gsh/dist/hap.js:27:71
    at new Promise (<anonymous>)
    at __awaiter (/usr/lib/node_modules/homebridge-gsh/dist/hap.js:23:12)
    at Hap.processPendingStateReports (/usr/lib/node_modules/homebridge-gsh/dist/hap.js:404:16)
    at SafeSubscriber._next (/usr/lib/node_modules/homebridge-gsh/src/hap.ts:118:14)
    at SafeSubscriber.__tryOrUnsub (/usr/lib/node_modules/homebridge-gsh/node_modules/rxjs/src/internal/Subscriber.ts:265:10)
    at SafeSubscriber.next (/usr/lib/node_modules/homebridge-gsh/node_modules/rxjs/src/internal/Subscriber.ts:207:14)
    at Subscriber._next (/usr/lib/node_modules/homebridge-gsh/node_modules/rxjs/src/internal/Subscriber.ts:139:22)
[7/31/2022, 12:04:09 AM] Got SIGTERM, shutting down Homebridge...

Homebridge Config:


`{
    "bridge": {
        "name": "Jeedom",
        "username": "7E:C3:B9:DA:DF:52",
        "port": 51826,
        "pin": "031-45-154",
        "manufacturer": "Jeedom",
        "model": "Homebridge",
        "serialNumber": "7E:C3:B9:DA:DF:52",
        "setupID": "DF52",
        "advertiser": "bonjour-hap"
    },
    "description": "Fichier généré par le plugin homebridge, toute modification sera écrasée après sauvegarde, utilisez la configuration du plugin et les plateformes et accessoires supplémentaires",
    "platforms": [
        {
            "platform": "Jeedom",
            "name": "Jeedom",
            "url": "http://192.*.*.*",
            "apikey": "***",
            "pollerperiod": 0.05,
            "fakegato": false,
            "adaptiveEnabled": true,
            "debugLevel": "400",
            "myPlugin": "homebridge",
            "magicField": "NBPx/38Y48kHg"
        },
        {
            "platform": "config",
            "name": "Config",
            "port": 33221,
            "auth": "none",
            "restart": "sudo wget http://192.168.2.14/core/api/jeeApi.php?request=%7B%22jsonrpc%22%3A%222.0%22%2C%22id%22%3A%22123%22%2C%22method%22%3A%22plugin%3A%3AdeamonStart%22%2C%22params%22%3A%7B%22plugin_id%22%3A%22homebridge%22%2C%22apikey%22%3A%224GaPRjgeqb4KSIpKbsq7YcsBiaDevIGD1eW1SgeWJjI2swA9uRVrQbQuT4h0N4lP%22%2C%22debug%22%3Atrue%2C%22forceRestart%22%3Atrue%7D%7D -O /dev/null",
            "theme": "green",
            "tempUnits": "c",
            "lang": "fr",
            "sudo": true,
            "debug": false,
            "homebridgePackagePath": "/var/www/html/plugins/homebridge/core/class/../../resources/node_modules/homebridge/",
            "log": {
                "method": "file",
                "path": "/var/www/html/core/class/../../log/homebridge_daemon"
            },
            "accessoryControl": {
                "debug": false
            },
            "scheduledBackupDisable": true
        },
        {
            "name": "Google Smart Home",
            "platform": "google-smarthome",
            "token": "***",
            "twoFactorAuthPin": "***",
            "notice": "Keep your token a secret!"
        },
        {
            "platform": "Camera-ffmpeg",
            "cameras": [
                {
                    "name": "CamIP Box Frime",
                    "manufacturer": "Foscam",
                    "model": "C1/C2",
                    "serialNumber": "78-192.168.*.***",
                    "videoConfig": {
                        "source": "***",
                        "stillImageSource": "****",
                        "maxStreams": 2,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "vcodec": "libx264",
                        "audio": true
                    }
                },
                {
                    "name": "CamIP Séjour",
                    "manufacturer": "Foscam",
                    "model": "C1/C2",
                    "serialNumber": "50-192.168.*.***",
                    "videoConfig": {
                        "source": "****",
                        "stillImageSource": "****",
                        "maxStreams": 2,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 8,
                        "vcodec": "libx264",
                        "audio": true
                    }
                },
                {
                    "name": "CamIP Garage",
                    "serialNumber": "51-192.168.2.172",
                    "videoConfig": {
                        "source": "***",
                        "maxStreams": 2,
                        "vcodec": "libx264"
                    }
                }
            ]
        }
    ],
    "accessories": []
}`

Screenshots:

Environment: