Skip to content

Commit

Permalink
add suport for xiaomi aqara wall switch
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Weißschuh <[email protected]>
  • Loading branch information
t-8ch committed Dec 24, 2018
1 parent defd455 commit d9d8828
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="zigbee"
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-1.0.0.xsd">

<thing-type id="xiaomi_lumiremoteb286acn01">
<label>Xiaomi Wall Switch</label>
<description>Xiaomi Wall Switch</description>
<category>WallSwitch</category>

<channels>
<channel id="left" typeId="system.button">
<label>Left</label>
<properties>
<property name="zigbee_endpoint">1</property>
<property name="zigbee_shortpress_cluster_id">0x0012</property>
<property name="zigbee_shortpress_attribute_id">85</property>
<property name="zigbee_shortpress_attribute_value">1</property>
<property name="zigbee_longpress_cluster_id">0x0012</property>
<property name="zigbee_longpress_attribute_id">85</property>
<property name="zigbee_longpress_attribute_value">0</property>
<property name="zigbee_doublepress_cluster_id">0x0012</property>
<property name="zigbee_doublepress_attribute_id">85</property>
<property name="zigbee_doublepress_attribute_value">2</property>
</properties>
</channel>

<channel id="right" typeId="system.button">
<label>Right</label>
<properties>
<property name="zigbee_endpoint">2</property>
<property name="zigbee_shortpress_cluster_id">0x0012</property>
<property name="zigbee_shortpress_attribute_id">85</property>
<property name="zigbee_shortpress_attribute_value">1</property>
<property name="zigbee_longpress_cluster_id">0x0012</property>
<property name="zigbee_longpress_attribute_id">85</property>
<property name="zigbee_longpress_attribute_value">0</property>
<property name="zigbee_doublepress_cluster_id">0x0012</property>
<property name="zigbee_doublepress_attribute_id">85</property>
<property name="zigbee_doublepress_attribute_value">2</property>
</properties>
</channel>
</channels>

<properties>
<property name="vendor">Xiaomi</property>
<property name="modelId">lumi.remote.b286acn01</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>
3 changes: 2 additions & 1 deletion org.openhab.binding.zigbee/src/main/resources/discovery.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ smartthings_motionv4,vendor=SmartThings,modelId=motionv4
bitron-video-902010-23,vendor=Bitron Home,modelId=902010/23
bitron-video-av2010-34,vendor=Bitron Video,modelId=AV2010/34
xiaomi_lumisensorht,modelId=lumi.sensor_ht
innr-rc-110,vendor=innr,modelId=RC 110
innr-rc-110,vendor=innr,modelId=RC 110
xiaomi_lumiremoteb286acn01,modelId=lumi.remote.b286acn01

0 comments on commit d9d8828

Please sign in to comment.