GithubHelp home page GithubHelp logo

zcw159357 / home-assistant-components Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anonym-tsk/home-assistant-components

0.0 2.0 0.0 44 KB

Custom components for Home Assistant

Python 100.00%

home-assistant-components's Introduction

Custom components for Home Assistant

Xiaomi IR Climate Component

Requirements

Xiaomi IR Remote component need to be enabled and configured

Configuration variables:

Variable Required Description
remote yes entity_id of the Xiaomi IR Remote device
commands yes Commands list (see below)
name no Name of climate component
temp_sensor no entity_id for a temperature sensor, temp_sensor.state must be temperature
power_template no template that returns status of climete, must returns boolean value
min_temp no Set minimum available temperature (default: 16)
max_temp no Set maximum available temperature (default: 32)
target_temp no Set initial target temperature (default: 24)
target_temp_step no Set target temperature step (default: 1)
operation_mode no Set initial default operation mode (default: cool)
fan_mode no Set initial default fan mode (default: auto)
customize
- operation_list
- fan_list
no List of options to customize
- List of operation modes (default: off, heat, cool, auto)
- List of fan modes (default: low, medium, high, auto)

Basic Example:

climate:
  - platform: xiaomi_remote
    name: Air Conditioner
    remote: remote.xiaomi_miio_192_168_10_101
    commands: !include Roda-YKR-H-102E.yaml

Custom Example:

climate:
  - platform: xiaomi_remote
    name: Air Conditioner
    remote: remote.xiaomi_miio_192_168_10_101
    commands: !include Roda-YKR-H-102E.yaml
    temp_sensor: sensor.co2mon_temperature
    power_template: "{{ states('sensor.plug_power_158d0002366887') | float > 50 }}"
    min_temp: 16
    max_temp: 32
    target_temp: 24
    target_temp_step: 1
    operation_mode: cool
    fan_mode: auto
    customize:
      operation_list:
        - 'off'
        - cool
        - heat
        - dry
        - fan_only
        - auto
      fan_list:
        - low
        - medium
        - high
        - auto

How to make your configuration YAML file

  • Use remote.xiaomi_miio_learn_command to get commands from your remote.
  • Create YAML file same as Roda-YKR-H-102E.yaml with your commands.
    • Required command off ('off': <command>)
    • Optional commands: operation/fan_mode/temperature (available nesting: operation/fan_mode/temperature, operation/fan_mode, operation)
    • 'off' commands must be in quotes

Example:

'off': <raw_command>
cool:
  low:
    16: <raw_command>
    17: <raw_command>
    ...
heat:
  low: <raw_command>
  high: <raw_command>
dry: <raw_command>

Xiaomi Plug Power Sensor

Component provides sensors with current power of Xiaomi Plugs. Also, component fixes long updates of in_use and load_power attributes of plug (default update interval is 5-8 minutes)

Example:

sensor:
  - platform: xiaomi_plug_power

CO2Mon Sensor

Component provides two sensors - temperature and CO2 from USB CO2 monitor

Requirements

The libusb library must be installed.
On linux (including Raspberry Pi) and official docker container you can install it from apt:

sudo apt-get install libusb-1.0-0-dev

Example:

sensor:
  - platform: co2mon

home-assistant-components's People

Contributors

anonym-tsk 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.