Skip to content

Commit

Permalink
Document network-interface context (openhab#2197)
Browse files Browse the repository at this point in the history
This context was added in openhab/openhab-core#3981.

Signed-off-by: Wouter Born <[email protected]>
  • Loading branch information
wborn authored Jan 3, 2024
1 parent bb72ff5 commit 467f27c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion developers/addons/config-xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ These must be inside the XML escape sequence - eg.
</parameter-group>

<parameter name="String" type="{text|integer|decimal|boolean}" min="Decimal" max="Decimal" step="Decimal" pattern="String" required="{true|false}" readOnly="{true|false}" multiple="{true|false}" groupName="String" unit="A|cd|K|kg|m|mol|s|g|rad|sr|Hz|N|Pa|J|W|C|V|F|Ω|S|Wb|T|H|Cel|lm|lx|Bq|Gy|Sv|kat|m/s2|m2v|m3|kph|%|l|ms|min|h|d|week|y">
<context>{network-address|serial-port|password|password-create|color|date|datetime|email|month|week|dayOfWeek|time|tel|url|item|thing|group|tag|service|channel|rule|location}</context>
<context>{network-address|network-interface|serial-port|password|password-create|color|date|datetime|email|month|week|dayOfWeek|time|tel|url|item|thing|group|tag|service|channel|rule|location}</context>
<required>{true|false}</required>
<default>String</default>
<label>String</label>
Expand Down Expand Up @@ -111,6 +111,7 @@ The following contexts require a specific format of the content:

<table><tr><th>Name</th><th>Type</th><th>Format</th><th>Sample implementation</th></tr>
<tr><td>network-address</td><td>text</td><td>IPv4,IPv6, domain name</td><td><code>&lt;input type="text"/></code></td></tr>
<tr><td>network-interface</td><td>text</td><td>Network interface name, e.g. eth0</td><td><code>custom input field</code></td></tr>
<tr><td>serial-port</td><td>text</td><td>Serial port name, e.g. COM1</td><td>custom input field</td></tr>
<tr><td>password</td><td>text</td><td>alphanumeric characters</td><td><code>&lt;input type="password"/></code></td></tr>
<tr><td>password-create</td><td>text</td><td>alphanumeric characters</td><td>custom password input</td></tr>
Expand Down

0 comments on commit 467f27c

Please sign in to comment.