Page 1 of 1

Problem with Parameters from XML

Posted: Sunday 04 January 2026 14:11
by svd71
hi All,

in my plugin I had build couple of parameters

Code: Select all

    <params>
        <!-- Domoticz API -->
        <param field="DzAddress" label="Domoticz IP" width="200px" required="true" default="127.0.0.1"/>
        <param field="DzPort" label="Domoticz Port" width="80px" required="true" default="8080"/>
        
        <!-- MQTT Broker -->
        <param field="MqttAddress" label="MQTT Server" width="200px" required="true" default="127.0.0.1"/>
        <param field="MqttPort" label="MQTT Port" width="80px" required="true" default="1883"/>
        <param field="MqttUsername" label="MQTT Username" width="200px" required="false"/>
        <param field="MqttPassword" label="MQTT Password" width="200px" required="false" password="true"/>
.... and later in the code do the output of data to log:

Domoticz.Log("Plugin::onStart: Parameters: {}".format(repr(Parameters)))

and does not see my parameters line DzAddress, DzPort, MqttAddress, Mqttport, etc.

What I do wrong ?

BR

Re: Problem with Parameters from XML

Posted: Sunday 04 January 2026 20:34
by waltervl
Only the parameters listed in the wiki are available https://wiki.domoticz.com/Developing_a_ ... Parameters

If you need custom paramaters you need to choose one of the mode1 to mode6 parameters.

Re: Problem with Parameters from XML

Posted: Monday 05 January 2026 11:21
by svd71
thank you!