]> git.basschouten.com Git - openhab-addons.git/commitdiff
[homeassistant/homie] Standardize config URI (#11021)
authorlolodomo <lg.hc@free.fr>
Sat, 24 Jul 2021 19:27:01 +0000 (21:27 +0200)
committerGitHub <noreply@github.com>
Sat, 24 Jul 2021 19:27:01 +0000 (21:27 +0200)
* [homeassistant/homie] Standardize config URI

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/generic/internal/MqttBindingConstants.java
bundles/org.openhab.binding.mqtt.homeassistant/src/main/resources/OH-INF/config/homeassistant-channel-config.xml
bundles/org.openhab.binding.mqtt.homie/src/main/java/org/openhab/binding/mqtt/homie/generic/internal/MqttBindingConstants.java
bundles/org.openhab.binding.mqtt.homie/src/main/resources/OH-INF/config/homie-channel-config.xml

index ddcd6dca1573da5f9dfaf0279f474871a7bdcad9..39d11f1c67112919991f6c129ebe3507871f3075 100644 (file)
@@ -29,5 +29,5 @@ public class MqttBindingConstants {
     // List of all Thing Type UIDs
     public static final ThingTypeUID HOMEASSISTANT_MQTT_THING = new ThingTypeUID(BINDING_ID, "homeassistant");
 
-    public static final String CONFIG_HA_CHANNEL = "mqtt:ha_channel";
+    public static final String CONFIG_HA_CHANNEL = "channel-type:mqtt:ha-channel";
 }
index d1c27cced9c932cc2116a2d32c8735eccf6fb79e..64cbf21ea2977981681c1148f2b33794ffc2b62d 100644 (file)
@@ -4,7 +4,7 @@
        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="mqtt:ha_channel">
+       <config-description uri="channel-type:mqtt:ha-channel">
                <parameter name="component" type="text" readOnly="true" required="true">
                        <label>Component</label>
                        <description>HomeAssistant component type (e.g. binary_sensor, switch, light)</description>
index 0f423f363eb2c70e218848ac827f23d961c3bd17..8ed20a9b59763adf1d53eaaf11f6c1720ebf14ce 100644 (file)
@@ -29,7 +29,7 @@ public class MqttBindingConstants {
     // List of all Thing Type UIDs
     public static final ThingTypeUID HOMIE300_MQTT_THING = new ThingTypeUID(BINDING_ID, "homie300");
 
-    public static final String CONFIG_HOMIE_CHANNEL = "mqtt:homie_channel";
+    public static final String CONFIG_HOMIE_CHANNEL = "channel-type:mqtt:homie-channel";
 
     public static final String HOMIE_PROPERTY_VERSION = "homieversion";
     public static final String HOMIE_PROPERTY_HEARTBEAT_INTERVAL = "heartbeat_interval";
index 741a1369644e39eeb57f1c22c419ce1a10eec213..83e50a30bb53560d45a718f8bcb657cb5cb344e4 100644 (file)
@@ -4,7 +4,7 @@
        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="mqtt:homie_channel">
+       <config-description uri="channel-type:mqtt:homie-channel">
                <parameter name="unit" type="text">
                        <label>Unit</label>
                        <description>The channels unit</description>