RaresAil / homebridge-tp-link-tapo

A platform to implement the tp-link tapo device and Adaptive Lighting for light bulbs
https://www.npmjs.com/package/homebridge-tp-link-tapo
Apache License 2.0
66 stars 6 forks source link

P105 stopped working, "Command error: power > -1012" #94

Closed fredsterss closed 2 weeks ago

fredsterss commented 6 months ago

Describe The Bug

Hi, this was all working flawlessly until recently. It started throwing the following error:

[HomebridgeTPLinkTapo] Command error: power > -1012

The plug shows up and functions fine in the Tapo app, and shows up in the accessories list in homebridge as well as in Apple Home, but trying to power on or off via Homebridge or Apple Home triggers that error.

Expected behavior

It works

Logs

[25/04/2024, 14:07:16] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[25/04/2024, 14:07:16] [HB Supervisor] Started Homebridge v1.8.0 with PID: 178095
[25/04/2024, 14:07:17] Loaded config.json with 0 accessories and 3 platforms.
[25/04/2024, 14:07:17] Loaded 2 cached accessories from cachedAccessories.
[25/04/2024, 14:07:17] ---
[25/04/2024, 14:07:17] Loaded plugin: homebridge-tp-link-tapo@4.1.0
[25/04/2024, 14:07:17] Registering platform 'homebridge-tp-link-tapo.HomebridgeTPLinkTapo'
[25/04/2024, 14:07:17] ---
[25/04/2024, 14:07:19] Loaded plugin: @fjs21/homebridge-blueair@1.3.1
[25/04/2024, 14:07:19] Registering platform '@fjs21/homebridge-blueair.BlueAir'
[25/04/2024, 14:07:19] ---
[25/04/2024, 14:07:19] Loading 3 platforms...
[25/04/2024, 14:07:19] [BlueAir] Initializing BlueAir platform...
[25/04/2024, 14:07:19] [BlueAir] base_API_url: https://api.blueair.io/v2/user/fred@rainforestqa.com/homehost/
[25/04/2024, 14:07:19] [BlueAir] Current Gigya Region: eu1
[25/04/2024, 14:07:19] [BlueAir] Current AWS Region: eu-west-1
[25/04/2024, 14:07:19] [HomebridgeTPLinkTapo] Initializing HomebridgeTPLinkTapo platform...
[25/04/2024, 14:07:19] [BlueAir] Loading accessory from cache: Bedroom Purifier
[25/04/2024, 14:07:19] [HomebridgeTPLinkTapo] Loading accessory from cache: desk lamp
[25/04/2024, 14:07:19] [BlueAir] Blueair AWS API Tokens will expire at: Fri Apr 26 2024 14:07:19 GMT+0900 (Japan Standard Time)
Setup Payload:
X-HM://0024V0I3DMGDR
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ 841-18-169 │     
    └────────────┘     

[25/04/2024, 14:07:20] Homebridge v1.8.0 (HAP v0.12.0) (RaspberryBridge) is running on port 51140.
[25/04/2024, 14:07:20] [HomebridgeTPLinkTapo] Restoring existing accessory from cache: desk lamp
[25/04/2024, 14:07:20] [homebridge-tp-link-tapo] This plugin generated a warning from the characteristic 'Contact Sensor State': Characteristic not in required or optional characteristic section for service Outlet. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[25/04/2024, 14:07:20] [HomebridgeTPLinkTapo] Command error: getCurrentPower > 1002
[25/04/2024, 14:07:20] [BlueAir] Got homehost: api-us-east-1.blueair.io
[25/04/2024, 14:07:21] [BlueAir] x-auth-token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImZyZWRAcmFpbmZvcmVzdHFhLmNvbSIsImp0aSI6Ijk0N2Y0OGY1LTNmNjgtNDdmMy05ZGQ4LTVjNjRmMDlhOGU2MiIsImV4cCI6MTc0NTU1NzY0MTg4MywiZXhwaXJhdGlvbkRhdGUiOjE3NDU1NTc2NDE4ODN9.j77DqnijFrFhshsSOl4Rnjwc0mhWN4s7okDwZEMzczM
[25/04/2024, 14:07:22] [BlueAir] Found 0 devices.
[25/04/2024, 14:07:24] [BlueAir] ** AWS login complete **
[25/04/2024, 14:07:25] [BlueAir] Found 1 Blueair AWS-compatible devices.
[25/04/2024, 14:07:25] [BlueAir] Restoring existing accessory from cache: Bedroom Purifier
[25/04/2024, 14:07:27] [BlueAir] Creating new object: BlueAirDustProtectAccessory
[25/04/2024, 14:07:27] [BlueAir] Removing stale Service: uuid:[00000043-0000-1000-8000-0026BB765291]
[25/04/2024, 14:07:29] [BlueAir] Removing stale Service: uuid:[0000008A-0000-1000-8000-0026BB765291]
[25/04/2024, 14:07:29] [BlueAir] Removing stale Service: uuid:[00000082-0000-1000-8000-0026BB765291]
[25/04/2024, 14:07:34] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:35] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:37] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:37] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:39] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:40] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:41] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:43] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:44] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:45] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:46] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:07:47] [HomebridgeTPLinkTapo] Command error: power > -1012
[25/04/2024, 14:08:11] [Homebridge UI] Starting terminal session
[25/04/2024, 14:08:26] [Homebridge UI] Terminal session ended.
[25/04/2024, 14:11:28] [HomebridgeTPLinkTapo] Command error: power > -1012

Plugin Config

{
    "bridge": {
        "name": "RaspberryBridge",
        "username": "XXXXX",
        "port": 51140,
        "pin": "XXXXX",
        "advertiser": "bonjour-hap"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "username": "XXXXX",
            "password": "YYYY",
            "enableAWS": true,
            "hideLED": true,
            "hideAirQualitySensor": false,
            "hideCO2Sensor": false,
            "hideTemperatureSensor": false,
            "hideHumiditySensor": false,
            "hideGermShield": false,
            "hideNightMode": false,
            "region": "eu",
            "platform": "BlueAir"
        },
        {
            "addresses": [
                "192.168.0.24"
            ],
            "name": "HomebridgeTPLinkTapo",
            "email": "XXXXX",
            "password": "YYYYY",
            "platform": "HomebridgeTPLinkTapo"
        }
    ],
    "disabledPlugins": [
        "homebridge-qingping-airmonitor-cgs1"
    ]
}

Plugin Version

4.1.0

Homebridge Version

1.8.0

Node.js Version

18.19.0

NPM Version

10.2.3

Operating System

Debian GNU/Linux 12 (bookworm)

RaresAil commented 6 months ago

Hey, check for updates in tapo app, than restart the bridge maybe your light got updated and it requires the bridge to restart

hirocakep commented 4 months ago

Same as fredsterss. I got Command error: power > -1012

ArmsAsuncion commented 4 months ago

Same with my L530 and P105, but has a different number

[TPLink Tapo Platform] Command error: power > -1008 [TPLink Tapo Platform] Command error: getCurrentPower > -1002 [TPLink Tapo Platform] Command error: brightness > -1008

It works when I hold the accessory in my phone then turn it on and off/change brightness/color from there, but not by directly tapping the accessory to turn it on and off.

I already restarted the child bridge, homebridge, my devices, and network, checked for TAPO app and device updates.