Skip to content

Commit c79bee9

Browse files
authored
fix: use coord address when gppNwkAddr not present in GP frame for tempMaster (#12395)
1 parent e1607f5 commit c79bee9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/devices/schneider_electric.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {Zcl} from "zigbee-herdsman";
22
import type {PartialClusterOrRawAttributes} from "zigbee-herdsman/dist/controller/tstype";
3+
import {COORDINATOR_ADDRESS} from "zigbee-herdsman/dist/zspec";
34
import type {GpdManufAttributeReport} from "zigbee-herdsman/dist/zspec/zcl/definition/tstype";
45
import * as fz from "../converters/fromZigbee";
56
import * as tz from "../converters/toZigbee";
@@ -1476,7 +1477,7 @@ const fzLocal = {
14761477
"response",
14771478
{
14781479
options: 0b000,
1479-
tempMaster: msg.data.gppNwkAddr,
1480+
tempMaster: msg.data.gppNwkAddr ?? COORDINATOR_ADDRESS,
14801481
tempMasterTx: networkParameters.channel - 11,
14811482
srcID: msg.data.srcID,
14821483
gpdCmd: 0xfe,

0 commit comments

Comments
 (0)