Skip to content

Commit

Permalink
Handle Philips Hue light LWA001 (#853)
Browse files Browse the repository at this point in the history
* ✨ add device Philips Hue LWA001

* ✅ add LWA001 test data

Co-authored-by: Pierre-Gilles Leymarie <pierregilles.leymarie@gmail.com>
  • Loading branch information
Pierre-Gilles committed Aug 24, 2020
2 parents 8cf76e2 + ae675b6 commit 5d920e5
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
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 @@ -44,6 +44,7 @@ async function getLights() {
lightsToReturn.push(getPhilipsHueColorLight(philipsHueLight, serialNumber, this.serviceId));
break;
case 'LWO001': // Hue White Filament Bulb G93 E27
case 'LWA001': // Hue White Bulb E27 (Dimmable light 2700K)
case 'LWB010': // Hue white bulb with fixed warming light (2700K)
case 'LWB006': // Hue white lamp
case 'LWG004': // Hue white spot
Expand Down
62 changes: 62 additions & 0 deletions server/test/services/philips-hue/lights.json
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,68 @@
},
"_id": 25,
"id": 25
},
{
"state": {
"on": true,
"bri": 254,
"alert": "select",
"mode": "homeautomation",
"reachable": true
},
"swupdate": {
"state": "transferring",
"lastinstall": null
},
"type": "Dimmable light",
"name": "Hue white lamp 2",
"modelid": "LWA001",
"manufacturername": "Signify Netherlands B.V.",
"productname": "Hue white lamp",
"_rawData": {
"state": {
"on": true,
"bri": 254,
"alert": "select",
"mode": "homeautomation",
"reachable": true
},
"swupdate": {
"state": "transferring",
"lastinstall": null
},
"type": "Dimmable light",
"name": "Hue white lamp 2",
"modelid": "LWA001",
"manufacturername": "Signify Netherlands B.V.",
"productname": "Hue white lamp",
"capabilities": {
"certified": true,
"control": {
"mindimlevel": 5000,
"maxlumen": 800
},
"streaming": {
"renderer": false,
"proxy": false
}
},
"config": {
"archetype": "classicbulb",
"function": "functional",
"direction": "omnidirectional",
"startup": {
"mode": "safety",
"configured": true
}
},
"uniqueid": "00:17:88:01:08:9f:97:bd-0c",
"swversion": "1.53.3_r27175",
"swconfigid": "D6781B83",
"productid": "Philips-LWA001-1-A19DLv5"
},
"_id": 26,
"id": 26
}
]
}

0 comments on commit 5d920e5

Please sign in to comment.