npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-tuya-ir

v1.1.0

Published

Allows homebridge to control Tuya IR Blaster based devices

Downloads

54

Readme

Homebridge Tuya IR

verified-by-homebridge npm GitHub npm GitHub issues GitHub pull requests

GitHub contributors GitHub last commit

Control your Tuya Smart IR based devices in HomeKit. Also works with Smart Home IR Blaster. You can add multiple Smart IR device to single configuration.

Supported Devices

  • Air Conditioner (Only pre-configured vendor. No DIY devices)
  • Fan (Pre-configured and DIY devices)
  • Light (Pre-configured only. No DIY). Light supports only on-off and brightness control.
  • DIY Devices. Each learned button will be added a switch.
  • All other Pre-configured remotes will be added as switch to turn them on and off only. No other feature. (No DIY devices)

Installation Instructions

Option 1: Install via Homebridge Config UI X:

Search for "Tuya IR" in homebridge-config-ui-x and install homebridge-tuya-ir.

Option 2: Manually Install:

sudo npm install -g homebridge-tuya-ir

Add Smart IR and Remotes

Download Tuya Smart app and add your Smart IR device based on OEM documentation and add remotes you want to control using the Smart IR device.

Create Tuya IoT Project

  • Follow steps on Tuya website to create your Tuya Cloud project and assign your devices to the project.
  • Login to your Tuya IoT account and open the project. Each remote is shown as separate device.
  • The Smart IR device will also be shown as a separate device.
  • Copy the device ID for Smart IR and remotes as shown in the image below. You will need to these to configure the plugin.

Authorization

Tuya IoT Platform You need to attach multiple services to your Tuya IOT project.

  1. Search for "IR Control Hub Open Service" in Tuya IoT Platform Service
  2. Subscribe to the service, authorize the project you are working on.

Repeat the steps for all the services in the following image

Configuration

UI

  1. Navigate to the Plugins page in homebridge-config-ui-x.
  2. Click the Settings button for the Tuya IR plugin.
  3. Add your devices
  4. Add device parameters
  5. Restart Homebridge for the changes to take effect.

Manual

  1. Edit the config.json file to add your devices and parameters.
  2. Sample Configuration
"platforms": [
    {
        "name": "TuyaIR",
        "tuyaAPIClientId": "Your Tuya Client ID",
        "tuyaAPISecret": "Your Tuya API Secret",
        "deviceRegion": "eu",
        "smartIR": [
            {
                "deviceId": "xxxxxxx",
                "autoFetchRemotesFromServer": false,
                "configuredRemotes": [
                    {
                        "id": "xxxxxxx",
                        "diy": false,
                        "model": "Sample",
                        "brand": "Sample Brand"
                    },
                    {
                        "id": "xxxxxx",
                        "diy": false,
                        "model": "Sample",
                        "brand": "Sample Brand"
                    }
                ]
            }
        ],
        "platform": "TuyaIR"
    }
]
  1. Restart Homebridge

Known Issues

  1. Tuya API doesn't always return devices added to Smart IR based on OEM hardware. Thus, you need to add them in your app and then provide IDs in the plugin configuration. This is configuruable in the configuration.

Contributing

If you have new accessory logic for a new device, please add a function defined by manufacturer, and describe your changes in the readME file.

Donating

Please donate to a local pet shelter, or food pantry. It's been a wild time, but we can do our part by helping others.