AlexGustafsson / homebridge-wol

A Wake on Lan plugin for Homebridge
MIT License
298 stars 30 forks source link

Make the exposed service configurable #123

Open AlexGustafsson opened 4 years ago

AlexGustafsson commented 4 years ago

Backstory

There's a need to allow users to specify what service is exposed by this plugin to allow for other icons in the Home app etc. (see #122). For historical reasons, it has always been a simple switch - but it could've been anything that represents an on or off state and allows for switching between the states (such as a lamp, a speaker or a TV).

Issue

Implement a way to make the exposed service (currently a switch) configurable to allow for more accessory types supporting an on / off state, such as a lamp, speaker or TV.

The various accessories are documented here https://developers.homebridge.io.

Examples:

AlexGustafsson commented 2 years ago

It would also be nice to be able to turn the accessory into a stateless button. See #183.