Skip to content

Commit 8c292fe

Browse files
authored
feat: add handling for new Z2M features (#346)
* feat: add TL Hue reset interface * feat: enhance Network page with new data * fix: improve Home hero devices display * feat: add reporting sync buttons * feat: add bindings clear buttons * feat: add `action` tab in Dev Console * fix: re-sync i18n * fix: i18n * feat: add sync reporting in device Dev Console * fix: bump version * fix: update deps * fix: Dev Console display * fix: add hex support for Hue reset action serials * fix: update z2m dep * fix: Hue naming * fix: hue reset logic * fix: rename for action `hue_factory_reset` * fix: hide ext pan id by default * fix: reporting fields per spec (#349) * fix: reporting fields per spec * fix: update from API change
1 parent ebebf6f commit 8c292fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3872
-2026
lines changed

mocks/bridgeDefinitions.ts

Lines changed: 1799 additions & 1402 deletions
Large diffs are not rendered by default.

mocks/bridgeDevices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ export const BRIDGE_DEVICES: Message<Device[]> = {
15401540
configured_reportings: [
15411541
{
15421542
cluster: "genBasic",
1543-
attribute: "currentFileVersion",
1543+
attribute: "zclVersion",
15441544
maximum_report_interval: 35,
15451545
minimum_report_interval: 3000,
15461546
reportable_change: 3,

mocks/networkMapResponse.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
1818
sourceNwkAddr: 14567,
1919
target: { ieeeAddr: "0x00124b0022813501", networkAddress: 0 },
2020
targetIeeeAddr: "0x00124b0022813501",
21+
deviceType: 0x02,
22+
rxOnWhenIdle: 0x00,
23+
permitJoining: 0x00,
2124
},
2225
{
2326
depth: 1,
@@ -30,6 +33,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
3033
sourceNwkAddr: 19403,
3134
target: { ieeeAddr: "0x00124b0022813501", networkAddress: 0 },
3235
targetIeeeAddr: "0x00124b0022813501",
36+
deviceType: 0x02,
37+
rxOnWhenIdle: 0x00,
38+
permitJoining: 0x02,
3339
},
3440
{
3541
depth: 1,
@@ -42,6 +48,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
4248
sourceNwkAddr: 27244,
4349
target: { ieeeAddr: "0x00124b0022813501", networkAddress: 0 },
4450
targetIeeeAddr: "0x00124b0022813501",
51+
deviceType: 0x02,
52+
rxOnWhenIdle: 0x00,
53+
permitJoining: 0x00,
4554
},
4655
{
4756
depth: 1,
@@ -54,6 +63,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
5463
sourceNwkAddr: 35932,
5564
target: { ieeeAddr: "0x00124b0022813501", networkAddress: 0 },
5665
targetIeeeAddr: "0x00124b0022813501",
66+
deviceType: 0x02,
67+
rxOnWhenIdle: 0x00,
68+
permitJoining: 0x00,
5769
},
5870
{
5971
depth: 1,
@@ -66,6 +78,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
6678
sourceNwkAddr: 38440,
6779
target: { ieeeAddr: "0x00124b0022813501", networkAddress: 0 },
6880
targetIeeeAddr: "0x00124b0022813501",
81+
deviceType: 0x03,
82+
rxOnWhenIdle: 0x00,
83+
permitJoining: 0x00,
6984
},
7085
{
7186
depth: 255,
@@ -78,6 +93,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
7893
sourceNwkAddr: 33891,
7994
target: { ieeeAddr: "0x00124b0022813501", networkAddress: 0 },
8095
targetIeeeAddr: "0x00124b0022813501",
96+
deviceType: 0x01,
97+
rxOnWhenIdle: 0x01,
98+
permitJoining: 0x01,
8199
},
82100
{
83101
depth: 255,
@@ -90,6 +108,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
90108
sourceNwkAddr: 38955,
91109
target: { ieeeAddr: "0x00124b0022813501", networkAddress: 0 },
92110
targetIeeeAddr: "0x00124b0022813501",
111+
deviceType: 0x01,
112+
rxOnWhenIdle: 0x01,
113+
permitJoining: 0x02,
93114
},
94115
{
95116
depth: 255,
@@ -102,6 +123,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
102123
sourceNwkAddr: 17462,
103124
target: { ieeeAddr: "0x00124b0022813501", networkAddress: 0 },
104125
targetIeeeAddr: "0x00124b0022813501",
126+
deviceType: 0x01,
127+
rxOnWhenIdle: 0x02,
128+
permitJoining: 0x00,
105129
},
106130
{
107131
depth: 0,
@@ -114,6 +138,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
114138
sourceNwkAddr: 0,
115139
target: { ieeeAddr: "0x00124b001e73227f", networkAddress: 38955 },
116140
targetIeeeAddr: "0x00124b001e73227f",
141+
deviceType: 0x00,
142+
rxOnWhenIdle: 0x01,
143+
permitJoining: 0x00,
117144
},
118145
{
119146
depth: 2,
@@ -126,6 +153,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
126153
sourceNwkAddr: 20205,
127154
target: { ieeeAddr: "0x00124b001e73227f", networkAddress: 38955 },
128155
targetIeeeAddr: "0x00124b001e73227f",
156+
deviceType: 0x03,
157+
rxOnWhenIdle: 0x00,
158+
permitJoining: 0x00,
129159
},
130160
{
131161
depth: 2,
@@ -138,6 +168,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
138168
sourceNwkAddr: 20681,
139169
target: { ieeeAddr: "0x00124b001e73227f", networkAddress: 38955 },
140170
targetIeeeAddr: "0x00124b001e73227f",
171+
deviceType: 0x02,
172+
rxOnWhenIdle: 0x02,
173+
permitJoining: 0x02,
141174
},
142175
{
143176
depth: 2,
@@ -150,6 +183,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
150183
sourceNwkAddr: 17462,
151184
target: { ieeeAddr: "0x00124b001e73227f", networkAddress: 38955 },
152185
targetIeeeAddr: "0x00124b001e73227f",
186+
deviceType: 0x01,
187+
rxOnWhenIdle: 0x02,
188+
permitJoining: 0x00,
153189
},
154190
{
155191
depth: 255,
@@ -162,6 +198,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
162198
sourceNwkAddr: 33891,
163199
target: { ieeeAddr: "0x00124b001e73227f", networkAddress: 38955 },
164200
targetIeeeAddr: "0x00124b001e73227f",
201+
deviceType: 0x01,
202+
rxOnWhenIdle: 0x01,
203+
permitJoining: 0x01,
165204
},
166205
{
167206
depth: 0,
@@ -174,6 +213,9 @@ export const NETWORK_MAP_RESPONSE: ResponseMessage<"bridge/response/networkmap">
174213
sourceNwkAddr: 38955,
175214
target: { ieeeAddr: "0x0017880103d55d65", networkAddress: 17462 },
176215
targetIeeeAddr: "0x0017880103d55d65",
216+
deviceType: 0x01,
217+
rxOnWhenIdle: 0x01,
218+
permitJoining: 0x02,
177219
},
178220
],
179221
nodes: [

0 commit comments

Comments
 (0)