[homeassistant/homie] Standardize config URI (#11021)

* [homeassistant/homie] Standardize config URI

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2021-07-24 21:27:01 +02:00 committed by GitHub
parent 3d3cdf3889
commit e23a0de94a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View 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";
}

View 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>

View 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";

View 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>