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

Battery level return wrong #354

Open
cricou76 opened this issue Oct 16, 2024 · 2 comments
Open

Battery level return wrong #354

cricou76 opened this issue Oct 16, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@cricou76
Copy link

Analysis

when i execute in powerhell an api call to obtain status of my meter or meter plus
i can seen battery is always : "100"
but in switchbot application, level seems acurate

Expected Behavior

we need to obtain using api the good battery level , as indicated in application

Steps To Reproduce

Invoke-webrequest -URI https://api.switch-bot.com/V1.1/devices/XXXXX/status -Headers xxxxx

Logs

StatusCode        : 200
StatusDescription : OK
Content           : {"statusCode":100,"body":{"deviceId":"XXXXXXXXXXX","deviceType":"Meter","hubDeviceId":"XXXXXXXXXXX","humidity":70,"temperature":24.6,"version":"V2.9","battery":100},"message":"success"}

Configuration

using simple powershell api call

Environment

  • OS: windows 2022
  • Software: powershell
  • Node:
  • npm:

Additional Context

No response

@aubreyz
Copy link

aubreyz commented Dec 11, 2024

Well known issue which Switchbot seem to be ignoring (not sure why they are ignoring because I can't purchase any more devices until fixed). And it should be easy to fix surely......

@hsakoh
Copy link

hsakoh commented Dec 27, 2024

same issue #383 #304 #234

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

8 participants