Problem with Parameters from XML

Python and python framework

Moderator: leecollings

Post Reply
svd71
Posts: 16
Joined: Saturday 09 January 2021 17:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Problem with Parameters from XML

Post 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
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Problem with Parameters from XML

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
svd71
Posts: 16
Joined: Saturday 09 January 2021 17:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Problem with Parameters from XML

Post by svd71 »

thank you!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest