plasticrake / homebridge-tplink-smarthome

TP-Link Smarthome Plugin for Homebridge
MIT License
478 stars 70 forks source link

One HS100 Keeps Resetting When Homebridge Restarts #123

Open shancake opened 4 years ago

shancake commented 4 years ago

One of my switches keeps going back to default (both icon and switch type) which breaks my automation and group.

Here's what shows in my CachedAccessories log:

[{"plugin":"homebridge-tplink-smarthome","platform":"TplinkSmarthome","displayName":"Bedroom Lamp Shannon","UUID":"4330da81-8e81-4617-abe7-983fb5091146","category":7,"context":{"deviceId":"8006A1DA3CC9B457A3B79D198FD620681B51314D"},"linkedServices":{"0000003E-0000-1000-8000-0026BB765291":[],"00000047-0000-1000-8000-0026BB765291":[]},"services":[{"UUID":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"displayName":"Identify","UUID":"00000014-0000-1000-8000-0026BB765291","props":{"format":"bool","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pw"]},"value":false,"eventOnlyCharacteristic":false},{"displayName":"Manufacturer","UUID":"00000020-0000-1000-8000-0026BB765291","props":{"format":"string","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr"]},"value":"TP-Link","eventOnlyCharacteristic":false},{"displayName":"Model","UUID":"00000021-0000-1000-8000-0026BB765291","props":{"format":"string","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr"]},"value":"HS100(AU)","eventOnlyCharacteristic":false},{"displayName":"Name","UUID":"00000023-0000-1000-8000-0026BB765291","props":{"format":"string","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr"]},"value":"Bedroom Lamp Shannon","eventOnlyCharacteristic":false},{"displayName":"Serial Number","UUID":"00000030-0000-1000-8000-0026BB765291","props":{"format":"string","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr"]},"value":"D8:0D:17:F0:3F:F9 8006A1DA3CC9B457A3B79D198FD620681B51314D","eventOnlyCharacteristic":false},{"displayName":"Firmware Revision","UUID":"00000052-0000-1000-8000-0026BB765291","props":{"format":"string","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr"]},"value":"1.5.5 Build 181225 Rel.102720","eventOnlyCharacteristic":false},{"displayName":"Hardware Revision","UUID":"00000053-0000-1000-8000-0026BB765291","props":{"format":"string","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr"]},"value":"2.0","eventOnlyCharacteristic":false}]},{"displayName":"Bedroom Lamp Shannon","UUID":"00000047-0000-1000-8000-0026BB765291","characteristics":[{"displayName":"Name","UUID":"00000023-0000-1000-8000-0026BB765291","props":{"format":"string","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr"]},"value":"Bedroom Lamp Shannon","eventOnlyCharacteristic":false},{"displayName":"On","UUID":"00000025-0000-1000-8000-0026BB765291","props":{"format":"bool","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr","pw","ev"]},"value":false,"eventOnlyCharacteristic":false},{"displayName":"Outlet In Use","UUID":"00000026-0000-1000-8000-0026BB765291","props":{"format":"bool","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr","ev"]},"value":false,"eventOnlyCharacteristic":false}]}]},{"plugin":"homebridge-tplink-smarthome","platform":"TplinkSmarthome","displayName":"Bedroom Lamp Mark","UUID":"70cd9d2b-b939-4278-850b-c0091ea61b95","category":7,"context":{},"linkedServices":{"0000003E-0000-1000-8000-0026BB765291":[]},"services":[{"UUID":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"displayName":"Identify","UUID":"00000014-0000-1000-8000-0026BB765291","props":{"format":"bool","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pw"]},"value":false,"eventOnlyCharacteristic":false},{"displayName":"Manufacturer","UUID":"00000020-0000-1000-8000-0026BB765291","props":{"format":"string","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr"]},"value":"Default-Manufacturer","eventOnlyCharacteristic":false},{"displayName":"Model","UUID":"00000021-0000-1000-8000-0026BB765291","props":{"format":"string","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr"]},"value":"Default-Model","eventOnlyCharacteristic":false},{"displayName":"Name","UUID":"00000023-0000-1000-8000-0026BB765291","props":{"format":"string","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr"]},"value":"Bedroom Lamp Mark","eventOnlyCharacteristic":false},{"displayName":"Serial Number","UUID":"00000030-0000-1000-8000-0026BB765291","props":{"format":"string","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr"]},"value":"Default-SerialNumber","eventOnlyCharacteristic":false},{"displayName":"Firmware Revision","UUID":"00000052-0000-1000-8000-0026BB765291","props":{"format":"string","unit":null,"minValue":null,"maxValue":null,"minStep":null,"perms":["pr"]},"value":"","eventOnlyCharacteristic":false}]}]}]

gramtech commented 3 years ago

I raised what looks like a very similar issuesome time back - see #87 I never got it working unfortunately and no longer pursuing as I have since moved to Home Assistant for my home automation

edmundddd commented 2 years ago

I might have found a fix to my KP105 https://github.com/plasticrake/homebridge-tplink-smarthome/issues/236