Giter Site home page Giter Site logo

homeassistant2wechat's Introduction

HomeAssistant2WeChat

HomeAssistant使用微信公众号控制

Update 2018-10-12
1、支持HomeAssistant Auth2认证方式,直接访问地址即可打开
2、修正几个状态回馈错误的问题

Python版本 3.6.6调试通过,个人精力有限,不做其他版本兼容 目前版本较为简陋,设备类型仅支持Light,Switch,Sensor,仅支持文字信息控制,关键词命令如下(关键词可在配置文件中修改,支持多个关键词匹配,需保留格式)

打开+设备名称
关闭+设备名
查询+设备名
如:
打开风扇,开启风扇
查询卧室温度

公众号使用了WxRoBot框架:https://github.com/offu/WeRoBot

使用方法:
1、安装WxRobot框架:
pip3 install wxrobot
2、申请微信公众号:
未认证的公众号或个人号由于权限问题无法使用如自定义菜单接口(暂未添加此功能),可采用公众号测试平台进行自定义菜单调试, 公众号测试平台支持任意端口,本程序默认采用8888端口启用
3、配置本地文件:
随后在config.py文件中配置好HomeAssistant的地址,微信Token,设备信息,最后添加8888端口映射至外网
4、启动服务:
python3 wxrbot.py
5、微信后台开启对接:
在公众号测试平台中的接口配置信息中填入外网地址和token信息,即可在公众号测试平台使用文字信息控制

homeassistant2wechat's People

Contributors

damon-shen avatar

Stargazers

Funny Mud Pee avatar  avatar  avatar ptkid avatar

Watchers

James Cloos avatar  avatar

Forkers

home-ha

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.