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 still not possible? #37

Open
zen85 opened this issue Feb 4, 2022 · 1 comment
Open

battery level still not possible? #37

zen85 opened this issue Feb 4, 2022 · 1 comment

Comments

@zen85
Copy link

zen85 commented Feb 4, 2022

Current Situation

I have 3 switchbots running and operate them via node-red with this command:
sudo python3 python-host/switchbot_py3.py -d XX:XX:XX:XX:XX:XX -c on

i have many devices with batteries running in my flat and i want to keep an overview of what will need batteries soon. Unfortunatly this project does not give me that possibility and i wondered if it would be possible to implement this since other pythonlibraries seem to be able to do that.... unfortunatly these lack documentation and i dont know hot to get these running in node-red.

iE: https://github.com/Danielhiversen/pySwitchbot

is this even a planned feature?

Proposed Change

Make a command that gives me a batterylevel

Additional Context

No response

@zen85 zen85 changed the title batter level still not possible? battery level still not possible? Feb 4, 2022
@Jaxom99
Copy link

Jaxom99 commented Dec 2, 2022

On the 7.1 version, the code reports the battery status of any bot in the bot/bot_name/attributes topic as a JSON element, {"mode":"Press","state":"OFF","batt":87,"rssi":-47} and also on the bot/bot_name/battery topic as a % of charge.

I believe your need is fulfilled 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants