SwitchBotAPI
SwitchBotAPI copied to clipboard
Battery level return wrong
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
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......
same issue #383 #304 #234
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 ;)