homebridge-plugins / homebridge-govee

Homebridge plugin to integrate Govee devices into HomeKit.
MIT License
481 stars 49 forks source link

Tap-To-Run entries not showing up when restarting Bridge #908

Open ndimatteo opened 2 weeks ago

ndimatteo commented 2 weeks ago

What issue do you have? Please be as thorough and explicit as possible.

I recently setup my new Hoobs Pro device, and I was initially able to setup a Tap-To-Run entry (in the Govee app), restart my Govee Bridge (via Hoobs), and see it show up in the logs with the AWS ID (scene code) for following this wiki.

However, I've since added more Govee devices, and wanted to apply the same "scene" to those devices. Adding the same AWS ID for the sceneCode of those Light Devices resulted in those scenese not running for those subsequent devices, despite them being added as an action in the associated Govee Tap-To-Run I created.

I figured mixing devices in a Tap-To-Run was maybe an issue, so I setup separate Tap-To-Run entries for each device, but when I restart the Bridge they do not show up in the logs at all. Only the initial Tap-To-Run entry I setup continues to show.

Why is the bridge unable to pickup newly added Tap-To-Run entries? and Why are devices with an associated sceneCode not initializing outside of the Govee app? I'm unable to get this to work at all, despite purging cache, rebooting Hoobs, restarting the bridge numerous times, etc.

Details of your setup.

I'm using HOOBS Pro, I've gone through the visual setup as well as the advanced JSON setup.

Here's what my Config looks like:

{
    "name": "Govee",
    "username": "nick.dimatteo@gmail.com",
    "password": "**********",
    "platform": "Govee",
    "plugin_map": {
        "plugin_name": "homebridge-govee"
    },
    "lightDevices": [
        {
            "label": "Disco",
            "deviceId": "XX:XX:XX:XX:XX:XX:XX:XX",
            "showAs": "default",
            "awsBrightnessNoScale": true,
            "scene": {
                "sceneCode": "ABCDEFGHIJKLMNOPQRSTUVWXYZ=",
                "showAs": "switch"
            }
        },
        {
            "label": "Stage",
            "deviceId": "XX:XX:XX:XX:XX:XX:XX:XX",
            "showAs": "default",
            "awsBrightnessNoScale": true,
            "scene": {
                "sceneCode": "ABCDEFGHIJKLMNOPQRSTUVWXYZ=",
                "showAs": "switch"
            }
        },
        {
            "label": "Hallway Front",
            "deviceId": "XX:XX:XX:XX:XX:XX:XX:XX",
            "showAs": "default",
            "awsBrightnessNoScale": true,
            "scene": {
                "sceneCode": "ABCDEFGHIJKLMNOPQRSTUVWXYZ=",
                "showAs": "switch"
            }
        },
        {
            "label": "Hallway Middle",
            "deviceId": "XX:XX:XX:XX:XX:XX:XX:XX",
            "showAs": "default",
            "awsBrightnessNoScale": true,
            "scene": {
                "sceneCode": "ABCDEFGHIJKLMNOPQRSTUVWXYZ=",
                "showAs": "switch"
            }
        },
        {
            "label": "Hallway Back",
            "deviceId": "XX:XX:XX:XX:XX:XX:XX:XX",
            "showAs": "default",
            "awsBrightnessNoScale": true,
            "scene": {
                "sceneCode": "ABCDEFGHIJKLMNOPQRSTUVWXYZ=",
                "showAs": "switch"
            }
        },
        {
            "label": "Speaker Left",
            "deviceId": "XX:XX:XX:XX:XX:XX:XX:XX",
            "showAs": "default",
            "awsBrightnessNoScale": true,
            "scene": {
                "sceneCode": "ABCDEFGHIJKLMNOPQRSTUVWXYZ=",
                "showAs": "switch"
            }
        },
        {
            "label": "Speaker Right",
            "deviceId": "XX:XX:XX:XX:XX:XX:XX:XX",
            "showAs": "default",
            "awsBrightnessNoScale": true,
            "scene": {
                "sceneCode": "ABCDEFGHIJKLMNOPQRSTUVWXYZ=",
                "showAs": "switch"
            }
        }
    ]
}

Please paste any relevant logs below.

You can see that only One Tap-to-Run scene is getting logged (Clean - Disco), even though I've made 3 others for other Govee devices (i.e. Clean - Speakers, Clean - Stage, and Clean - Hallway).

