jamesrodda / homebridge-mihomegateway

A homebridge plugin for connecting the MiHome gateway to HomeKit
Apache License 2.0
12 stars 2 forks source link

MiHome relays #1

Closed thd99 closed 5 years ago

thd99 commented 6 years ago

MiHome relays are the same as MiHome switches, so adding:

  switch (device.device_type) {
    case "light":
      serviceType = Service.Switch;
      break;
    case "relay":
      serviceType = Service.Switch;
      break;
default:

works great :)

jamesrodda commented 6 years ago

Nice one! Feel free to submit a PR or I'll incorporate that next time I make any updates. Thanks.

jamesrodda commented 5 years ago

Finally got round to doing this :) New release incoming... #2