Supereg / homebridge-http-switch

Powerful http switch for Homebridge: https://github.com/homebridge/homebridge
ISC License
218 stars 36 forks source link

Allow service type declarations in the accessory definition stubs #107

Open dircm opened 2 years ago

dircm commented 2 years ago

Each accessory defined in this package will be interpreted by HomeKit as a switch type service. Some of my devices are lights, fans, curtains etc. HomeKit won't respond to instructions like "turn off the fans". I have to say something like "turn off the fan switches in room...."

If you could add the service: type to the accessory definition and use that as an override to the "switch" service definition when registering the accessories...?

I could attempt a PR if you give me a starting point in the code add to look at.. Tom.