Skip to content

Commit

Permalink
Support Samjin Multipurpose sensor (1)
Browse files Browse the repository at this point in the history
  • Loading branch information
manup committed May 9, 2019
1 parent 16b61b7 commit 3345578
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings.cpp
Expand Up @@ -1638,6 +1638,7 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
// SmartThings
sensor->modelId().startsWith(QLatin1String("tagv4")) ||
(sensor->manufacturer() == QLatin1String("Samjin") && sensor->modelId() == QLatin1String("motion")) ||
(sensor->manufacturer() == QLatin1String("Samjin") && sensor->modelId() == QLatin1String("multi")) ||
// Bitron
sensor->modelId().startsWith(QLatin1String("902010")) ||
// LG
Expand Down
1 change: 1 addition & 0 deletions de_web_plugin.cpp
Expand Up @@ -136,6 +136,7 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_PHILIPS, "RWL021", philipsMacPrefix }, // Hue dimmer switch
{ VENDOR_PHILIPS, "SML00", philipsMacPrefix }, // Hue motion sensor
{ VENDOR_SAMJIN, "motion", samjinMacPrefix }, // Smarthings GP-U999SJVLBAA (Samjin) Motion Sensor
{ VENDOR_SAMJIN, "multi", samjinMacPrefix }, // Smarthings (Samjin) Multipurpose Sensor
{ VENDOR_JENNIC, "lumi.sensor_ht", jennicMacPrefix },
{ VENDOR_JENNIC, "lumi.weather", jennicMacPrefix },
{ VENDOR_JENNIC, "lumi.sensor_magnet", jennicMacPrefix },
Expand Down
13 changes: 13 additions & 0 deletions general.xml
Expand Up @@ -2572,6 +2572,19 @@ devices can operate on either battery or mains power, and can have a wide variet
</client>
</cluster>

<!-- Samjin -->
<cluster id="0xfc02" name="Samjin" mfcode="0x1241">
<description>Attributes and commands.</description>
<server>
<attribute id="0x0000" name="Unknown" type="u8" mfcode="0x1241" default="0" access="r" required="m"> </attribute>
<attribute id="0x0012" name="Acceleration X" type="s16" mfcode="0x1241" default="0" access="r" required="m"> </attribute>
<attribute id="0x0013" name="Acceleration Y" type="s16" mfcode="0x1241" default="0" access="r" required="m"> </attribute>
<attribute id="0x0014" name="Acceleration Z" type="s16" mfcode="0x1241" default="0" access="r" required="m"> </attribute>
</server>
<client>
</client>
</cluster>

<!-- IKEA -->
<cluster id="0xfc7c" name="IKEA" mfcode="0x117c">
<description>IKEA control outlet cluster.</description>
Expand Down

0 comments on commit 3345578

Please sign in to comment.