Mqtt-Pfad wird jetzt mit angegeben

This commit is contained in:
Eric Neuber 2026-02-16 23:08:42 +01:00
parent 79cbde6b4a
commit 698be221c0
4 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@ mqtt:
port: 1883
user: admin
password: 97sm3pHNSMZ4M5qUj0x8
path: /heizung/paradigma
button_circulation: zigbee2mqtt/WirelessButton
influxdb:
bucket: Paradigma

View File

@ -23,6 +23,7 @@ pub struct MqttConfig {
pub port: u16,
pub user: Option<String>,
pub password: Option<String>,
pub path: Option<String>,
pub button_circulation: Option<String>,
}

View File

@ -54,6 +54,7 @@ async function saveSettings() {
port: parseInt(document.getElementById('mqtt_port').value, 10),
user: document.getElementById('mqtt_user').value || null,
password: document.getElementById('mqtt_password').value || null,
path: document.getElementById('mqtt_path')?.value || null,
button_circulation: document.getElementById('mqtt_button_circulation').value || null
};

View File

@ -93,6 +93,10 @@
<label for="mqtt_password">MQTT Passwort:</label>
<input type="password" id="mqtt_password" class="text-input" value="{{ mqtt.password | default(value="") }}" />
</div>
<div class="form-group">
<label for="mqtt_path">MQTT Pfad:</label>
<input type="text" id="mqtt_path" class="text-input" value="{{ mqtt.path | default(value="") }}" />
</div>
<div class="form-group">
<label for="mqtt_button_circulation">Button Circulation:</label>
<input type="text" id="mqtt_button_circulation" class="text-input" value="{{ mqtt.button_circulation | default(value="") }}" />