Skip to content
Merged
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
42 changes: 39 additions & 3 deletions src/devices/shelly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,46 @@ export const definitions: DefinitionWithExtend[] = [
extend: [m.onOff({powerOnBehavior: false}), m.electricityMeter({producedEnergy: true, acFrequency: true})],
},
{
zigbeeModel: ["2PM"],
model: "2PM",
fingerprint: [
{
type: "Router",
manufacturerName: "Shelly",
modelID: "2PM",
endpoints: [
{ID: 1, profileID: 260, deviceID: 514, inputClusters: [0, 3, 4, 5, 258], outputClusters: []},
{ID: 239, profileID: 49153, deviceID: 8193, inputClusters: [64513, 64514], outputClusters: []},
{ID: 242, profileID: 41440, deviceID: 97, inputClusters: [], outputClusters: [33]},
],
},
],
model: "S4SW-002P16EU-COVER",
vendor: "Shelly",
description: "2PM Gen4",
description: "2PM Gen4 (Cover mode)",
extend: [m.windowCovering({controls: ["lift", "tilt"]})],
},
{
fingerprint: [
{
type: "Router",
manufacturerName: "Shelly",
modelID: "2PM",
endpoints: [
{ID: 1, profileID: 260, deviceID: 266, inputClusters: [0, 3, 4, 5, 6, 2820, 1794], outputClusters: []},
{ID: 2, profileID: 260, deviceID: 266, inputClusters: [4, 5, 6, 2820, 1794], outputClusters: []},
{ID: 239, profileID: 49153, deviceID: 8193, inputClusters: [64513, 64514], outputClusters: []},
{ID: 242, profileID: 41440, deviceID: 97, inputClusters: [], outputClusters: [33]},
],
},
],
model: "S4SW-002P16EU-SWITCH",
vendor: "Shelly",
description: "2PM Gen4 (Switch mode)",
extend: [
m.onOff({powerOnBehavior: false, endpointNames: ["l1", "l2"]}),
m.electricityMeter({producedEnergy: true, acFrequency: true, endpointNames: ["l1", "l2"]}),
],
endpoint: (device) => {
return {l1: 1, l2: 2};
},
},
];
Loading