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

Plug Mini Status electric current off by factor of ~500 ? #379

Open
lostllama opened this issue Dec 18, 2024 · 1 comment
Open

Plug Mini Status electric current off by factor of ~500 ? #379

lostllama opened this issue Dec 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@lostllama
Copy link

lostllama commented Dec 18, 2024

Analysis

Response from status request on a plug mini device (both us and JP) gives an electric current value over 500 times higher than it should be (in amps).

Expected Behavior

GET status of Plug mini device.

Receive response with accurate electric current value.

Steps To Reproduce

GET status of Plug mini device.

Receive response with an electric current value ~500 times that expected.

Logs

Following is an example response from a plug that is powering my dryer:


{
    "statusCode": 100,
    "body": {
        "version": "V1.8-1.8",
        "power": "on",
        "voltage": 103.1,
        "weight": 1.2,
        "electricityOfDay": 119,
        "electricCurrent": 51,
        "deviceId": "redacted",
        "deviceType": "Plug Mini (JP)",
        "hubDeviceId": "redacted"
    },
    "message": "success"
}

103.1V * 51A = 5.3kW

My device is off. According to the SwitchBot app, it's currently using 102.8V at 0.1A so that should be 10.28W.



### Configuration

https://api.switch-bot.com/v1.1/devices/{{device_id}}/status


### Environment

N/A

### Additional Context

Similar issue to https://github.com/OpenWonderLabs/SwitchBotAPI/issues/163
@lostllama lostllama added the bug Something isn't working label Dec 18, 2024
@lostllama lostllama changed the title Plug Mini Status electric current off by factor of 10 Plug Mini Status electric current off by factor of ~500 ? Dec 18, 2024
@lostllama
Copy link
Author

I turned my device on, and the SwitchBot app shows the following:

Voltage: 102.4V
Current: 2.0A
(Therefore the wattage should be 204.8 W)

Response from SwitchBot API:
Voltage: 102.8V
Current: 233A
Just a measly ~24kW.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants