Add support for DWN-01 smart tunable downlight
This commit is contained in:
parent
5f77638ca3
commit
14ba127182
1 changed files with 26 additions and 1 deletions
|
|
@ -389,8 +389,33 @@ class PlejdApi {
|
|||
dimmable: true,
|
||||
broadcastClicks: false,
|
||||
};
|
||||
case 167:
|
||||
return {
|
||||
name: 'DWN-01',
|
||||
description: 'Smart tunable downlight with a built-in dimmer function, 8W',
|
||||
type: 'light',
|
||||
dimmable: true,
|
||||
broadcastClicks: false,
|
||||
};
|
||||
// PLEASE CREATE AN ISSUE WITH THE HARDWARE ID if you own one of these devices!
|
||||
// case
|
||||
// return {
|
||||
// name: 'DWN-02',
|
||||
// description: 'Smart tunable downlight with a built-in dimmer function, 8W',
|
||||
// type: 'light',
|
||||
// dimmable: true,
|
||||
// broadcastClicks: false,
|
||||
// };
|
||||
// case
|
||||
// return {
|
||||
// name: 'OUT-01',
|
||||
// description: 'Outdoor wall light with built-in LED, 2x5W',
|
||||
// type: 'light',
|
||||
// dimmable: true,
|
||||
// broadcastClicks: false,
|
||||
// };
|
||||
default:
|
||||
throw new Error(`Unknown device type with id ${plejdDevice.hardwareId}`);
|
||||
throw new Error(`Unknown device type with hardware id ${plejdDevice.hardwareId}. --- PLEASE POST THIS AND THE NEXT LOG ROWS to https://github.com/icanos/hassio-plejd/issues/ --- `);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue