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 @@ -34,6 +34,7 @@ For the first generation, see [node-shellies](https://github.com/alexryd/node-sh
- [Shelly Pro Dimmer 1PM](https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen2/ShellyProDimmer1PM)
- [Shelly Pro Dimmer 0/1-10V PM](https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen2/ShellyProDimmer0110VPM)
- [Shelly Pro Dimmer 2PM](https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen2/ShellyProDimmer2PM)
- [Shelly 1 PM Mini Gen4](https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen4/ShellyMini1PMG4)

<sup>1</sup> Support for outbound websockets is a work in progress.

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/devices/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ export * from "./shelly-pro-dual-cover-pm";
export * from "./shelly-plus-dimmer-pm";
export * from "./shelly-plus-dimmer";
export * from "./shelly-gen3-2-pm";
export * from "./shelly-gen4-1-pm";
43 changes: 43 additions & 0 deletions src/devices/shelly-gen4-1-pm.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { component, Device, MultiProfileDevice } from './base';
import {
BluetoothLowEnergy,
Cloud,
Cover,
Input,
Mqtt,
OutboundWebSocket,
Script,
Switch,
WiFi,
} from '../components';

export class ShellyGen4Mini extends MultiProfileDevice {
static readonly model: string = "S4SW-001P8EU";
static readonly modelName: string = "Shelly 1PM Gen4 Mini";

@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 input = new Input(this, 0);

@component
readonly switch = new Switch(this, 0);

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

Device.registerClass(ShellyGen4Mini);