Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hue Service - Fix #764 - Handle LWO001 light #765

Merged
merged 6 commits into from
May 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions server/services/philips-hue/lib/light/light.getLights.js
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
}
]
}