"02:10:53 PMGovee BridgeGoveeinfoInitialising plugin v10.9.2 | System linux | Node v18.16.1 | HB v1.6.1 | HAPNodeJS v0.11.17...",
    "02:10:53 PMGovee BridgeGoveeinfoPlugin initialised. Setting up accessories....",
    "02:10:56 PMGovee BridgeGoveeinfo[LAN] client enabled and found 6 device(s).",
    "02:10:56 PMGovee BridgeGoveeinfo[HTTP] client enabled and found 10 device(s).",
    "02:10:57 PMGovee BridgeGoveeinfo[AWS] client enabled.",
    "02:10:57 PMGovee BridgeGoveeinfo[BLE] client enabled.",
    "02:10:57 PMGovee BridgeGoveeinfo[Music Sync Box] initialising with options {}.",
    "02:10:57 PMGovee BridgeGoveeinfo[Music Sync Box] initialised with id [XX:XX:XX:XX:XX:XX:XX:XX] [H1162].",
    "02:10:57 PMGovee BridgeGoveeinfo[Speaker Right] initialising with options {\"adaptiveLightingShift\":0,\"aws\":\"enabled\",\"ble\":\"enabled\",\"brightnessStep\":1,\"colourSafeMode\":false,\"lan\":\"enabled\"}.",
    "02:10:57 PMGovee BridgeGoveeinfo[Speaker Right] initialised with id [XX:XX:XX:XX:XX:XX:XX:XX] [H6076].",
    "02:10:57 PMGovee BridgeGoveeinfo[Speaker Left] initialising with options {\"adaptiveLightingShift\":0,\"aws\":\"enabled\",\"ble\":\"enabled\",\"brightnessStep\":1,\"colourSafeMode\":false,\"lan\":\"enabled\"}.",
    "02:10:57 PMGovee BridgeGoveeinfo[Speaker Left] initialised with id [XX:XX:XX:XX:XX:XX:XX:XX] [H6076].",
    "02:10:57 PMGovee BridgeGoveeinfo[Hallway Middle] initialising with options {\"adaptiveLightingShift\":0,\"aws\":\"enabled\",\"ble\":\"enabled\",\"brightnessStep\":1,\"colourSafeMode\":false,\"lan\":\"unsupported\"}.",
    "02:10:57 PMGovee BridgeGoveeinfo[Hallway Middle] initialised with id [XX:XX:XX:XX:XX:XX:XX:XX] [H601C].",
    "02:10:57 PMGovee BridgeGoveeinfo[Hallway Back] initialising with options {\"adaptiveLightingShift\":0,\"aws\":\"enabled\",\"ble\":\"enabled\",\"brightnessStep\":1,\"colourSafeMode\":false,\"lan\":\"unsupported\"}.",
    "02:10:57 PMGovee BridgeGoveeinfo[Hallway Back] initialised with id [XX:XX:XX:XX:XX:XX:XX:XX] [H601C].",
    "02:10:57 PMGovee BridgeGoveeinfo[Hallway Front] initialising with options {\"adaptiveLightingShift\":0,\"aws\":\"enabled\",\"ble\":\"enabled\",\"brightnessStep\":1,\"colourSafeMode\":false,\"lan\":\"unsupported\"}.",
    "02:10:57 PMGovee BridgeGoveeinfo[Hallway Front] initialised with id [XX:XX:XX:XX:XX:XX:XX:XX] [H601C].",
    "02:10:57 PMGovee BridgeGoveeinfo[Stage] initialising with options {\"adaptiveLightingShift\":0,\"aws\":\"enabled\",\"ble\":\"enabled\",\"brightnessStep\":1,\"colourSafeMode\":false,\"lan\":\"enabled\"}.",
    "02:10:57 PMGovee BridgeGoveeinfo[Stage] initialised with id [XX:XX:XX:XX:XX:XX:XX:XX] [H7060].",
    "02:10:57 PMGovee BridgeGoveeinfo[Windows] initialising with options {\"adaptiveLightingShift\":0,\"aws\":\"enabled\",\"ble\":\"enabled\",\"brightnessStep\":1,\"colourSafeMode\":false,\"lan\":\"enabled\"}.",
    "02:10:57 PMGovee BridgeGoveeinfo[Windows] initialised with id [XX:XX:XX:XX:XX:XX:XX:XX] [H7060].",
    "02:10:57 PMGovee BridgeGoveeinfo[Disco] initialising with options {\"adaptiveLightingShift\":0,\"aws\":\"enabled\",\"ble\":\"enabled\",\"brightnessStep\":1,\"colourSafeMode\":false,\"lan\":\"enabled\"}.",
    "02:10:57 PMGovee BridgeGoveeinfo[Disco] initialised with id [XX:XX:XX:XX:XX:XX:XX:XX] [H7021].",
    "02:10:57 PMGovee BridgeGoveeinfo[Bed] initialising with options {\"adaptiveLightingShift\":0,\"aws\":\"enabled\",\"ble\":\"enabled\",\"brightnessStep\":1,\"colourSafeMode\":false,\"lan\":\"enabled\"}.",
    "02:10:57 PMGovee BridgeGoveeinfo[Bed] initialised with id [XX:XX:XX:XX:XX:XX:XX:XX] [H61A5].",
    "02:10:58 PMGovee BridgeGoveeinfo[Disco] [Clean - Disco] [AWS] ABCDEFGHIJKLMNOPQRSTUVWXYZ=",
    "02:10:58 PMGovee BridgeGoveeinfo[Disco] [Clean - Disco] [BLE] undefined",
    "02:10:58 PMGovee BridgeGoveeinfo✓ Setup complete. This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful!",