angeloxx / homebridge-myhome

Homebridge plugin for BTicino/Legrand MyHome
MIT License
33 stars 18 forks source link

Fix index.js to correctly support MHOutlet device #4

Closed simont77 closed 7 years ago

simont77 commented 7 years ago

Ciao Angelo, I found out that the condition in the CASE clause to check if the device is a lamp or an outlet was wrong. With the fix, devices defined as MHOutlet in config.json now appear correctly as power outlet in HomeKit. I tested it and seems to work well.

enrico1036 commented 6 years ago

Why did you close this pull request? I tested the fix and it also works for me.