Skip to content

Instantly share code, notes, and snippets.

@watou

watou/output.md Secret

Created September 22, 2016 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save watou/ac01ecd6ac7c114095817ecc05e7c40f to your computer and use it in GitHub Desktop.
Save watou/ac01ecd6ac7c114095817ecc05e7c40f to your computer and use it in GitHub Desktop.

Multisensor Wintop Multi-sensor

Wintop Multi-sensor

Properties

Name Value
vendor Wintop
modelId Multisensor
manufacturerId 0097
manufacturerRef 1180:5501
dbReference 326
defaultAssociations 1

Channels

Binary Sensor

Properties

Name Value
binding:*:OnOffType SENSOR_BINARY,BASIC

Sensor (temperature)

Properties

Name Value
binding:*:DecimalType SENSOR_MULTILEVEL;type=TEMPERATURE

Alarm

Properties

Name Value
binding:*:OnOffType ALARM

Properties

Name Value
binding:*:PercentType BATTERY

Sensor (temperature) 1

Properties

Name Value
binding:*:DecimalType SENSOR_MULTILEVEL:1,BASIC:1;type=TEMPERATURE

Sensor (luminance) 2

Properties

Name Value
binding:*:DecimalType SENSOR_MULTILEVEL:2,BASIC:2;type=LUMINANCE

Groups

Configuration Parameters

1: Set to default

Set all config values to default values (factory settings).

2: Mode Timeout

The time used in mode 2 to turn the sensor off .

Overview

The time used in mode 2 to turn the sensor off .��

This Time will start running as soon as detection is seen.

3: Switch off time

Switch off time starts after timeout.

Overview

The switch off time will start running as soon as mode timeout is done. Motion sensor is turned on and when movement is de tected again the mode timeout (cfg param 1) will start running all over again. When switch off time is done a basic off message is s

4: Sensitivity

The sensitivity of the motion circuit

5: Mode

The mode that is entered after detection

Overview

Normal operation mode is default.

6: The temperature offset

An offset for the temperature.

Overview

Param1,2: A signed integer to determine the offset off the temperature.

Association Groups

