• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

seydx/homebridge-philipsair-platform: Homebridge plugin for philips air purifier ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

seydx/homebridge-philipsair-platform

开源软件地址:

https://github.com/seydx/homebridge-philipsair-platform

开源编程语言:

JavaScript 99.4%

开源软件介绍:

homebridge-philipsair-platform

npm npm GitHub last commit verified-by-homebridge 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
- active Whether the device is active and should be used 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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap