plasticrake / homebridge-tplink-smarthome

TP-Link Smarthome Plugin for Homebridge
MIT License
470 stars 69 forks source link

Fresh Installation On HOOBS Doesn't Start #216

Open doughnet opened 3 years ago

doughnet commented 3 years ago

ERROR:

9/21/2021, 8:37:45 PMKASA Tplink Smarthome Bridge starting
9/21/2021, 8:37:46 PMKASA Tplink Smarthome BridgeLoaded plugin 'homebridge-tplink-smarthome'
9/21/2021, 8:37:46 PMKASA Tplink Smarthome BridgeLoading 1 platforms...
9/21/2021, 8:37:46 PMKASA Tplink Smarthome BridgeTplinkSmarthomehomebridge-tplink-smarthome v6.4.0, node v14.17.6, homebridge v1.3.4, api v2.7
9/21/2021, 8:37:46 PMKASA Tplink Smarthome BridgeWARNINGunhandled rejection: ConfigParseError: Error parsing config:
`` must have required property 'name'

OS: Ubuntu 20.04 HOOBS: Version: 4.0.100

flavioribeiro commented 3 years ago

I have the same problem, but not getting any errors on the console, just stuck in here:

9/25/2021, 10:24:52 PM [TplinkSmarthome] Initializing TplinkSmarthome platform...
9/25/2021, 10:24:52 PM [TplinkSmarthome] homebridge-tplink-smarthome v6.4.0, node v14.16.0, homebridge v1.3.4, api v2.7
the1maximus commented 2 years ago

I have heard a lot of people complaining about this with Hoobs. Most have reflashed their MSD with the official HB image and have had success. KEEP IN MIND Hoobs is a fork of the official HB image. From my own personal experience the official image is also much more stable.

The official image and flashing tools can be downloaded from www.Homebridge.io

rjlink927 commented 2 years ago

Same issue. I think that we all likely have to wait for a new release of the TPLink Bridge that accounts for HOOBS v 14. My transition to HOOBs 14 bricked my device, had to reflash from the official HOOBS 14 image. After successfully getting back up and running again and installing all of my old pluggins, I have not been able to successfully link my TPLink/Kasa account. It would appear that the current version of the TPLink bridge (6.4.0) was released in May 2021, well before HOOBS jump to v14. I'd love to be proven wrong with a workaround but I haven't yet been able to find one.

doughnet commented 2 years ago

I was able to resolve my issues by going into the CLI and editing the config.json file located at "/var/lib/hoobs/tplinksmarthomebridge/config.json"

By default the plugin doesn't have the correct platforms setup. Change to be similar to this below (replace the pin & username to your data). If I recall correctly it's missing the "name": "TplinkSmarthome" portion. After including this it ended up starting up and working fine for me. Hope it helps others out.

{
  "bridge": {
    "name": "Tplink Smarthome Bridge",
    "pin": "PINHERE",
    "username": "USERNAMEHERE",
    "advertiser": "bonjour-hap"
  },
  "accessories": [],
  "platforms": [
    {
      "platform": "TplinkSmarthome",
      "name": "TplinkSmarthome"
    }
  ]
}
rjlink927 commented 2 years ago

I was able to resolve my issues by going into the CLI and editing the config.json file located at "/var/lib/hoobs/tplinksmarthomebridge/config.json"

By default the plugin doesn't have the correct platforms setup. Change to be similar to this below (replace the pin & username to your data). If I recall correctly it's missing the "name": "TplinkSmarthome" portion. After including this it ended up starting up and working fine for me. Hope it helps others out.

{
  "bridge": {
    "name": "Tplink Smarthome Bridge",
    "pin": "PINHERE",
    "username": "USERNAMEHERE",
    "advertiser": "bonjour-hap"
  },
  "accessories": [],
  "platforms": [
    {
      "platform": "TplinkSmarthome",
      "name": "TplinkSmarthome"
    }
  ]
}

You're a genius @doughnet - worked for me!