Skip to content

maxileith/homebridge-airport-express-connected

 
 

Repository files navigation

homebridge-airport-express-connected

mit license verified-by-homebridge npm npm donate

Homebridge plugin that creates an occupancy sensor that shows wether or not there is an active AirPlay 2 connection to AirPort Express (2nd Gen.) devices.

This project is a fork of homebridge-airport-express-playing. The key differences is that this plugin reports if there is a device connected and not if music is playing or paused. This is helpful for automatically turning on or off the connected HiFi system via automations.

Configuration

This easiest way to use this plugin is to use homebridge-config-ui-x.
To configure manually, add to the platforms section of Homebridge's config.json after installing the plugin.

Config:

{
    "name": "Airport Express Connected Platform",
    "platform": "AirportExpressConnected",
    "update": {
        "refreshRate": 3,
        "ignoreGroupWithLeadingDevice": true,
        "unreachable": {
            "ignore": false,
            "threshold": 30,
            "reportDisconnected": false
        }
    },
    "discovery": {
        "enabled": true,
        "always": true,
        "intervals": 30,
        "whitelist": {
            "enabled": false,
            "list": []
        },
        "blacklist": {
            "enabled": false,
            "list": []
        }
    }
}

About

Homebridge plugin that creates an occupancy sensor that shows wether or not there is an active AirPlay 2 connection to AirPort Express (2nd Gen.) devices.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%