diff --git a/api/lib/ZwaveClient.ts b/api/lib/ZwaveClient.ts index 1dd50ad62bc..72e0526d366 100644 --- a/api/lib/ZwaveClient.ts +++ b/api/lib/ZwaveClient.ts @@ -522,6 +522,7 @@ export type ZUINode = { powerlevel?: number measured0dBm?: number RFRegion?: RFRegion + rfRegions?: { text: string, value: number }[] isFrequentListening?: FLiRS isRouting?: boolean keepAwake?: boolean @@ -6029,6 +6030,14 @@ class ZwaveClient extends TypedEventEmitter { node.deviceId = this._getDeviceID(node) node.hasDeviceConfigChanged = zwaveNode.hasDeviceConfigChanged() + + if(node.isControllerNode) { + node.rfRegions = this.driver.controller.getSupportedRFRegions()?.map( + (region) => ({ + value: region, + text: getEnumMemberName(RFRegion, region), + })).sort((a, b) => a.text.localeCompare(b.text)) ?? [] + } } async updateControllerNodeProps( diff --git a/src/components/nodes-table/NodeDetails.vue b/src/components/nodes-table/NodeDetails.vue index e4c6f0f7232..5c80dbb9b7f 100644 --- a/src/components/nodes-table/NodeDetails.vue +++ b/src/components/nodes-table/NodeDetails.vue @@ -85,7 +85,7 @@ >