ga2mer / ha-zepp

Home Assistant companion for Zepp OS devices
73 stars 17 forks source link
home-assistant miband7 zeppos

Home Assistant companion for Zepp OS devices

Application that allows you to control Home Assistant

image image image

Features

To Do:

Devices supported

Preparations

Mi Band 7 only

About the sensor updates to the Home Assitant REST API

Since it is not possible for the general public to access Huami's WEB API, I decided to make a background updater within this app to send the wearable sensor data to Home Assistant. It uses the alarm mechanism, which can open a page even when the device is inactive. When this page is opened, the POST requests are performed towards the HA REST API. However, notifications on the device (e.g. app notifications or the calendar notification) are remained open for a while (if you don't swipe it away), which can block this alarm mechanism from showing the ha-zepp page. If the ha-zepp page is blocked by a notification, you will see that if you swipe it away, the ha-zepp page will appear. If you don't swipe it away, the ZeppOS system eventually will remove all stored pages and notifications to save RAM and be more power efficient. If this ha-zepp page is not openend, ha-zepp is unable to create a new alarm, meaning the background updater will break. Therefore, it's best to DISABLE ALL SORT OF NOTIFICATIONS if you want this feature to work properly.