Download and copy
custom_components/catlink
folder tocustom_components
folder in your HomeAssistant config folder
# Auto install via terminal shell
wget -q -O - https://cdn.jsdelivr.net/gh/al-one/hass-xiaomi-miot/install.sh | DOMAIN=catlink REPO_PATH=hasscc/catlink ARCHIVE_TAG=main bash -
Recommend sharing devices to another account
# configuration.yaml
catlink:
# Single account
phone: 18866668888 # Username of Catlink APP
password: abcdefghijk # Password
phone_iac: 86 # Optional, International access code, default is 86 (China)
api_base: # Optional, default is China server: https://app.catlinks.cn/api/
scan_interval: # Optional, default is 00:01:00
# Multiple accounts
accounts:
- username: 18866660001
password: password1
- username: 18866660002
password: password2
service: catlink.request_api
target:
entity_id: sensor.scooper_xxxxxx_state # Any sensor entity in the account
data:
api: /token/device/union/list/sorted
params:
key: val