Skip to content

Instantly share code, notes, and snippets.

View NisseDILLIGAF's full-sized avatar

Nisse NisseDILLIGAF

  • Sweden
View GitHub Profile
@NisseDILLIGAF
NisseDILLIGAF / xiaomi.xml
Last active May 27, 2017 17:20
Xiaomi Mi Temperature / Humidity Sensor, ZCLDB file for deCONz
<?xml version="1.0" encoding="UTF-8"?>
<zcl>
<domain name="Measurement and sensing" low_bound="0400" high_bound="04ff" description="The measurement and sensing functional domain contains clusters and information to build devices in the measurement and sensing domain, e.g. a temperature sensor or an occupancy sensor." useZcl="false">
<cluster id="0402" name="Temperature measurement">
<description>The server cluster provides an interface to temperature measurement functionality, including configuration and provision of notifications of temperature measurements.</description>
<!-- TODO -->
<server>
<command id="0x07" dir="send" name="Test" required="m" description="Test">
<payload>
<attribute id="0x0003" type="u16" name="Temp Value" required="m" showas="hex" description=""></attribute>
@NisseDILLIGAF
NisseDILLIGAF / bindings.cpp.patch
Created July 21, 2017 20:43
deCONZ, patch for Xiaomi Aqara Temperature Humidity Pressure Sensor
diff --git a/org/bindings.cpp b/nisse/bindings.cpp
index c8fad14..b5bd18f 100755
--- a/org/bindings.cpp
+++ b/nisse/bindings.cpp
@@ -544,6 +544,14 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt)
maxInterval = 300;
reportableChange16bit = 20;
}
+ else if (bt.binding.clusterId == PRESSURE_MEASUREMENT_CLUSTER_ID)
+ {