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-aqara-ir-controller

v1.0.1

Published

A simple plugin that exposes Aqara Ir AC control as a Thermostat

Downloads

90

Readme

Homebridge Aqara Ir AC

Introduction

Since Aqara is not willing to expose IR based Controllers to to HomeKit, I have decided to hack up this Homebridge plugin... Took me a couple of hours, so don't expect a smooth experience, but I am willing to fix the issues if someone reports them. :)

This plugin currently works with IR AC only, but can easily be expanded for the rest of the Aqara devices. I don't think that it makes sense since Aqara already has HomeKit integration for everything else.

Keep in mind that this will NOT work for AC Mode Ird control on new Aqara hubs such as M3, since Aqara API won't even list this as a device. It works only for manually configured Ird AC controls.

It makes sense for plugin this to be expanded to handle any other Ird control, but I didn't need this. I might accept wishes, and I will definitively accept pull requests for expansions.

Setup

Setup is not as straight forward as I would like, but the best one I could hack up with Homebridges UI limitations.

Don't let many of fields to confuse you.

Since Aqara is charging developers for API access after some request numbers have been reached, I have decided to make it a bit more complicated so that nobody has to pay.

Aqara does offer EVERYONE a free Demo application, that everyone can use.

In order to setup an account, go to Aqara Developer website sign up and log into console.

Select Manage Project on the left side, and view Details of the Demo Application.

Demo app has different keys for different server regions.

Select appropriate region in plugin config, and copy the necessary keys of the appropriate region of the demo app.

In the username field of the plugin configuration enter your Aqara username, email or mobile number.

If you now how to generate access token, you can paste it directly and hit bottom save button.

If not, click Proceed, and you will be provided with a field to enter auth code that you will receive over email or SMS.

Once you enter the code plugin will authenticate.

The only thing left for you is to select Home to integrate with (if you have multiple), and plugin will configure your devices.

If home is not selected IR AC remotes from ALL homes will be added.

Limitations

Right now plugin is not listening to Aqara events, so if you make changes with Aqara app, it will take some time for them to sync. Handles Celsius only Handles AC control only Doesn't have an option to set up cooling/heating range, it's fixed to 10 - 30

Future plans

To implement this listener at one point.

It would be cool to make a better interface with better UX. Homebridge has a terrible way to build interface, especially custom interface, and my plan was to hack this in a couple of hours, so I can't really investigate a way to improve this...