ga2mer / ha-zepp

Home Assistant companion for Zepp OS devices
77 stars 18 forks source link

Usage with Gadgetbridge? #4

Open hpmueller1971 opened 1 year ago

hpmueller1971 commented 1 year ago

Hi,

the Bangles.js flavor of Gadgetbridge supports APIs for Intents and even full network access as well as limited app-management for the Mi Band 7 (all Gadgetbridge flavors). Is it feasible to make ha-zepp work with Gadgetbridge...?

/hp

ga2mer commented 1 year ago

Judging by the Gadgetbridge code, it can't be done at the moment

Maybe there will be support for intents in the future, but most likely this will require a separate application on the phone to set up the integration and communication with the mi band

joserebelo commented 1 year ago

Judging by the Gadgetbridge code, it can't be done at the moment

Yes, but I've been looking into this :)

We should not need a separate application - Gadgetbridge already communicates with the band, we just need to add support for the app-side <-> band protocol, and the settings page on the phone.

I have a very WIP branch on Gadgetbridge that manages to:

But it is still an early work in progress - I am having issues with the fetch requests, the app-side always gets a null body somehow.

In the future, it should even be possible to trigger Intents and other things from the app-side javascript code, through custom integrations with Gadgetbridge.