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-philipsair-platform

v1.0.2

Published

Homebridge plugin for philips air purifier and humidifier.

Downloads

22

Readme

homebridge-philipsair-platform

npm npm GitHub last commit Discord Donate

Creating and maintaining Homebridge plugins consume a lot of time and effort, if you would like to share your appreciation, feel free to "Star" or donate.

Click here to review more of my plugins.

Info

This is a plugin for Philips Air Purifier/Humidifier.

This plugin supports following functions:

  • Air Purifier
  • Humidifier
  • Device Lights
  • Temperature Sensor
  • Humidity Sensor

Installation

After Homebridge has been installed:

sudo npm install -g --unsafe-perm homebridge-philipsair-platform@latest

The plugin uses a library based on python3. To use the plugin, Python/Pip must be installed!

sudo apt install python3-pip git

You also need the aioairctrl module from Peter-J

sudo pip3 install -U git+https://github.com/Peter-J/aioairctrl

Example Config

{
   ...
    "platforms": [
        {
            "platform": "PhilipsAirPlatform",
            "name": "PhilipsAirPlatform",
            "debug": false,
            "warn": true,
            "error": true,
            "extendedError": true,
            "devices": [
                {
                    "active": true,
                    "name": "Livingroom Philips",
                    "manufacturer": "Philips",
                    "model": "AC3829",
                    "serialNumber": "000000",
                    "host": "192.168.178.111",
                    "port": 3333,
                    "light": true,
                    "temperature": true,
                    "humidity": true,
                    "humidifier": true,
                    "allergicFunc": true,
                    "sleepSpeed": false
                }
            ]
        }
    ]
}

| Fields | Description | Default | Required | |------------------|--------------------------------------------------------------|------------------------|----------| | platform | Must always be PhilipsAirPlatform. | "PhilipsAirPlatform" | Yes | | name | For logging purposes. | "PhilipsAirPlatform" | No | | debug | Enables additional output (debug) in the log. | false | No | | warn | Enables additional output (warn) in the log. | true | No | | error | Enables additional output (error) in the log. | true | No | | extendedError | Enables additional output (detailed debug) in the log. | true | No | | devices | Array of Philips air purifiers. | | Yes | |- name | Unique name of your device. | | Yes | |- host | Host/IP address of your device. | | Yes | |- port | Port of your device. | 5683 | No | |- manufacturer | Set the manufacturer name for display in the Home app. | "Philips" | No | |- model | Set the model for display in the Home app. | "Air Purifier" | No | |- serialNumber | Set the serial number for display in the Home app. | "000000" | No | |- humidifier | Expose a separate humidifier accessory to HomeKit. | false | No | |- light | Expose device lights as lightbulbs to HomeKit. | false | No | |- temperature | Expose device temperature as temperature sensor to HomeKit. | false | No | |- humidity | Expose device humidity as humidity sensor to HomeKit. | false | No | |- allergicFunc | Does this device support 'allergic' function? | false | No | |- sleepSpeed | Does this device support 'sleep' speed? | false | No |

For a full config.json, please look at Example Config for more details.

Tested devices

The following devices have been tested with this plugin and confirm that they work without problems

  • AC3829

Supported clients

This plugin has been verified to work with the following apps/systems:

  • iOS > 13
  • Apple Home
  • All 3rd party apps like Elgato Eve etc
  • Homebridge >= v1.3.0
  • Node >= 14

TODO

  • [ ] FakeGato Support

Contributing

This project is heavily inspired by https://github.com/NikDevx/homebridge-philips-air - Since the plugin didn't work for me, I wrote a new one from scratch. The homebridge-philips-air was a very great help for the implementation!

You can contribute to this homebridge plugin in following ways:

  • Report issues and help verify fixes as they are checked in.
  • Review the source code changes.
  • Contribute bug fixes.
  • Contribute changes to extend the capabilities
  • Pull requests are accepted.

See CONTRIBUTING

Troubleshooting

If you have any issues with the plugin then you can run this plugin in debug mode, which will provide some additional information. This might be useful for debugging issues. Just open your config ui and set debug to true!

Disclaimer

All product and company names are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.

License

MIT License

Copyright (c) 2020-2021 SeydX

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.