hoobs-org / HOOBS

Build your Smart Home with HOOBS. Connect over 2,000 Accessories to your favorite Ecosystem.
https://hoobs.org
GNU General Public License v3.0
552 stars 51 forks source link

Tapo Plugin on Hoobs #1117

Closed uximage closed 3 years ago

uximage commented 3 years ago

Hej, i got the following error with the Tapo Plugin (https://plugins.hoobs.org/plugin/homebridge-tapo):

2.3.2021, 10:33:35 [HOOBS 6436@192.168.0.8@@On] characteristic value expected boolean and received undefined 2.3.2021, 10:33:35 [Tapo Smart Platform] 235 Error Code: -1501, Invalid Request or Credentials 2.3.2021, 10:33:35 [Tapo Smart Platform] 358 Error Code: -1501, Invalid Request or Credentials

and the plug is not working but shown in the accessories.

any idea how i get the plug working?

HOOBS Version | 3.3.3 No upgrade What device are you using? Please let us know the device you are running HOOBS on.

If this is a custom install, what's your operating system? pi4

Post your config This can be found in the interface, Configuration -> Advanced or you can get it via SSH cat ~/.hoobs/etc/config.json

{
    "server": {
        "port": 80,
        "origin": "*",
        "autostart": 0,
        "home_setup_id": "X-HM://0023ISYWY1611",
        "polling_seconds": 5
    },
    "client": {
        "default_route": "status",
        "inactive_logoff": 30,
        "theme": "hoobs-light",
        "locale": "en",
        "temp_units": "fahrenheit",
        "country_code": "US",
        "postal_code": "94040"
    },
    "bridge": {
        "name": "HOOBS",
        "port": 51826,
        "pin": "031-45-154",
        "username": "3A:A4:64:CD:4F:BE"
    },
    "description": "",
    "ports": {},
    "accessories": [],
    "platforms": [
        {
            "platform": "TplinkSmarthome",
            "plugin_map": {
                "plugin_name": "homebridge-tplink-smarthome"
            },
            "name": "TplinkSmarthome",
            "addCustomCharacteristics": true,
            "deviceTypes": [
                "plug",
                "bulb"
            ]
        },
        {
            "platform": "TapoP100",
            "plugin_map": {
                "plugin_name": "homebridge-tapo"
            },
            "name": "Tapo Smart Platform",
            "username": "xxx@gmail.com",
            "password": "xxxxxxx",
            "devices": [
                {
                    "name": "Grammophon",
                    "host": "192.168.0.8",
                    "type": "plug"
                }
            ]
        }
    ]
}

Post your log You can get the log from the intercafe. This is in the Log section.

2.3.2021, 10:29:32 HOOBS listening on port 80.
2.3.2021, 10:29:33 Initializing HAP-NodeJS v0.9.2...
2.3.2021, 10:29:34 Loaded plugin 'homebridge-tapo'
2.3.2021, 10:29:34 [3/2/2021, 2:29:34 AM] Registering platform 'homebridge-tapo.TapoP100'
2.3.2021, 10:29:34 Loaded plugin 'homebridge-tplink-smarthome'
2.3.2021, 10:29:34 [3/2/2021, 2:29:34 AM] Registering platform 'homebridge-tplink-smarthome.TplinkSmarthome'
2.3.2021, 10:29:34 Loading 2 platforms...
2.3.2021, 10:29:34 [TplinkSmarthome] Initializing TplinkSmarthome platform...
2.3.2021, 10:29:34 [TplinkSmarthome] homebridge-tplink-smarthome v6.2.0, node v14.15.3, homebridge v1.3.1, api v2.7
2.3.2021, 10:29:34 [Tapo Smart Platform] Initializing TapoP100 platform...
2.3.2021, 10:29:34 [TplinkSmarthome] Configuring cached accessory: [Fritzchen] UUID: 3caa708b-a891-4ea2-a376-492a8864319a deviceId: 80064CBD4DF234B4DFF0527014BC98191C56F884 
2.3.2021, 10:29:34 [TplinkSmarthome] Configuring cached accessory: [Anlage ] UUID: e07053a2-03a0-45f3-bd86-10e70318fcab deviceId: 80067783300682262B7F12993A6D65F01BE5C445 
2.3.2021, 10:29:34 [Tapo Smart Platform] Loading accessory from cache: 192.168.0.8
2.3.2021, 10:29:34 [Tapo Smart Platform] Loading accessory from cache: 192.168.0.8
2.3.2021, 10:29:34 [Tapo Smart Platform] Restoring existing accessory from cache: 192.168.0.8
2.3.2021, 10:29:34 Preparing Advertiser for 'HOOBS 6436' using bonjour-hap backend!
2.3.2021, 10:29:34 Starting to advertise 'HOOBS 6436' using bonjour-hap backend!
2.3.2021, 10:29:34 Bridge is running on port 51826.
2.3.2021, 10:29:34 [TplinkSmarthome] New Device Online: [Anlage ] plug [80067783300682262B7F12993A6D65F01BE5C445] 192.168.0.9 9999
2.3.2021, 10:29:34 [TplinkSmarthome] Adding: [Anlage ] plug [80067783300682262B7F12993A6D65F01BE5C445]
2.3.2021, 10:29:34 [HOOBS 6436@Anlage @Anlage @Amperes] Characteristic not in required or optional characteristic section for service Service. Adding anyway.
2.3.2021, 10:29:34 [HOOBS 6436@Anlage @Anlage @Total Consumption] Characteristic not in required or optional characteristic section for service Service. Adding anyway.
2.3.2021, 10:29:34 [HOOBS 6436@Anlage @Anlage @Apparent Power] Characteristic not in required or optional characteristic section for service Service. Adding anyway.
2.3.2021, 10:29:34 [HOOBS 6436@Anlage @Anlage @Volts] Characteristic not in required or optional characteristic section for service Service. Adding anyway.
2.3.2021, 10:29:34 [HOOBS 6436@Anlage @Anlage @Consumption] Characteristic not in required or optional characteristic section for service Service. Adding anyway.
2.3.2021, 10:29:34 [TplinkSmarthome] New Device Online: [Fernseher] plug [80064CBD4DF234B4DFF0527014BC98191C56F884] 192.168.0.6 9999
2.3.2021, 10:29:34 [TplinkSmarthome] Adding: [Fernseher] plug [80064CBD4DF234B4DFF0527014BC98191C56F884]
2.3.2021, 10:29:34 [HOOBS 6436@Fritzchen@Fritzchen@Amperes] Characteristic not in required or optional characteristic section for service Service. Adding anyway.
2.3.2021, 10:29:34 [HOOBS 6436@Fritzchen@Fritzchen@Total Consumption] Characteristic not in required or optional characteristic section for service Service. Adding anyway.
2.3.2021, 10:29:34 [HOOBS 6436@Fritzchen@Fritzchen@Apparent Power] Characteristic not in required or optional characteristic section for service Service. Adding anyway.
2.3.2021, 10:29:34 [HOOBS 6436@Fritzchen@Fritzchen@Volts] Characteristic not in required or optional characteristic section for service Service. Adding anyway.
2.3.2021, 10:29:34 [HOOBS 6436@Fritzchen@Fritzchen@Consumption] Characteristic not in required or optional characteristic section for service Service. Adding anyway.
2.3.2021, 10:29:34 [Tapo Smart Platform] 158 Error Code: -1501, Invalid Request or Credentials
2.3.2021, 10:29:34 [Tapo Smart Platform] 358 Error Code: -1501, Invalid Request or Credentials
2.3.2021, 10:29:34 [HOOBS 6436@192.168.0.8@@Serial Number] characteristic value expected string and received undefined
2.3.2021, 10:29:34 [HOOBS 6436@192.168.0.8@@Serial Number] [Serial Number] characteristic must have a length of more than 1 character otherwise HomeKit will reject this accessory, ignoring new value

Additional context The Tplink Plugin is working fine with my HS100 plugs

uximage commented 3 years ago

The plugin is not working with the hardwareversion 1.0 of the p100 plugs!!

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.