From b6109e07bb18ff064c050430b2b8a73e0da8c94f Mon Sep 17 00:00:00 2001 From: Brett-S-OWB Date: Wed, 16 Sep 2026 13:34:00 +0200 Subject: [PATCH 1/2] Add acls --- .../public/default-dynamic-security.json | 110 +++++++++++++++++- packages/helpermodules/update_config.py | 2 + 2 files changed, 108 insertions(+), 4 deletions(-) diff --git a/data/config/mosquitto/public/default-dynamic-security.json b/data/config/mosquitto/public/default-dynamic-security.json index e20de3a77d..f83f418294 100644 --- a/data/config/mosquitto/public/default-dynamic-security.json +++ b/data/config/mosquitto/public/default-dynamic-security.json @@ -81,7 +81,7 @@ "anonymousGroup": "anonymous", "roles": [ { - "rolename": "openwb-version:9", + "rolename": "openwb-version:10", "textname": "openWB Versionsnummer", "textdescription": "Diese Rolle ist ein Platzhalter für die openWB Versionsnummer und wird automatisch aktualisiert. Sie hat keine direkten Berechtigungen.", "acls": [] @@ -1686,6 +1686,18 @@ "topic": "openWB/chargepoint/+/config", "priority": 0, "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/consumer/+/module", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/consumer/+/extra_meter", + "priority": 0, + "allow": true } ] }, @@ -1799,19 +1811,73 @@ "acls": [ { "acltype": "publishClientSend", - "topic": "openWB/consumer/+/config", + "topic": "openWB/set/command/+/todo/addConsumer", "priority": 0, "allow": true }, { "acltype": "publishClientSend", - "topic": "openWB/consumer/+/module", + "topic": "openWB/set/command/+/todo/removeConsumer", "priority": 0, "allow": true }, { "acltype": "publishClientSend", - "topic": "openWB/consumer/+/usage", + "topic": "openWB/set/command/+/todo/addConsumerSchedulePlan", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientSend", + "topic": "openWB/set/command/+/todo/removeConsumerSchedulePlan", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientSend", + "topic": "openWB/set/command/+/todo/addConsumerTimePlan", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientSend", + "topic": "openWB/set/command/+/todo/removeConsumerTimePlan", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientSend", + "topic": "openWB/set/consumer/+/config", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientSend", + "topic": "openWB/set/consumer/+/module", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientSend", + "topic": "openWB/set/consumer/+/usage", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientSend", + "topic": "openWB/set/consumer/+/extra_meter", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientSend", + "topic": "openWB/set/general/legacy_smarthome_active", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/system/security/access/ConsumerConfiguration", "priority": 0, "allow": true }, @@ -1833,6 +1899,42 @@ "priority": 0, "allow": true }, + { + "acltype": "publishClientReceive", + "topic": "openWB/consumer/+/extra_meter", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/general/extern", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/general/legacy_smarthome_active", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/counter/get/hierarchy", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/system/device/+/config", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/system/device/+/component/+/config", + "priority": 0, + "allow": true + }, { "acltype": "publishClientReceive", "topic": "openWB/system/configurable/consumers", diff --git a/packages/helpermodules/update_config.py b/packages/helpermodules/update_config.py index d087ef0662..8b4076de62 100644 --- a/packages/helpermodules/update_config.py +++ b/packages/helpermodules/update_config.py @@ -595,6 +595,7 @@ class UpdateConfig: "^openWB/system/security/access/LoadManagementConfiguration$", "^openWB/system/security/access/ChargePointInstallation$", "^openWB/system/security/access/VehicleConfiguration$", + "^openWB/system/security/access/ConsumerConfiguration$", "^openWB/system/security/access/IoConfiguration$", "^openWB/system/security/access/LegacySmartHomeConfiguration$", "^openWB/system/security/access/InstallAssistant$", @@ -737,6 +738,7 @@ class UpdateConfig: ("openWB/system/security/access/LoadManagementConfiguration", True), ("openWB/system/security/access/ChargePointInstallation", True), ("openWB/system/security/access/VehicleConfiguration", True), + ("openWB/system/security/access/ConsumerConfiguration", True), ("openWB/system/security/access/IoConfiguration", True), ("openWB/system/security/access/LegacySmartHomeConfiguration", True), ("openWB/system/security/access/InstallAssistant", True), From f485440340c80ab81c032724934d18558dd8e4c1 Mon Sep 17 00:00:00 2001 From: Brett-S-OWB Date: Wed, 16 Sep 2026 14:40:36 +0200 Subject: [PATCH 2/2] Add load management prio to status --- data/config/mosquitto/public/default-dynamic-security.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/config/mosquitto/public/default-dynamic-security.json b/data/config/mosquitto/public/default-dynamic-security.json index f83f418294..5e850ad871 100644 --- a/data/config/mosquitto/public/default-dynamic-security.json +++ b/data/config/mosquitto/public/default-dynamic-security.json @@ -500,6 +500,12 @@ "topic": "openWB/system/security/access/Status", "priority": 0, "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/counter/get/loadmanagement_prios", + "priority": 0, + "allow": true } ] },