Miband / Amazfit data direct from Notify app. No More Tasker! and google fit workarounds!

I have added two device, one works perfectly (an amazfit bip) but wife’s miband cannot authenticate.
I do the exact same thing with my own app, setup the address of my HA, generate a long lived token, but still I get Auth error in the logs.

Anyone else having the same issue?

As a wild idea, I switched the wife’s account to be an ‘admin’ on HA, and now the authentication works.
Is it normal? Regular users cannot use access tokens?

2 Likes

Sensors are visible in HA in combination with the Amazfit GTR 4. Works great!

Hi, has anyone tried to configure a toggle switch? Doesn’t work for me. Maybe I’m wrong with the “data request”

1 Like

same here, it would be nice to have an example

For anyone else who needs help with the Data Request. You just need to create simple JSON for the entity. So for switching a light on/off using Domain/Service = light/toggle, just put this in the Data Request (replace light.lamp with your entity):

{
“entity_id”:“light.lamp”
}
4 Likes

How often is the data updated? I am especially interested with hearth rate data flow to home assistant. Is it instant or with a couple of minutes delay ?

O meu amazfit gt2 tudo bem sincronizado e também não aparece no HA, já há atualizações para isso?? Obrigado

hello, I bought amazfit gt2 and I can’t get it to work on HA, I inserted the url, the token but nothing appears, it gives an error in the logs, why? thanks

Hey there, I just want to add here that I had to do this in the following format:
homeassistant/toggle

After that it works for me, I can toggle the lights from the watch.

you saved me bro, I was already desperate with getting JSON error messages always… THANKS!!

Can you post a screenshot or details of your configuration? I’ve tries multiple times to get this to work for a switch but it keeps failing asking for state.

Thx

can you tell us more details about the setup you’ve tried? first, I’d make sure that the service you want to call works in hass by setting it up and testing in developer tools section “services”. then make sure your notify app button function works with your band by trying other trigger options, e.g. IFTTT, Alexa or any that you wanna try. If both works, then you should just enter the JSON as written above, choose “switch/toggle” (if you wanna control a switch outlet) and it should work.

I have connected notify for amazfit app with HA but occasionally I am getting those errors?
What could cause this?

How do you folks set it up to work remotely? I set up using local IP, so when I step out of my home, the data is no longer sync-ed
I access my HASS via nabucasa remotely.

2 Likes

Hi all
I am trying to add my mi band 6 to HA. I have the pro version of notify app, I have added the url and created a token in HA which I added in notify app. Everything seems ok but it is not working.

I am getting the following in the logs

ogger: homeassistant.components.http.ban
Source: components/http/ban.py:82
Integration: HTTP (documentation, issues)
First occurred: 15:34:10 (31 occurrences)
Last logged: 17:04:17

Login attempt or request with invalid authentication from athedsl-248106.home.otenet.gr (85.73.16.200). Requested URL: '/api/states/sensor.miband_heartRate'. (okhttp/4.9.3)
Login attempt or request with invalid authentication from athedsl-248106.home.otenet.gr (85.73.16.200). Requested URL: '/api/states/sensor.miband_steps'. (okhttp/4.9.3)
Login attempt or request with invalid authentication from athedsl-248106.home.otenet.gr (85.73.16.200). Requested URL: '/api/states/sensor.miband_battery'. (okhttp/4.9.3)

I added in my http: (conf yaml)
the following

http:
#  ssl_certificate: /ssl/fullchain.pem
#  ssl_key: /ssl/privkey.pem
  use_x_forwarded_for: true
  trusted_proxies:
    - 10.0.0.200

    - 192.168.1.0/24
    - 192.168.0.0/24
    - 192.168.2.0/24

    - 85.73.16.200

but again it is not working…

Is there anyone which could help a bit please?

I just got me an Amazfit GTS 4 Mini, searching here on the forum i found this thread, which sound very interesting.

What happened to this thread? Anyone still involved?
How do you use your Miband/Amazfit now?

what else did i find?
There even seems to be someone who managed to make toggle switches on an amazfit band … to control HA through the band … more on this here on the forum

Topic/635266

Through Gadgetbridge, an open source manager for fitness devices - someone made HA his personal trainer :wink:

I am a brand new HA user and a non-tech guy. So adding what worked for me here for future non-tech guys who stumble on this from google.

I got the Notify for Amazfit (2ge) app and paid for pro+license (about $5 in total). Setup HA as per the instructions on the app (pretty straight forward).

I then selected triple press the crown (the button on top right on the watch) to ‘Call a service’ with following details:

Domain/Service:
light/toggle (note: homeassistant/toggle did not work for me)

Data request:
{“entity_id”:“your_entity_id”}

Once the above was entered it worked just fine when I ran a test. Though on the watch I have to press 4 times (first one to wake the watch up I suppose).

Thank you @ghostpirate for the inputs above, it was much appreciated.

I connected Amazfit Band 7. I waited 3 days, but I only see two sensors:
sensor.amazfit_trigger_6 and sensor.amazfit_trigger_7.
And I need sensor.amazfit_trigger_3. Friends, do you have any ideas?

Notify Lite for Smart watches & Xiaomi Smart Watches S1. The button function work fine but suddenly the music controller at watches doesn’t react. Do you see IT? How to fix? Reinstallation of the app does not work.