Skip to content

Commit

Permalink
fix(discovery): add DISCOVERY_DISABLE_CC_CONFIGURATION env var
Browse files Browse the repository at this point in the history
Fixes #3571
  • Loading branch information
robertsLando committed Apr 4, 2024
1 parent 65668cb commit 52241db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/lib/Gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,11 @@ export default class Gateway {
break
}
case CommandClasses.Configuration: {
if (!valueId.writeable) {
if (
!valueId.writeable ||
process.env.DISCOVERY_DISABLE_CC_CONFIGURATION ===
'true'
) {
return
}
let type = valueId.type
Expand Down
1 change: 1 addition & 0 deletions docs/guide/env-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ This is the list of the supported environment variables:
- `UID_DISCOVERY_PREFIX`: Sets the prefix used for MQTT Discovery `unique_id` of entities. Default is `zwavejs2mqtt_`.
- `TZ`: Set this env var to the timezone you want to use on UI. Default to browser TZ.
- `LOCALE`: Set this env var to the locale you want to use on UI. Default to browser locale.
- `DISCOVERY_DISABLE_CC_CONFIGURATION`: Set this env var to `'true'` to disable Configuration CC MQTT Discovery.

0 comments on commit 52241db

Please sign in to comment.