Skip to content
Open
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ For the first generation, see [node-shellies](https://github.com/alexryd/node-sh
* [Shelly Plus 2 PM](https://shelly-api-docs.shelly.cloud/gen2/Devices/ShellyPlus2PM)
* [Shelly Plus I4](https://shelly-api-docs.shelly.cloud/gen2/Devices/ShellyPlusI4)
* [Shelly Plus Plug US](https://shelly-api-docs.shelly.cloud/gen2/Devices/ShellyPlugUS)
* [Shelly Plus WallDimmer](https://shelly-api-docs.shelly.cloud/gen2/Devices/ShellyPlusWallDimmer)
* [Shelly Plus H&T](https://shelly-api-docs.shelly.cloud/gen2/Devices/ShellyPlusHT) <sup>1</sup>
* [Shelly Pro 1](https://shelly-api-docs.shelly.cloud/gen2/Devices/ShellyPro1)
* [Shelly Pro 1 PM](https://shelly-api-docs.shelly.cloud/gen2/Devices/ShellyPro1PM)
Expand Down
1 change: 1 addition & 0 deletions src/devices/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export * from './shelly-plus-2-pm';
export * from './shelly-plus-ht';
export * from './shelly-plus-i4';
export * from './shelly-plus-plug-us';
export * from './shelly-plus-wd';
export * from './shelly-pro-1';
export * from './shelly-pro-1-pm';
export * from './shelly-pro-2';
Expand Down
38 changes: 38 additions & 0 deletions src/devices/shelly-plus-wd.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { component, Device } from './base';
import {
BluetoothLowEnergy,
Cloud,
Mqtt,
OutboundWebSocket,
Script,
Light,
WiFi,
} from '../components';

export class ShellyPlusWallDimmer extends Device {
static readonly model: string = 'SNDM-0013US';
static readonly modelName: string = 'Shelly Plus WallDimmer';

@component
readonly wifi = new WiFi(this);

@component
readonly bluetoothLowEnergy = new BluetoothLowEnergy(this);

@component
readonly cloud = new Cloud(this);

@component
readonly mqtt = new Mqtt(this);

@component
readonly outboundWebSocket = new OutboundWebSocket(this);

@component
readonly light0 = new Light(this, 0);

@component
readonly script = new Script(this);
}

Device.registerClass(ShellyPlusWallDimmer);