Skip to content

Commit

Permalink
Add lumi.sensor_magnet static thing definition
Browse files Browse the repository at this point in the history
Mattia Baldani <mattibal@gmail.com>
  • Loading branch information
mattibal authored and cdjackson committed May 13, 2021
1 parent 6623655 commit 7ac4312
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="zigbee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">

<!-- This is needed to avoid the device being considered just a Level Control client -->

<thing-type id="xiaomi_lumisensormagnet" listed="false">
<label>Xiaomi Door Window Sensor</label>

<channels>
<channel id="contact_switch" typeId="switch_onoff">
<label>Contact open (Switch)</label>
<description>The magnetic contact, seen by the device as a switch that is on when the contact is open</description>
<properties>
<property name="zigbee_endpoint">1</property>
<property name="zigbee_inputclusters">6</property>
</properties>
</channel>
</channels>

<properties>
<property name="vendor">Xiaomi</property>
<property name="modelId">lumi.sensor_magnet</property>
<property name="zigbee_logicaltype">END_DEVICE</property>
</properties>

<representation-property>zigbee_macaddress</representation-property>

<config-description>
<parameter name="zigbee_macaddress" type="text" readOnly="true" required="true">
<label>MAC Address</label>
</parameter>
</config-description>
</thing-type>
</thing:thing-descriptions>
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ xiaomi_lumiremoteb286acn01,modelId=lumi.remote.b286acn01
xiaomi_lumisensor86sw2,modelId=lumi.sensor_86sw2
xiaomi_lumisensor-switchaq2,modelId=lumi.sensor_switch.aq2
xiaomi_lumisensorwaterleak,modelId=lumi.sensor_wleak.aq1
xiaomi_lumisensormagnet,modelId=lumi.sensor_magnet
innr-rc-110,vendor=innr,modelId=RC 110
osram-switch-4x-eu,vendor=OSRAM,modelId=Switch 4x EU-LIGHTIFY

0 comments on commit 7ac4312

Please sign in to comment.