1: Group 1

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:functx="http://www.functx.com"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
version="2.0">
<xsl:output method="text" />
<xsl:strip-space elements="*" />
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="thing-type">
<xsl:text>## </xsl:text>
<xsl:value-of select="label"/>
<xsl:text>&#xa;&#xa;</xsl:text>
<xsl:value-of select="description"/>
<xsl:text>&#xa;&#xa;</xsl:text>
<xsl:apply-templates select="properties"/>
<xsl:apply-templates select="channels"/>
<xsl:apply-templates select="config-description"/>
</xsl:template>
<xsl:template match="channels">
<xsl:text>### Channels</xsl:text>
<xsl:text>&#xa;&#xa;</xsl:text>
<xsl:apply-templates select="channel"/>
</xsl:template>
<xsl:template match="channel">
<xsl:text>#### </xsl:text>
<xsl:value-of select="label"/>
<xsl:text>&#xa;&#xa;</xsl:text>
<xsl:apply-templates select="properties"/>
</xsl:template>
<xsl:template match="properties">
<xsl:text>**Properties**&#xa;&#xa;</xsl:text>
<xsl:text>| Name | Value |&#xa;</xsl:text>
<xsl:text>|------|-------|&#xa;</xsl:text>
<xsl:apply-templates select="property"/>
<xsl:text>&#xa;&#xa;</xsl:text>
</xsl:template>
<xsl:template match="property">
<xsl:text>| </xsl:text>
<xsl:value-of select="@name"/>
<xsl:text> | </xsl:text>
<xsl:value-of select="."/>
<xsl:text> |&#xa;</xsl:text>
</xsl:template>
<xsl:template match="config-description">
<xsl:text>### Groups&#xa;&#xa;</xsl:text>
<xsl:apply-templates select="parameter-group"/>
<!-- xsl:text>### Parameters&#xa;&#xa;</xsl:text>
<xsl:apply-templates select="parameter"/ -->
</xsl:template>
<xsl:template match="parameter-group">
<xsl:text>#### </xsl:text>
<xsl:value-of select="label"/>
<xsl:text>&#xa;&#xa;</xsl:text>
<xsl:variable name="groupName" select="@name"/>
<xsl:for-each select="//parameter[@groupName=$groupName]">
<xsl:text>#### </xsl:text>
<xsl:value-of select="label"/>
<xsl:text>&#xa;&#xa;</xsl:text>
<xsl:apply-templates select="description"/>
</xsl:for-each>
</xsl:template>
<xsl:template match="parameter">
<xsl:text>#### </xsl:text>
<xsl:value-of select="label"/>
<xsl:text>&#xa;&#xa;</xsl:text>
<xsl:apply-templates select="description"/>
</xsl:template>
<xsl:template match="description">
<xsl:value-of select="."/>
<xsl:text>&#xa;&#xa;</xsl:text>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="zwave"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0"
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0
http://eclipse.org/smarthome/schemas/thing-description/v1.0.0">
<thing-type id="wintop_multisensor_00_000" listed="false">
<label>Multisensor Wintop Multi-sensor</label>
<description>Wintop Multi-sensor</description>
<!-- CHANNEL DEFINITIONS -->
<channels>
<channel id="sensor_binary" typeId="sensor_binary">
<label>Binary Sensor</label>
<properties>
<property name="binding:*:OnOffType">SENSOR_BINARY,BASIC</property>
</properties>
</channel>
<channel id="sensor_temperature" typeId="sensor_temperature">
<label>Sensor (temperature)</label>
<properties>
<property name="binding:*:DecimalType">SENSOR_MULTILEVEL;type=TEMPERATURE</property>
</properties>
</channel>
<channel id="alarm_general" typeId="alarm_general">
<label>Alarm</label>
<properties>
<property name="binding:*:OnOffType">ALARM</property>
</properties>
</channel>
<channel id="battery-level" typeId="system.battery-level">
<properties>
<property name="binding:*:PercentType">BATTERY</property>
</properties>
</channel>
<channel id="sensor_temperature1" typeId="sensor_temperature">
<label>Sensor (temperature) 1</label>
<properties>
<property name="binding:*:DecimalType">SENSOR_MULTILEVEL:1,BASIC:1;type=TEMPERATURE</property>
</properties>
</channel>
<channel id="sensor_luminance2" typeId="sensor_luminance">
<label>Sensor (luminance) 2</label>
<properties>
<property name="binding:*:DecimalType">SENSOR_MULTILEVEL:2,BASIC:2;type=LUMINANCE</property>
</properties>
</channel>
</channels>
<!-- DEVICE PROPERTY DEFINITIONS -->
<properties>
<property name="vendor">Wintop</property>
<property name="modelId">Multisensor</property>
<property name="manufacturerId">0097</property>
<property name="manufacturerRef">1180:5501</property>
<property name="dbReference">326</property>
<property name="defaultAssociations">1</property>
</properties>
<!-- CONFIGURATION DESCRIPTIONS -->
<config-description>
<!-- PARAMETER DEFINITIONS -->
<parameter-group name="configuration">
<context>setup</context>
<label>Configuration Parameters</label>
</parameter-group>
<parameter name="config_1_1" type="integer" groupName="configuration"
min="0" max="255">
<label>1: Set to default</label>
<description>Set all config values to default values (factory settings).</description>
<default>0</default>
</parameter>
<parameter name="config_2_2" type="integer" groupName="configuration"
min="0" max="3600">
<label>2: Mode Timeout</label>
<description><![CDATA[
The time used in mode 2 to turn the sensor off . <br /><h1>Overview</h1><p>The time used in mode 2 to turn the sensor off . </p> <p>This Time will start running as soon as detection is seen.</p>
]]></description>
<default>900</default>
</parameter>
<parameter name="config_3_2" type="integer" groupName="configuration"
min="0" max="7200">
<label>3: Switch off time</label>
<description><![CDATA[
Switch off time starts after timeout.<br /><h1>Overview</h1><p>The switch off time will start running as soon as mode timeout is done. Motion sensor is turned on and when movement is de tected again the mode timeout (cfg param 1) will start running all over again. When switch off time is done a basic off message is s</p>
]]></description>
<default>2700</default>
</parameter>
<parameter name="config_4_1" type="integer" groupName="configuration"
min="0" max="127">
<label>4: Sensitivity</label>
<description>The sensitivity of the motion circuit</description>
<default>80</default>
</parameter>
<parameter name="config_5_1" type="integer" groupName="configuration"
min="1" max="3">
<label>5: Mode</label>
<description><![CDATA[
The mode that is entered after detection<br /><h1>Overview</h1><p>Normal operation mode is default.</p>
]]></description>
<default>2</default>
</parameter>
<parameter name="config_6_2" type="integer" groupName="configuration"
min="-10" max="10">
<label>6: The temperature offset</label>
<description><![CDATA[
An offset for the temperature.<br /><h1>Overview</h1><p>Param1,2: A signed integer to determine the offset off the temperature.</p>
]]></description>
<default>0</default>
</parameter>
<!-- ASSOCIATION DEFINITIONS -->
<parameter-group name="association">
<context>link</context>
<label>Association Groups</label>
</parameter-group>
<parameter name="group_1" type="text" groupName="association" multiple="true">
<label>1: Group 1</label>
<multipleLimit>5</multipleLimit>
</parameter>
</config-description>
</thing-type>
</thing:thing-descriptions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment