Giter VIP home page Giter VIP logo

homeassistant-mi-acpartner's Introduction

homeassistant-mi-acpartner

小米空调伴侣的homeassistant插件

本插件主要是对homebridge-mi-acpartner移植到homeassistant,感谢开发者。

同时参考了HomeAssistant论坛各路大神们几个空调插件的做法,此处不在一一全表,同样感谢。

说到底,其实我只是个搬运工(^-^)

Feature(功能)

  • 开关空调

  • 控制模式:

    • 使用空调码或红外码控制你的空调。
    • 在17-30度之间调整空调温度(默认情况)。
    • 温度如果调节到31度或者16度即是关闭空调。
    • 制冷,制热,自动模式支持。
    • 风力,扫风状态(目前只支持开/关)支持。
    • 支持自定义风力(fan)和扫风(swing)的空调码或红外码,具体配置见下面可选配置部分。
    • 温度,模式不支持自定义空调码或红外码,根据 homebridge-mi-acpartner中presets.json 定义而来

Config(配置)

  • 必要配置

    • host: 空调伴侣的ip地址

    • token: 空调伴侣的token

    • name: 在HASS中显示的名字

    • target_sensor: 获取当前温度,填写你的温湿度传感器ID (为了兼容某些用户无温湿度传感器,所以实际此项为可选配置)

  • 可选配置

    • target_temp: 设置操作界面的起始温度(此配置项已经去除,老版本配置不影响)

    • sync: 填写与空调伴侣的同步间隔,单位是秒(默认是15秒)

    • customize:自定义风力或扫风空调码或红外码

  • 配置示例

基本配置

climate:
  - platform: mi_acpartner
    name: mi_acpartner
    host: 10.0.0.234
    token: 8171378a40b1a77ee7a8254b15c75cfc
    target_sensor: sensor.temperature_158d00015aefc4

自定义空调码或红外码

大部分空调码以01开头;大部分红外码以FE开头,支持混写。

climate:
  - platform: mi_acpartner
    name: mi_acpartner
    host: 10.0.0.234
    token: 9878a40b1a77ee7a8254b15c75cfb
    target_sensor: sensor.temperature_158d00015a
    sync: 60
    customize:
      swing:
        top: 010501820000261801
        down: FEADASDSDSDSDSDSADSAFADSFASA
      fan:
        max: FEADASDSDSDSDSDSADSAFADSFASAD
        med: FEBDASDSDSDSDSDSADSAFADSFASAR
        min: 010501A20000261B01

homeassistant-mi-acpartner's People

Contributors

mac-zhou avatar bit3725 avatar

Watchers

James Cloos 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.