* [mqtt.homeassistant] add support for Update component This component is fairly non-standard - it doesn't add any channels. Instead, it provides several properties to the thing, and also adds a thing configuration allowing you to trigger an OTA update on a Home Assistant device from MainUI. --------- Signed-off-by: Cody Cutrer <cody@cutrer.us>
44 lines
1.7 KiB
XML
44 lines
1.7 KiB
XML
<?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:mqtt:homeassistant">
|
|
<parameter name="topics" type="text" required="true" multiple="true">
|
|
<label>MQTT Config Topic</label>
|
|
<description>List of HomeAssistant configuration topics (e.g. /homeassistant/switch/4711/config)</description>
|
|
</parameter>
|
|
|
|
<parameter name="basetopic" type="text" required="true">
|
|
<label>MQTT Base Prefix</label>
|
|
<description>MQTT base prefix</description>
|
|
<default>homeassistant</default>
|
|
</parameter>
|
|
</config-description>
|
|
|
|
<config-description uri="thing-type:mqtt:homeassistant-updatable">
|
|
<parameter-group name="actions">
|
|
<label>Actions</label>
|
|
</parameter-group>
|
|
|
|
<parameter name="topics" type="text" required="true" multiple="true">
|
|
<label>MQTT Config Topic</label>
|
|
<description>List of HomeAssistant configuration topics (e.g. /homeassistant/switch/4711/config)</description>
|
|
</parameter>
|
|
|
|
<parameter name="basetopic" type="text" required="true">
|
|
<label>MQTT Base Prefix</label>
|
|
<description>MQTT base prefix</description>
|
|
<default>homeassistant</default>
|
|
</parameter>
|
|
|
|
<parameter name="doUpdate" type="boolean" groupName="actions">
|
|
<label>Update</label>
|
|
<description>Request the device do an OTA update</description>
|
|
<advanced>true</advanced>
|
|
<default>false</default>
|
|
</parameter>
|
|
</config-description>
|
|
</config-description:config-descriptions>
|