aschzero / homebridge-airmega

Homebridge plugin for the Coway Airmega air purifier.
34 stars 19 forks source link

Remove "lightbulb" service #2

Closed michaeltorbert closed 5 years ago

michaeltorbert commented 5 years ago

You can already turn it on and off via the fan accessory, so this seems redundant, and could negatively affect automations that turn on/off all the lights in the house.

aschzero commented 5 years ago

Hi @michaeltorbert, the separate light accessory is used to toggle the purifier lights independently so that the purifier can still be on and running with the lights turned off. However, I do see how the light accessory can be a hindrance in some cases.

I'll make a change to allow the option of excluding the light accessory and should have a new version available later today.

michaeltorbert commented 5 years ago

@aschzero Maybe I'm mixed up a bit... doesn't the light accessory toggle the purifier itself on/off?

aschzero commented 5 years ago

@michaeltorbert Actually no, the light accessory just toggles the lights on the purifier and nothing else. Toggling the light accessory is the same behavior as tapping the lightbulb button on the purifier itself.

michaeltorbert commented 5 years ago

@aschzero Yep, I just checked and you're absolutely right. Being able to exclude the light accessory would still be nice though. Thanks so much for your work in creating this plugin.

aschzero commented 5 years ago

@michaeltorbert Of course! And thank you for your feedback; I'm glad you're finding the plugin useful!

I just pushed up homebridge-airmega@3.1.5 which adds the functionality to exclude the lightbulb accessory. You'll just have to update your config to include this line: "exclude": ["lightbulb"] so it'll look something like this:

{
  "platform": "Airmega",
  "username": "myusername",
  "password": "password123",
  "exclude": ["lightbulb"]
}

Please let me know if it works or if you happen to run into any issues. :)

aschzero commented 5 years ago

Closing this issue, please re-open if needed.