1.0.2 • Published 3 years ago

homebridge-philipsair-platform v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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
                }
            ]
        }
    ]
}
FieldsDescriptionDefaultRequired
platformMust always be PhilipsAirPlatform."PhilipsAirPlatform"Yes
nameFor logging purposes."PhilipsAirPlatform"No
debugEnables additional output (debug) in the log.falseNo
warnEnables additional output (warn) in the log.trueNo
errorEnables additional output (error) in the log.trueNo
extendedErrorEnables additional output (detailed debug) in the log.trueNo
devicesArray of Philips air purifiers.Yes
- nameUnique name of your device.Yes
- hostHost/IP address of your device.Yes
- portPort of your device.5683No
- manufacturerSet the manufacturer name for display in the Home app."Philips"No
- modelSet the model for display in the Home app."Air Purifier"No
- serialNumberSet the serial number for display in the Home app."000000"No
- humidifierExpose a separate humidifier accessory to HomeKit.falseNo
- lightExpose device lights as lightbulbs to HomeKit.falseNo
- temperatureExpose device temperature as temperature sensor to HomeKit.falseNo
- humidityExpose device humidity as humidity sensor to HomeKit.falseNo
- allergicFuncDoes this device support 'allergic' function?falseNo
- sleepSpeedDoes this device support 'sleep' speed?falseNo

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.