Mqtt-Pfad wird jetzt mit angegeben
This commit is contained in:
parent
79cbde6b4a
commit
698be221c0
@ -6,6 +6,7 @@ mqtt:
|
|||||||
port: 1883
|
port: 1883
|
||||||
user: admin
|
user: admin
|
||||||
password: 97sm3pHNSMZ4M5qUj0x8
|
password: 97sm3pHNSMZ4M5qUj0x8
|
||||||
|
path: /heizung/paradigma
|
||||||
button_circulation: zigbee2mqtt/WirelessButton
|
button_circulation: zigbee2mqtt/WirelessButton
|
||||||
influxdb:
|
influxdb:
|
||||||
bucket: Paradigma
|
bucket: Paradigma
|
||||||
|
|||||||
@ -23,6 +23,7 @@ pub struct MqttConfig {
|
|||||||
pub port: u16,
|
pub port: u16,
|
||||||
pub user: Option<String>,
|
pub user: Option<String>,
|
||||||
pub password: Option<String>,
|
pub password: Option<String>,
|
||||||
|
pub path: Option<String>,
|
||||||
pub button_circulation: Option<String>,
|
pub button_circulation: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -54,6 +54,7 @@ async function saveSettings() {
|
|||||||
port: parseInt(document.getElementById('mqtt_port').value, 10),
|
port: parseInt(document.getElementById('mqtt_port').value, 10),
|
||||||
user: document.getElementById('mqtt_user').value || null,
|
user: document.getElementById('mqtt_user').value || null,
|
||||||
password: document.getElementById('mqtt_password').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
|
button_circulation: document.getElementById('mqtt_button_circulation').value || null
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -93,6 +93,10 @@
|
|||||||
<label for="mqtt_password">MQTT Passwort:</label>
|
<label for="mqtt_password">MQTT Passwort:</label>
|
||||||
<input type="password" id="mqtt_password" class="text-input" value="{{ mqtt.password | default(value="") }}" />
|
<input type="password" id="mqtt_password" class="text-input" value="{{ mqtt.password | default(value="") }}" />
|
||||||
</div>
|
</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">
|
<div class="form-group">
|
||||||
<label for="mqtt_button_circulation">Button Circulation:</label>
|
<label for="mqtt_button_circulation">Button Circulation:</label>
|
||||||
<input type="text" id="mqtt_button_circulation" class="text-input" value="{{ mqtt.button_circulation | default(value="") }}" />
|
<input type="text" id="mqtt_button_circulation" class="text-input" value="{{ mqtt.button_circulation | default(value="") }}" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user