Skip to content

Commit

Permalink
[sleepiq] Add thing type update instructions (openhab#14460)
Browse files Browse the repository at this point in the history
* Add thing type update instructions
* Move thingTypeVersion to correct thing type
* Add groupIds to update instructions

Signed-off-by: Mark Hilbush <[email protected]>
  • Loading branch information
mhilbush authored and FordPrfkt committed Apr 19, 2023
1 parent c646817 commit 094ce96
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
<channel-group id="right" typeId="chamberGroupType"/>
</channel-groups>

<properties>
<property name="thingTypeVersion">1</property>
</properties>

<config-description>
<parameter name="bedId" type="text" required="true">
<label>Bed ID</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?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="sleepiq:dualBed">

<instruction-set targetVersion="1">
<add-channel id="todaySleepInBedSeconds" groupIds="left,right">
<type>sleepiq:todaySleepInBedSecondsType</type>
</add-channel>
<add-channel id="todaySleepOutOfBedSeconds" groupIds="left,right">
<type>sleepiq:todaySleepOutOfBedSecondsType</type>
</add-channel>
<add-channel id="todaySleepRestfulSeconds" groupIds="left,right">
<type>sleepiq:todaySleepRestfulSecondsType</type>
</add-channel>
<add-channel id="todaySleepRestlessSeconds" groupIds="left,right">
<type>sleepiq:todaySleepRestlessSecondsType</type>
</add-channel>
</instruction-set>

</thing-type>

</update:update-descriptions>

0 comments on commit 094ce96

Please sign in to comment.