Skip to content
forked from feversky/aligenie

home assistant custom component for tmall genie

License

Notifications You must be signed in to change notification settings

yunsean/aligenie

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

aligenie

home assistant custom component for tmall genie

basicly it's a gate and wrapper of Yonsm's gate in https://github.com/Yonsm/HAExtra/tree/master/hagenie

配置

  • 将aligenie文件夹拷贝到home assistant的custom_components目录下
  • 在配置文件configuration.yaml中添加:
aligenie:  
  expire_hours: 9999999
  • 在个性化配置文件customize.yaml中为需要暴露给天猫精灵的设备添加设置项:
switch.printer:
  friendly_name: 打印机
  hagenie_deviceName: 机顶盒
  hagenie_deviceType: STB
  hagenie_zone: 书房

其中:

也可以借助HassAPP对每个实体进行配置。

天猫精灵开发平台

首先确保你的home assistant能在公网访问,并且配置有https域名(证书必须可以验证,端口可以不使用443端口),证书的问题可以参考:http://www.yunsean.com/tong-guo-tian-mao-jing-ling-kong-zhi-home/

  1. 访问天猫精灵开放平台:https://iap.aligenie.com/console/skill/list
  2. 创建一个“内容&IOT技能”,进入技能
  3. 在“服务设置”中配置:

其他项目留白,保存。

  1. 进入“测试验证”,点击账户配置,应该就看到你家home assistant中的登录页面了。
  2. 然后就可以打开天猫精灵APP看到你暴露的设备进行修改。

About

home assistant custom component for tmall genie

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%