[sleepiq] Add thing type update instructions (#14460)

* Add thing type update instructions
* Move thingTypeVersion to correct thing type
* Add groupIds to update instructions

Signed-off-by: Mark Hilbush <mark@hilbush.com>
This commit is contained in:
Mark Hilbush 2023-03-07 17:13:18 -05:00 committed by GitHub
parent c8cdd2dfa5
commit dba5550ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View File

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

View File

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