homebridge-mi-remote

0.3.8 • Public • Published

Xiaomi IR Remote platform

A homebridge-plugin for Mi Universal Remote devices : chuangmi.ir.v2 chuangmi.remote.h102a03 chuangmi.remote.v2 chuangmi.remote.h102c01

米家万能遥控器

foaked from homebridge-mi-ir-remote and homebridge-mi-ir-electrolux.

Installation

Install homebridge.

sudo npm install -g --unsafe-perm homebridge

Install miio and the plugin packages.

sudo npm install -g miio homebridge-mi-remote

Get the token of your Mi Universal Remote device. Follow the instruction.

miio --discover

Add the configuration into the config.json file.

Supported types

MiLearn

Learn raw codes from each command by IR remote controllers. To obtain the code stored in the log file (e.g., '/var/log/homebridge.log'), run the bash script as below:

tail <'/var/log/homebridge.log'> | grep -oe 'Learned Code:.*' | cut -d ' ' -f3 | tail -1

Bundled accessories

See the instruction for details.

  • Switch
  • Light
  • Projector
  • AirConditioner
  • Custom : Run multiple commands in a single switch.
  • MomentarySwitch : Automatically turned off after 0.3 seconds.

Additional supported devices

  • LGAirConditioner : IR remote control for LG Home Air Conditioners (Heater/Cooler). Compatible with AKB73835317 AKB73675605. Also functional on LA090HSV4 LA120HSV4 LA180HSV4 LAN090HSV4 LAN120HSV4 LAN180HSV4 LS090HSV4 LS120HSV4 LS180HSV4 LSN090HSV4 LSN120HSV4 LSN180HSV4 LSU090HSV4 LSU120HSV4 LSU180HSV4 .

Configuration

Example:

"platforms"[
    {
        "platform": "MiRemote",
        "ip": "***.***.***.***",
        "token": "********************************",
        "hideLearn": false,
        "deviceCfgs": [
            {
                "type": "Switch",
                "data": {
                    
                }
            },
            {
                "type": "Projector",
                "data": {
                    
                }
            },
            {
                "type": "Light",
                "data": {
                    
                }
            },
            {
                "type": "AirConditioner",
                "data": {
                    
                }
            },
            {
                "type": "Custom",
                "data": {
                    
                }
            },
            {
                "type": "MomentarySwitch",
                "data": {
                    
                }
            },
            {
                "type": "LGAirConditioner",
                "name": "Thermostat",
                "info": {
                    "Manufacturer": "LG Electronics Inc.",
                    "Model": "S-W096AAW",
                    "SerialNumber": "AKB73675605"
                },
                "hidePlasma": false,
                "hideJetPower": false,
                "hideLight": true
            }
        ]
    }
]

Related websites

  • python-miio: Python library & console tool for controlling Xiaomi smart appliances

Package Sidebar

Install

npm i homebridge-mi-remote

Weekly Downloads

5

Version

0.3.8

License

UNLICENSED

Unpacked Size

101 kB

Total Files

12

Last publish

Collaborators

  • bwv1041