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 status in statistics #310

Closed
wants to merge 0 commits into from
Closed

Conversation

Hamlet3000
Copy link
Contributor

With regard to issue #309, I have prepared the graphical user interface for displaying the battery status under statistics. Someone would just have to implement the get_battery_status function. Unfortunately I don't have the go knowledge for this.

Screenshot 2024-04-17 172136

@bliteknight
Copy link
Contributor

The unfortunate issue with the SDK is the battery level will always be a constant value when read e.g. 4.9v but the status will either be good, charging, or needs to charge....so this graph will always have a horizontal line that changes from read to read...it wont ever slope down or up :(

@Hamlet3000
Copy link
Contributor Author

Hamlet3000 commented Apr 20, 2024

I don't quite understand it. The SDK gives me the voltage between ~4.369... and ~3.564... I would like to have this voltage displayed in the graph (not if good, charging, or needs to charge). If I start the query every 30 seconds or so, I get different values if Vector is charging or not on its station.

@kercre123
Copy link
Owner

When he is taken off the charger, the voltage value just stays the same in my experience, even after 10 minutes or so. I don't know if this is an issue with the vector-go-sdk or if it is expected.

@Hamlet3000
Copy link
Contributor Author

I already have a go lang script that reliably gives me the battery voltage and docking status from vector, I just don't know how best to implement it in wire-pod... I can post it here later. It would be great if you could take a look at it and help me with it.

@Hamlet3000
Copy link
Contributor Author

Hamlet3000 commented Apr 21, 2024

As promised, here is the go lang code that supplies the voltage every 10 seconds:
https://github.com/Hamlet3000/Vector-mqtt.go/blob/main/mqtt.go

I am currently using the script as a service on wire-pod to send the values to my smarthome via MQTT (see also issue #312). It would be great if someone could help me with the implementation in wire-pod and maybe realize both issues. Please feel free to use my code.

This is, how it looks in homeassistant:
Screenshot 2024-04-21 121520

@kercre123
Copy link
Owner

MQTT support is something i'd like to add to WirePod in the future, but I think i'd want to send more than just docked status+voltage. Is there any reason you'd like this to be a part of wire-pod rather than stay as a seperate process?

@Hamlet3000
Copy link
Contributor Author

Docking status and battery are the things that the SDK already supports, so I think it should be relatively easy to integrate. It would be a great advantage for all users who don't want to or can't program to simply enter the IP and port of their MQTT broker via the interface and wire-pod does the rest.

I can of course live with my current solution, but it is customized for me with additional scripts and setting up a service.

@AshMartian AshMartian mentioned this pull request Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants