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

8.0.1: "Removing stale Characteristics" warnings #325

Open
1 task done
jostrasser opened this issue Nov 23, 2023 · 6 comments · May be fixed by #353
Open
1 task done

8.0.1: "Removing stale Characteristics" warnings #325

jostrasser opened this issue Nov 23, 2023 · 6 comments · May be fixed by #353
Labels

Comments

@jostrasser
Copy link

jostrasser commented Nov 23, 2023

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

After updating the plugin to 8.0.1, Homebridge did not start.
I removed my HS110 plugs from the cache on Homebridge, Homebridge came up afterwards.

Now I can see the following warnings, see logs.
I added the "switch models" to the json, but this did not solved the issue.

What, if anything, has recently changed?

Plugin version update to 8.0.1
Updated node from 20.9.0 to 20.10.0

Version

8.0.1

Node Version

20.10.0

Homebridge Version

1.7.0

Which OS/Platform?

Linux

Relevant log output

Bridge broken before removing the cached devices:

Log:

[23/11/2023, 12:47:46] TypeError: Cannot read properties of undefined (reading 'getCharacteristic')
    at Accessory._sideloadServices (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:1800:13)
    at Function.Accessory.deserialize (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:2188:15)
    at Function.deserialize (/var/lib/homebridge/node_modules/homebridge/src/platformAccessory.ts:172:33)
    at /var/lib/homebridge/node_modules/homebridge/src/bridgeService.ts:240:34
    at Array.map (<anonymous>)
    at BridgeService.loadCachedPlatformAccessoriesFromDisk (/var/lib/homebridge/node_modules/homebridge/src/bridgeService.ts:239:58)
    at Server.start (/var/lib/homebridge/node_modules/homebridge/src/server.ts:170:5)
[23/11/2023, 12:47:46] Got SIGTERM, shutting down Homebridge...
[23/11/2023, 12:47:46] AssertionError [ERR_ASSERTION]: Cannot generate setupURI on an accessory that isn't published yet!
    at Bridge.Accessory.setupURI (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:994:11)
    at Server.setServerStatus (/var/lib/homebridge/node_modules/homebridge/src/server.ts:155:45)
    at Server.teardown (/var/lib/homebridge/node_modules/homebridge/src/server.ts:199:10)
    at signalHandler (/var/lib/homebridge/node_modules/homebridge/src/cli.ts:93:12)
    at process.emit (node:events:514:28)
    at process.emit (/var/lib/homebridge/node_modules/homebridge/node_modules/source-map-support/source-map-support.js:516:21)
[23/11/2023, 12:47:51] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null

Now, after removing the cached devices:

[23/11/2023, 12:58:36] [TplinkSmarthome] Device First Online: [TPLink-Badezimmer] plug [80063AD2B22A28EF9F3A68643B6E8ED21D920223] 192.168.20.212 9999
[23/11/2023, 12:58:36] [TplinkSmarthome] Adding: [TPLink-Badezimmer] plug [80063AD2B22A28EF9F3A68643B6E8ED21D920223]
[23/11/2023, 12:58:36] [TplinkSmarthome] [TPLink-Badezimmer] Removing stale Characteristic: [Outlet.Brightness] uuid:[00000008-0000-1000-8000-0026BB765291]
[23/11/2023, 12:58:36] [TplinkSmarthome] Device First Online: [TPLink-Wohnzimmer] plug [8006FED22EE15717FC3D7907C85E3F091D8084C8] 192.168.20.211 9999
[23/11/2023, 12:58:36] [TplinkSmarthome] Adding: [TPLink-Wohnzimmer] plug [8006FED22EE15717FC3D7907C85E3F091D8084C8]
[23/11/2023, 12:58:36] [TplinkSmarthome] [TPLink-Wohnzimmer] Removing stale Characteristic: [Outlet.Brightness] uuid:[00000008-0000-1000-8000-0026BB765291]

Configuration

{
    "name": "TplinkSmarthome",
    "addCustomCharacteristics": true,
    "switchModels": [
        "HS110"
    ],
    "deviceTypes": [
        "plug",
        "bulb"
    ],
    "macAddresses": [
        "84:D8:1B:20:A0:E5",
        "84:D8:1B:C1:F6:31"
    ],
    "devices": [
        {
            "host": "192.168.20.211"
        },
        {
            "host": "192.168.20.212"
        }
    ],
    "devicesUseDiscoveryPort": false,
    "platform": "TplinkSmarthome"
}
@jostrasser jostrasser added the bug label Nov 23, 2023
@salmundo11
Copy link

Same here with 8.0.1:

22/11/2023, 17:29:19] [TplinkSmarthome] [Ichabod] Removing stale Characteristic: [Outlet.Brightness] uuid:[00000008-0000-1000-8000-0026BB765291]
[22/11/2023, 17:29:19] [TplinkSmarthome] Device First Online: [Holiday 3] plug [8006AEA93AA7186F440B69CE9D32ED26201AFD8C] 192.168.7.158 9999
[22/11/2023, 17:29:19] [TplinkSmarthome] Adding: [Holiday 3] plug [8006AEA93AA7186F440B69CE9D32ED26201AFD8C]
[22/11/2023, 17:29:20] [TplinkSmarthome] [Holiday 3] Removing stale Characteristic: [Outlet.Brightness] uuid:[00000008-0000-1000-8000-0026BB765291]
[22/11/2023, 17:29:20] [TplinkSmarthome] Device First Online: [Spotlight ] plug [800610D2C6346BA47B4FAB20CE0B5A7C1FC43D05] 192.168.7.130 9999
[22/11/2023, 17:29:20] [TplinkSmarthome] Adding: [Spotlight ] plug [800610D2C6346BA47B4FAB20CE0B5A7C1FC43D05]
[22/11/2023, 17:29:20] [TplinkSmarthome] Device First Online: [Shed] plug [8006246EF1A93AF7475B4FBE53A42BB51EA5F8BA] 192.168.7.204 9999
[22/11/2023, 17:29:20] [TplinkSmarthome] Adding: [Shed] plug [8006246EF1A93AF7475B4FBE53A42BB51EA5F8BA]
[22/11/2023, 17:29:20] [TplinkSmarthome] [Shed] Removing stale Characteristic: [Outlet.Brightness] uuid:[00000008-0000-1000-800

Configuration:

{
            "name": "TplinkSmarthome",
            "addCustomCharacteristics": false,
            "deviceTypes": [
                "plug",
                "bulb"
            ],
            "platform": "TplinkSmarthome"
        },

@jlg89
Copy link

jlg89 commented Nov 28, 2023

I see the same "Removing stale Characteristic" warnings for everything that doesn't have brightness control, but all my outlets and switches are working properly (including dimmers). I didn't update from 7.x until 8.0.1, and I don't have any HS110 outlets. I do have HS103 plugs, no issues with those.

@Vader20
Copy link

Vader20 commented Dec 20, 2023

I see the same. Reverted back to 7.X.

@plasticrake
Copy link
Owner

HS110 is a plug, not a switch. You do not want to configure it as a switch

@BBfly1
Copy link

BBfly1 commented Feb 15, 2024

I see the same "Removing stale Characteristic" warnings.
I'm on v8.0.2

@TassiRob
Copy link

I am now on v8.0.3 and still getting the "Removing stale Characteristics" warning for three plugs HS100, HS110 and KP303.
Function is fine , just the warning in the logs.
Has anyone found a solution for this or just ignoring it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants