diff --git a/api/lib/Gateway.ts b/api/lib/Gateway.ts index 92754f8acf..5c413cfeca 100644 --- a/api/lib/Gateway.ts +++ b/api/lib/Gateway.ts @@ -164,6 +164,7 @@ export type GatewayValue = { receiveFunction?: string qos?: 0 | 1 | 2 retain?: boolean + ccConfigEnableDiscovery?: boolean } export type ScheduledJob = { @@ -1753,6 +1754,13 @@ export default class Gateway { default: return } + + // by default configuration CC discovery entities are disabled + // them can be enabled by setting ccConfigEnableDiscovery to true + // on gateway values configuration + cfg.discovery_payload.enabled_by_default = + !!valueConf?.ccConfigEnableDiscovery + break } default: diff --git a/src/components/dialogs/DialogGatewayValue.vue b/src/components/dialogs/DialogGatewayValue.vue index 4e7445ed99..4ff5f9755b 100644 --- a/src/components/dialogs/DialogGatewayValue.vue +++ b/src/components/dialogs/DialogGatewayValue.vue @@ -133,12 +133,12 @@ > - + > - + + + - + > @@ -189,12 +195,12 @@ - + >