]> git.basschouten.com Git - openhab-addons.git/commitdiff
[renault] Add instructions for adding channels (#14572)
authorJacob Laursen <jacob-github@vindvejr.dk>
Sat, 11 Mar 2023 09:55:49 +0000 (10:55 +0100)
committerGitHub <noreply@github.com>
Sat, 11 Mar 2023 09:55:49 +0000 (10:55 +0100)
* Add instruction for adding channel

---------

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
bundles/org.openhab.binding.renault/src/main/resources/OH-INF/thing/thing-types.xml
bundles/org.openhab.binding.renault/src/main/resources/OH-INF/update/instructions.xml [new file with mode: 0644]

index 5be829c2c9d48bfef57995eef2979510ba3f3e0e..4923fb474ae06aed883b38be4f67597c45777b08 100644 (file)
                        <channel id="locationupdated" typeId="locationupdated"/>
                        <channel id="locked" typeId="locked"/>
                </channels>
+
+               <properties>
+                       <property name="thingTypeVersion">1</property>
+               </properties>
+
                <config-description>
 
                        <parameter name="myRenaultUsername" type="text" required="true">
diff --git a/bundles/org.openhab.binding.renault/src/main/resources/OH-INF/update/instructions.xml b/bundles/org.openhab.binding.renault/src/main/resources/OH-INF/update/instructions.xml
new file mode 100644 (file)
index 0000000..dab626c
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<update:update-descriptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:update="https://openhab.org/schemas/update-description/v1.0.0"
+       xsi:schemaLocation="https://openhab.org/schemas/update-description/v1.0.0 https://openhab.org/schemas/update-description-1.0.0.xsd">
+
+       <thing-type uid="renault:car">
+
+               <instruction-set targetVersion="1">
+                       <add-channel id="batterystatusupdated">
+                               <type>renault:batterystatusupdated</type>
+                       </add-channel>
+                       <add-channel id="locked">
+                               <type>renault:locked</type>
+                       </add-channel>
+                       <add-channel id="pause">
+                               <type>renault:pause</type>
+                       </add-channel>
+               </instruction-set>
+
+       </thing-type>
+
+</update:update-descriptions>