From ae920f71dd4e48c74ead17a94566bf65b40092c5 Mon Sep 17 00:00:00 2001 From: Brett-S-OWB Date: Tue, 3 Nov 2026 15:15:53 +0100 Subject: [PATCH] add topic to support role --- .../public/default-dynamic-security.json | 146 +++++++++++++++++- packages/helpermodules/update_config.py | 2 + 2 files changed, 147 insertions(+), 1 deletion(-) diff --git a/data/config/mosquitto/public/default-dynamic-security.json b/data/config/mosquitto/public/default-dynamic-security.json index b6d2bac6ec..4244181f5b 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:13", + "rolename": "openwb-version:14", "textname": "openWB Versionsnummer", "textdescription": "Diese Rolle ist ein Platzhalter für die openWB Versionsnummer und wird automatisch aktualisiert. Sie hat keine direkten Berechtigungen.", "acls": [] @@ -2582,6 +2582,132 @@ "priority": 0, "allow": true }, + { + "acltype": "publishClientReceive", + "topic": "openWB/bat/+/get/fault_state", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/bat/+/get/fault_str", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/chargepoint/+/config", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/chargepoint/+/get/fault_state", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/chargepoint/+/get/fault_str", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/consumer/+/get/fault_state", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/consumer/+/get/fault_str", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/consumer/+/module", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/counter/+/get/fault_state", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/counter/+/get/fault_str", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/counter/get/hierarchy", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/io/states/+/get/fault_state", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/io/states/+/get/fault_str", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/optional/ep/flexible_tariff/get/fault_state", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/optional/ep/flexible_tariff/get/fault_str", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/optional/ep/grid_fee/get/fault_state", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/optional/ep/grid_fee/get/fault_str", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/optional/forecast/get/fault_state", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/optional/forecast/get/fault_str", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/pv/+/get/fault_state", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/pv/+/get/fault_str", + "priority": 0, + "allow": true + }, { "acltype": "publishClientReceive", "topic": "openWB/system/current_branch_commit", @@ -2612,6 +2738,12 @@ "priority": 0, "allow": true }, + { + "acltype": "publishClientReceive", + "topic": "openWB/system/io/+/config", + "priority": 0, + "allow": true + }, { "acltype": "publishClientReceive", "topic": "openWB/system/security/access/Support", @@ -2624,6 +2756,18 @@ "priority": 0, "allow": true }, + { + "acltype": "publishClientReceive", + "topic": "openWB/vehicle/+/get/fault_state", + "priority": 0, + "allow": true + }, + { + "acltype": "publishClientReceive", + "topic": "openWB/vehicle/+/get/fault_str", + "priority": 0, + "allow": true + }, { "acltype": "publishClientReceive", "topic": "openWB/vehicle/+/info", diff --git a/packages/helpermodules/update_config.py b/packages/helpermodules/update_config.py index aa2e69aa40..a94745db51 100644 --- a/packages/helpermodules/update_config.py +++ b/packages/helpermodules/update_config.py @@ -365,6 +365,8 @@ class UpdateConfig: "^openWB/io/states/[0-9]+/get/analog_output$", "^openWB/io/states/[0-9]+/get/digital_input$", "^openWB/io/states/[0-9]+/get/digital_output$", + "^openWB/io/states/[0-9]+/get/fault_state$", + "^openWB/io/states/[0-9]+/get/fault_str$", "^openWB/io/states/[0-9]+/set/analog_input$", "^openWB/io/states/[0-9]+/set/analog_output$", "^openWB/io/states/[0-9]+/set/digital_input$",