Skip to content

Tonio101/YoLinkHomeAssistant

Repository files navigation

[Deprecated] Use YoLink API V2: https://github.com/Tonio101/YoLinkAPI_V2

YoLinkApi

Simple script that will integrate to YoLink IoT devices via MQTT protocol.

Parts Needed

Prereqs

YoLink API Documentation

As mentioned in the API documentation wiki, contact Chi Yao ([email protected])
to request your YoLink account API keys.

KEEP YOUR YOLINK ACCOUNT API KEYS SECURED!

Ensure you have the following information: Required YoLink Account API Keys:

  • CSID
  • CSName
  • CSSecKey
  • SVR_URL

Using a QR Code Scanner, gather all the IoT device(s) serial number (32 char code).
List them somewhere as they will be required to enable the API for each device.

YoLink Integration

YoLink API Documentation
YoLink supports both HTTP callback API (webhook) or MQTT report topic.

This script will go over subscribing to the YoLink MQTT broker topic to receive
sensor events such as open/close.

Install python required modules:

/usr/bin/python3 -m pip install -r requirements.txt

Add your credentials and the IoT device(s) serial number to yolink_data.yml.

/usr/bin/python3 yolink.py --config yolink_data.yml

Create Service

sudo cp yolinkha.service /etc/systemd/system/ sudo systemctl enable yolinkha.service sudo systemctl start yolinkhome.service sudo systemctl status yolinkha.service

About

YoLink Home Assistant Integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published