SwitchBotAPI icon indicating copy to clipboard operation
SwitchBotAPI copied to clipboard

Battery level return wrong

Open cricou76 opened this issue 1 year ago • 3 comments

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

cricou76 avatar Oct 16 '24 13:10 cricou76

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......

aubreyz avatar Dec 11 '24 17:12 aubreyz

same issue #383 #304 #234

hsakoh avatar Dec 27 '24 16:12 hsakoh

Still no update? I just finished setting up the whole API, but I get a batterylevel of 80%.

Why I need to have the correct batterylevel: I want to make an automation in Home Assistant to close the curtains a bit, so they have full sunlight to charge the Curtain back to 100%. But if it stays on 80% it will never happen ;)

spiderwolf27 avatar Jan 28 '25 13:01 spiderwolf27