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

[Device] Support for Mi Band 5 #153

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Clint86
Copy link
Contributor

@Clint86 Clint86 commented Dec 26, 2020

It would be nice when Amazfish can support the Mi Band 5.

I´m completely new to programing and the programs like Sailfish IDE and Github.

I just added initial parameters and a image to support your work.
Hopefully it will help you, because i do not know what to add to get the device communicating the with app.

friendly greeting

@dano6
Copy link

dano6 commented Dec 27, 2020

Hi, I get it working with Mi Band 5, you need just select Mi Band 4 and basic stuffs should work

@Clint86
Copy link
Contributor Author

Clint86 commented Dec 27, 2020

Hi dano6,

something is not working and it will not pair propper. I will get every time a authfailed in the debug page of amazfish.
The band seems to be normal paired by bluetooth. What did you do?

My config:
[General]
localAdapter=/org/bluez/hci0
pairedAddress=/org/bluez/hci0/dev_C2_1E_2D_F7_80_2D
pairedName=Mi Smart Band 5

[app]
autosyncdata=true
navigationnotification=false
notifyconnect=true
notifylowbattery=true
refreshcalendar=60
refreshweather=80

[device]
authkey=a267839f1c3fb63a2789355b9a766a9f
dateformat=1
disconnectnotification=false
displayactivity=true
displayalarm=true
displayalipay=true
displayalipayshortcut=true
displaycompass=true
displaysettings=true
displaystatus=true
displaytimer=true
displayweather=true
distanceunit=0
language=5
lastactivitysyncmillis=0
timeformat=0

[profile]
alertfitnessgoal=false
alldayhrm=30
displayonliftwrist=true
dob=@datetime(\0\0\0\x10\0\0\0\0\0\0%Tn\x3\x1\v\0\x1)
fitnessgoal=8000
gender=0
height=186
hrmsleepsupport=true
name=Marco_G
wearlocation=0
weight=82

@Clint86
Copy link
Contributor Author

Clint86 commented Jan 4, 2021

Hi at all and a happy new year,

I still have the connection problem and don´t know how to fix it.
It seems like half paired, I can see the actual steps I did, but nothing more.
Any suggestion how to fix it?

And should I open an issue for this?

photo_2021-01-04_21-07-03
photo_2021-01-04_21-07-09
photo_2021-01-04_21-07-15

Thanks a lot

@piggz
Copy link
Owner

piggz commented Jan 10, 2021

The proper way to add a new device is to subclass AbstractDevice, or subclass one of the other devices. Take a look at GTSDevice as an example. You also need the factory to create the correct device type given the name.

@Clint86
Copy link
Contributor Author

Clint86 commented Jan 18, 2021

I had a look at the data but it´s hard to understand because i´m new to programming. i will rest the pullrequest for now till i got a better understanding for it.

@piggz
Copy link
Owner

piggz commented Jan 18, 2021

I have a new branch (huami) which simplifies the addition of new huami devices. When this is merged, it will be easier to add devices like this.

@Clint86
Copy link
Contributor Author

Clint86 commented Jan 18, 2021

That sounds good. thank you very much for your effort :)

@Hacker1245
Copy link

Interestingly it also works with the Mi Band 6 (synces steps as well)

@Thaodan
Copy link
Contributor

Thaodan commented Mar 10, 2023

I have a new branch (huami) which simplifies the addition of new huami devices. When this is merged, it will be easier to add devices like this.

Is the work for that done?

@Clint86
Copy link
Contributor Author

Clint86 commented Mar 14, 2023

I had no time looking into it and i´m not using the Mi Band anymore.
Should I close the PR?

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.

5 participants