mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-02-04 03:14:07 +01:00
[wemo] Fix already configured devices in inbox (#12215)
* Reuse UDN configuration parameter definition. * Fix inbox entries for already configured devices. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
e9deeccf49
commit
85ffbe37db
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<config-description:config-descriptions
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0"
|
||||||
|
xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0
|
||||||
|
https://openhab.org/schemas/config-description-1.0.0.xsd">
|
||||||
|
|
||||||
|
<config-description uri="thing-type:wemo:device">
|
||||||
|
<parameter name="udn" type="text" required="true">
|
||||||
|
<label>Unique Device Name</label>
|
||||||
|
<description>The UDN identifies the WeMo Device</description>
|
||||||
|
</parameter>
|
||||||
|
</config-description>
|
||||||
|
|
||||||
|
</config-description:config-descriptions>
|
@ -32,20 +32,10 @@ thing-type.config.wemo.CoffeeMaker.udn.label = Unique Device Name
|
|||||||
thing-type.config.wemo.CoffeeMaker.udn.description = The UDN identifies the WeMo Device
|
thing-type.config.wemo.CoffeeMaker.udn.description = The UDN identifies the WeMo Device
|
||||||
thing-type.config.wemo.MZ100.deviceID.label = Device ID
|
thing-type.config.wemo.MZ100.deviceID.label = Device ID
|
||||||
thing-type.config.wemo.MZ100.deviceID.description = The device ID identifies one certain WeMo light.
|
thing-type.config.wemo.MZ100.deviceID.description = The device ID identifies one certain WeMo light.
|
||||||
thing-type.config.wemo.Maker.udn.label = Unique Device Name
|
|
||||||
thing-type.config.wemo.Maker.udn.description = The UDN identifies the WeMo Device
|
|
||||||
thing-type.config.wemo.bridge.udn.label = Unique Device Name
|
thing-type.config.wemo.bridge.udn.label = Unique Device Name
|
||||||
thing-type.config.wemo.bridge.udn.description = The UDN identifies the WeMo Link Device
|
thing-type.config.wemo.bridge.udn.description = The UDN identifies the WeMo Link Device
|
||||||
thing-type.config.wemo.dimmer.udn.label = Unique Device Name
|
thing-type.config.wemo.device.udn.label = Unique Device Name
|
||||||
thing-type.config.wemo.dimmer.udn.description = The UDN identifies the WeMo Device
|
thing-type.config.wemo.device.udn.description = The UDN identifies the WeMo Device
|
||||||
thing-type.config.wemo.insight.udn.label = Unique Device Name
|
|
||||||
thing-type.config.wemo.insight.udn.description = The UDN identifies the WeMo Device
|
|
||||||
thing-type.config.wemo.lightswitch.udn.label = Unique Device Name
|
|
||||||
thing-type.config.wemo.lightswitch.udn.description = The UDN identifies the WeMo Device
|
|
||||||
thing-type.config.wemo.motion.udn.label = Unique Device Name
|
|
||||||
thing-type.config.wemo.motion.udn.description = The UDN identifies the WeMo Device
|
|
||||||
thing-type.config.wemo.socket.udn.label = Unique Device Name
|
|
||||||
thing-type.config.wemo.socket.udn.description = The UDN identifies the WeMo Device
|
|
||||||
|
|
||||||
# channel types
|
# channel types
|
||||||
|
|
||||||
|
@ -12,12 +12,9 @@
|
|||||||
<channel id="state" typeId="state"/>
|
<channel id="state" typeId="state"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
<config-description>
|
<representation-property>udn</representation-property>
|
||||||
<parameter name="udn" type="text" required="true">
|
|
||||||
<label>Unique Device Name</label>
|
<config-description-ref uri="thing-type:wemo:device"/>
|
||||||
<description>The UDN identifies the WeMo Device</description>
|
|
||||||
</parameter>
|
|
||||||
</config-description>
|
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
<thing-type id="insight">
|
<thing-type id="insight">
|
||||||
@ -37,15 +34,11 @@
|
|||||||
<channel id="energyTotal" typeId="energyTotal"/>
|
<channel id="energyTotal" typeId="energyTotal"/>
|
||||||
<channel id="standByLimit" typeId="standByLimit"/>
|
<channel id="standByLimit" typeId="standByLimit"/>
|
||||||
<channel id="onStandBy" typeId="onStandBy"/>
|
<channel id="onStandBy" typeId="onStandBy"/>
|
||||||
|
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
<config-description>
|
<representation-property>udn</representation-property>
|
||||||
<parameter name="udn" type="text" required="true">
|
|
||||||
<label>Unique Device Name</label>
|
<config-description-ref uri="thing-type:wemo:device"/>
|
||||||
<description>The UDN identifies the WeMo Device</description>
|
|
||||||
</parameter>
|
|
||||||
</config-description>
|
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
<thing-type id="lightswitch">
|
<thing-type id="lightswitch">
|
||||||
@ -56,12 +49,9 @@
|
|||||||
<channel id="state" typeId="state"/>
|
<channel id="state" typeId="state"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
<config-description>
|
<representation-property>udn</representation-property>
|
||||||
<parameter name="udn" type="text" required="true">
|
|
||||||
<label>Unique Device Name</label>
|
<config-description-ref uri="thing-type:wemo:device"/>
|
||||||
<description>The UDN identifies the WeMo Device</description>
|
|
||||||
</parameter>
|
|
||||||
</config-description>
|
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
<thing-type id="motion">
|
<thing-type id="motion">
|
||||||
@ -73,12 +63,9 @@
|
|||||||
<channel id="lastMotionDetected" typeId="lastMotionDetected"/>
|
<channel id="lastMotionDetected" typeId="lastMotionDetected"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
<config-description>
|
<representation-property>udn</representation-property>
|
||||||
<parameter name="udn" type="text" required="true">
|
|
||||||
<label>Unique Device Name</label>
|
<config-description-ref uri="thing-type:wemo:device"/>
|
||||||
<description>The UDN identifies the WeMo Device</description>
|
|
||||||
</parameter>
|
|
||||||
</config-description>
|
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
<!-- Standard WeMo Bulb with E27 socket -->
|
<!-- Standard WeMo Bulb with E27 socket -->
|
||||||
@ -117,12 +104,9 @@
|
|||||||
<channel id="sensor" typeId="sensor"/>
|
<channel id="sensor" typeId="sensor"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
<config-description>
|
<representation-property>udn</representation-property>
|
||||||
<parameter name="udn" type="text" required="true">
|
|
||||||
<label>Unique Device Name</label>
|
<config-description-ref uri="thing-type:wemo:device"/>
|
||||||
<description>The UDN identifies the WeMo Device</description>
|
|
||||||
</parameter>
|
|
||||||
</config-description>
|
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
<thing-type id="CoffeeMaker">
|
<thing-type id="CoffeeMaker">
|
||||||
@ -141,6 +125,8 @@
|
|||||||
<channel id="lastCleaned" typeId="lastCleaned"/>
|
<channel id="lastCleaned" typeId="lastCleaned"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
|
<representation-property>udn</representation-property>
|
||||||
|
|
||||||
<config-description>
|
<config-description>
|
||||||
<parameter name="udn" type="text" required="true">
|
<parameter name="udn" type="text" required="true">
|
||||||
<label>Unique Device Name</label>
|
<label>Unique Device Name</label>
|
||||||
@ -148,8 +134,7 @@
|
|||||||
</parameter>
|
</parameter>
|
||||||
<parameter name="pollingInterval" type="integer" required="false" min="15" max="180">
|
<parameter name="pollingInterval" type="integer" required="false" min="15" max="180">
|
||||||
<label>Polling Interval</label>
|
<label>Polling Interval</label>
|
||||||
<description>Interval polling the WeMo Coffee Maker.
|
<description>Interval polling the WeMo Coffee Maker.</description>
|
||||||
</description>
|
|
||||||
<default>60</default>
|
<default>60</default>
|
||||||
</parameter>
|
</parameter>
|
||||||
</config-description>
|
</config-description>
|
||||||
@ -170,12 +155,9 @@
|
|||||||
<channel id="nightModeBrightness" typeId="nightModeBrightness"/>
|
<channel id="nightModeBrightness" typeId="nightModeBrightness"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
<config-description>
|
<representation-property>udn</representation-property>
|
||||||
<parameter name="udn" type="text" required="true">
|
|
||||||
<label>Unique Device Name</label>
|
<config-description-ref uri="thing-type:wemo:device"/>
|
||||||
<description>The UDN identifies the WeMo Device</description>
|
|
||||||
</parameter>
|
|
||||||
</config-description>
|
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
<thing-type id="Crockpot">
|
<thing-type id="Crockpot">
|
||||||
@ -190,13 +172,9 @@
|
|||||||
<channel id="cookedTime" typeId="cookedTime"/>
|
<channel id="cookedTime" typeId="cookedTime"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
<config-description>
|
<representation-property>udn</representation-property>
|
||||||
<parameter name="udn" type="text">
|
|
||||||
<label>Unique Device Name</label>
|
<config-description-ref uri="thing-type:wemo:device"/>
|
||||||
<description>The UDN identifies the WeMo Device</description>
|
|
||||||
<required>true</required>
|
|
||||||
</parameter>
|
|
||||||
</config-description>
|
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
<thing-type id="Purifier">
|
<thing-type id="Purifier">
|
||||||
@ -212,13 +190,9 @@
|
|||||||
<channel id="filterPresent" typeId="filterPresent"/>
|
<channel id="filterPresent" typeId="filterPresent"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
<config-description>
|
<representation-property>udn</representation-property>
|
||||||
<parameter name="udn" type="text">
|
|
||||||
<label>Unique Device Name</label>
|
<config-description-ref uri="thing-type:wemo:device"/>
|
||||||
<description>The UDN identifies the WeMo Device</description>
|
|
||||||
<required>true</required>
|
|
||||||
</parameter>
|
|
||||||
</config-description>
|
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
<thing-type id="Humidifier">
|
<thing-type id="Humidifier">
|
||||||
@ -234,13 +208,9 @@
|
|||||||
<channel id="expiredFilterTime" typeId="expiredFilterTime"/>
|
<channel id="expiredFilterTime" typeId="expiredFilterTime"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
<config-description>
|
<representation-property>udn</representation-property>
|
||||||
<parameter name="udn" type="text">
|
|
||||||
<label>Unique Device Name</label>
|
<config-description-ref uri="thing-type:wemo:device"/>
|
||||||
<description>The UDN identifies the WeMo Device</description>
|
|
||||||
<required>true</required>
|
|
||||||
</parameter>
|
|
||||||
</config-description>
|
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
<thing-type id="Heater">
|
<thing-type id="Heater">
|
||||||
@ -255,13 +225,9 @@
|
|||||||
<channel id="heatingRemaining" typeId="heatingRemaining"/>
|
<channel id="heatingRemaining" typeId="heatingRemaining"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
<config-description>
|
<representation-property>udn</representation-property>
|
||||||
<parameter name="udn" type="text">
|
|
||||||
<label>Unique Device Name</label>
|
<config-description-ref uri="thing-type:wemo:device"/>
|
||||||
<description>The UDN identifies the WeMo Device</description>
|
|
||||||
<required>true</required>
|
|
||||||
</parameter>
|
|
||||||
</config-description>
|
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
<channel-type id="state">
|
<channel-type id="state">
|
||||||
|
Loading…
Reference in New Issue
Block a user