GithubHelp home page GithubHelp logo

j0x7c4 / tmall-bot-x1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from c1pher-cn/tmall-bot-x1

0.0 2.0 0.0 512 KB

天猫精灵智能家居技能对接homeassistant

PHP 21.98% HTML 4.45% JavaScript 53.68% CSS 19.89%

tmall-bot-x1's Introduction

tmall-bot-x1

天猫精灵智能家居技能对接homeassistant

本代码基于PHP 5.3.3 和mysql、还有php5.2-develop版的oauth2-server-php https://github.com/bshaffer/oauth2-server-php/blob/php5.2-develop/README.md 更高版本的php可以使用正式版的oauth2-server-php

该方案有几个硬性要求:

  1.homeassistant公网可以访问

2.php+mysql或者相似的环境

不足点:

目前未完成鉴权,完成授权之后后续与天猫开放平台之间的通讯并未验证token的合法性。

目前只支持homeassistant里light、switch、media_player、fan、cover、vacuum、script类型设备的控制,和这四个设备电源状态的查看。

其他类型的设备因为我自己没有所以无法调试,有需求可以带着设备id跟我反馈。

  其他设备类型可能我没有的请提交设备id给我 https://weibo.com/u/1147593092  

部署配置方法详见我的博客: https://www.c1pher.cn/?p=170

tmall-bot-x1's People

Contributors

c1pher-cn avatar patrickli avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.