Skip to content

honcheng/homeassistant-custom-components

Repository files navigation

Custom components for Home Assistant

Broadlink IR Climate Component

Configuration variables:

name (Optional): Name of climate component
host (Required): The hostname/IP address of broadlink rm device
mac (Required): Broadlink rm device MAC address
timeout (Optional): Timeout in seconds for the connection to the device
ircodes_ini (Required): The path of ir codes ini file
min_temp (Optional): Set minimum set point available (default: 16)
max_temp (Optional): Set maximum set point available (default: 30)
target_temp (Optional): Set initial target temperature. (default: 20)
temp_sensor (Optional): entity_id for a temperature sensor, target_sensor.state must be temperature.
customize (Optional): List of options to customize.
- operations (Optional*): List of operation modes (default: idle, heat, cool, auto)
- fan_modes (Optional*): List of fan modes (default: low, mid, high, auto)

Example:

climate:
  - platform: broadlink
    name: Toyotomi Akira
    host: 192.168.1.85
    mac: 'BB:BB:BB:BB:BB:BB'
    ircodes_ini: 'broadlink_climate_codes/toyotomi_akira.ini'
    min_temp: 16
    max_temp: 30
    target_temp: 20
    temp_sensor: sensor.living_room_temperature
    default_operation: idle
    default_fan_mode: mid
    customize:
      operations:
        - idle
        - cool
        - heat
      fan_modes:
        - low
        - mid
        - high
        - auto

Broadlink IR Media Player

Configuration variables:

name (Optional): Name of climate component
host (Required): The hostname/IP address of broadlink rm device
mac (Required): Broadlink rm device MAC address
timeout (Optional): Timeout in seconds for the connection to the device
ircodes_ini (Required): The path of ir codes ini file

Example:

media_player:
  - platform: broadlink
    name: Master Bedroom TV
    host: 192.168.1.85
    mac: 'BB:BB:BB:BB:BB:BB'
    ircodes_ini: 'broadlink_media_codes/philips.ini'

Broadlink RF Fan

Configuration variables:

name (Optional): Name of fan component
host (Required): The hostname/IP address of broadlink rm device
mac (Required): Broadlink rm device MAC address
timeout (Optional): Timeout in seconds for the connection to the device
rfcodes_ini (Required): The path of RF codes ini file
default_speed (Optional): Default fan speed when fan is turned on
default_direction (Optional): Default fan rotation direction when turned on. Possible values are right (clockwise) and left (anti-clockwise). (default: left)
customize (Optional): List of options to customize.
- speeds (Optional*): List of supported speeds (default: low, medium, high)

Example:

fan:
  - platform: broadlink
    name: Living Room Fan
    host: 192.168.1.85
    mac: 'BB:BB:BB:BB:BB:BB'
    rfcodes_ini: 'broadlink_fan_codes/living_room_fan.ini'
    default_speed: low
    defaut_direction: left
    customize:
        speeds:
            - low
            - medium
            - high
            - highest

How to make your INI Files:

The INI file must have a [general] section and optionally a [sources] section. In the [general] section you must fill all keys and values. The keys are:

[general]
turn_off = ...
turn_on = ...
previous_channel = ...
next_channel = ...
volume_down = ...
volume_up = ...
mute = ...

You are free to set any key name under [sources] section.

[sources]
My source 1 = ...
My source 2 = ...
.
.
.

About

Custom components for Home Assistant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages