Skip to content

Commit

Permalink
Fix #764 : Handle LWO001 light (#765)
Browse files Browse the repository at this point in the history
* Handle LLC001 and LTW013 in hue service
* Handle LWO001 light in Hue Service

Co-authored-by: Pierre-Gilles Leymarie <pierregilles.leymarie@gmail.com>
  • Loading branch information
VonOx and Pierre-Gilles committed May 4, 2020
1 parent 764c68c commit 947ad9b
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/services/philips-hue/lib/light/light.getLights.js
Expand Up @@ -43,6 +43,7 @@ async function getLights() {
case 'LLC010': // Hue iris
lightsToReturn.push(getPhilipsHueColorLight(philipsHueLight, serialNumber, this.serviceId));
break;
case 'LWO001': // Hue White Filament Bulb G93 E27
case 'LWB010': // Hue white bulb with fixed warming light (2700K)
case 'LWB006': // Hue white lamp
case 'LWG004': // Hue white spot
Expand Down
46 changes: 46 additions & 0 deletions server/test/services/philips-hue/lights.json
Expand Up @@ -1093,6 +1093,52 @@
},
"_id": 23,
"id": 23
},
{
"state": {
"on": true,
"bri": 254,
"alert": "none",
"mode": "homeautomation",
"reachable": true
},
"swupdate": {
"state": "noupdates",
"lastinstall": "2019-10-06T19:48:01"
},
"type": "Dimmable light",
"name": "Ampoule Hue salon",
"modelid": "LWO001",
"manufacturername": "Signify Netherlands B.V.",
"productname": "Hue filament bulb",
"_rawData": {
"capabilities": {
"certified": true,
"control": {
"mindimlevel": 2000,
"maxlumen": 550
},
"streaming": {
"renderer": false,
"proxy": false
}
},
"config": {
"archetype": "vintagebulb",
"function": "decorative",
"direction": "omnidirectional",
"startup": {
"mode": "safety",
"configured": true
}
},
"uniqueid": "00:17:88:01:08:9f:97:bd-0b",
"swversion": "1.65.9_hB3217DF",
"swconfigid": "E552ED14",
"productid": "Philips-LWO001-1-G93CFDLv1"
},
"_id": 24,
"id": 24
}
]
}

0 comments on commit 947ad9b

Please sign in to comment.