Skip to content

Commit a0bc0fb

Browse files
feat: Add Shelly Manufacturer Code and add shelly specific endpoint to z-stack
1 parent 3d542dd commit a0bc0fb

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/adapter/ember/ezsp/ezsp.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5305,7 +5305,10 @@ export class Ezsp extends EventEmitter<EmberEzspEventMap> {
53055305
} else if (
53065306
apsFrame.profileId === ZSpec.HA_PROFILE_ID ||
53075307
apsFrame.profileId === ZSpec.WILDCARD_PROFILE_ID ||
5308-
(apsFrame.profileId === ZSpec.GP_PROFILE_ID && type !== EmberIncomingMessageType.BROADCAST_LOOPBACK)
5308+
(apsFrame.profileId === ZSpec.GP_PROFILE_ID && type !== EmberIncomingMessageType.BROADCAST_LOOPBACK) ||
5309+
// TODO: Better (dynamic) way to handle this?
5310+
// Shelly WifiSetupCluster uses profileId 0xc001
5311+
apsFrame.profileId === 0xc001
53095312
) {
53105313
this.emit("incomingMessage", type, apsFrame, packetInfo.lastHopLqi, packetInfo.senderShortId, messageContents);
53115314
}

src/adapter/z-stack/adapter/endpoints.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,7 @@ export const Endpoints = [
5353
// Insta/Jung/Gira: OTA fallback EP (since it's buggy in firmware 10023202 when it tries to find a matching EP for
5454
// OTA - it queries for ZLL profile, but then contacts with HA profile)
5555
{...EndpointDefaults, endpoint: 47, appprofid: 0x0104},
56+
// Required for shelly wifi and rpc clusters
57+
{...EndpointDefaults, endpoint: 239, appprofid: 0xc001},
5658
{...EndpointDefaults, endpoint: 242, appprofid: 0xa1e0},
5759
];

src/zspec/zcl/definition/manufacturerCode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ export enum ManufacturerCode {
685685
MUI_LAB_INC = 0x1368,
686686
BHTRONICS_S_R_L = 0x1369,
687687
AKUVOX_XIAMEN_NETWORKS_CO_LTD = 0x136a,
688+
SHELLY = 0x1490,
688689
SBERDEVICES_LTD = 0x152f,
689690
GEWISS_S_P_A = 0x1994,
690691
CLIMAX_TECHNOLOGY_CO_LTD = 0x2794,

0 commit comments

Comments
 (0)