Skip to content

Commit

Permalink
Adding support for Yeelight strip
Browse files Browse the repository at this point in the history
  • Loading branch information
aholstenson committed Jan 15, 2018
1 parent 3cdc002 commit 4d06200
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
9 changes: 0 additions & 9 deletions lib/devices/yeelight.lamp.js

This file was deleted.

11 changes: 8 additions & 3 deletions lib/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const PowerStrip = require('./devices/power-strip');

const Humidifier = require('./devices/humidifier');

const YeelightColor = require('./devices/yeelight.color');
const YeelightMono = require('./devices/yeelight.mono');

module.exports = {
'zhimi.airmonitor.v1': AirMonitor,

Expand All @@ -40,9 +43,11 @@ module.exports = {
'qmi.powerstrip.v1': PowerStrip,
'zimi.powerstrip.v2': PowerStrip,

'yeelink.light.lamp1': require('./devices/yeelight.lamp'),
'yeelink.light.mono1': require('./devices/yeelight.mono'),
'yeelink.light.color1': require('./devices/yeelight.color'),
'yeelink.light.lamp1': YeelightMono,
'yeelink.light.mono1': YeelightMono,
'yeelink.light.color1': YeelightColor,
'yeelink.light.strip1': YeelightColor,

'philips.light.sread1': require('./devices/eyecare-lamp2'),
'philips.light.bulb': require('./devices/philips-light-bulb')

Expand Down

0 comments on commit 4d06200

Please sign in to comment.