Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ThirdReality Temperature and Humidity Sensor with Digital LCD Display - 3RTHS24BZ #6978

Closed
jmedemar opened this issue May 15, 2023 · 5 comments · Fixed by #6983
Closed

ThirdReality Temperature and Humidity Sensor with Digital LCD Display - 3RTHS24BZ #6978

jmedemar opened this issue May 15, 2023 · 5 comments · Fixed by #6983

Comments

@jmedemar
Copy link

jmedemar commented May 15, 2023

Device

  • Product name: Third Reality Temperature and Humidity Sensor with Digital LCD Display
  • Manufacturer: Third Reality, Inc
  • Model identifier: 3RTHS24BZ
  • Device type:
    • Sensor

Screenshots

Basic

Screenshot 2023-05-15 164551

Screenshot 2023-05-15 164614

Screenshot 2023-05-15 213102

Screenshot 2023-05-15 213408

Screenshot 2023-05-15 213505

Screenshot 2023-05-15 213600

@jmedemar jmedemar changed the title Device name Third Reality Temperature and Humidity Sensor with Digital LCD Display - 3RTHS24BZ May 15, 2023
@jmedemar jmedemar changed the title Third Reality Temperature and Humidity Sensor with Digital LCD Display - 3RTHS24BZ ThirdReality Temperature and Humidity Sensor with Digital LCD Display - 3RTHS24BZ May 15, 2023
@BabaIsYou
Copy link
Contributor

Can you please make a "read" before taking screenshots on each cluster ?

@jmedemar
Copy link
Author

jmedemar commented May 16, 2023

Can you please make a "read" before taking screenshots on each cluster ?

I'm sorry, I'm a total newb. I figured it out finally. Had to read every single attribute separately to see if it was supported. I updated all the screenshots.

It reports these readings: Battery Percentage value of 200 (100% (value of 200/2)), Temperature Measured Value of 2490 (24.9 degrees C (value of 2490/100)), and Humidity Measured Value of 4400 (44% (value of 4400/100)).

@Smanar
Copy link
Collaborator

Smanar commented May 16, 2023

Hello can you try this DDF

{
   "schema":"devcap1.schema.json",
   "manufacturername":"Third Reality, Inc",
   "modelid":"3RTHS24BZ",
   "vendor":"ThirdReality",
   "product":"ThirdReality multisensor",
   "sleeper":true,
   "status":"Gold",
   "subdevices":[
      {
         "type":"$TYPE_TEMPERATURE_SENSOR",
         "restapi":"/sensors",
         "uuid":[
            "$address.ext",
            "0x01",
            "0x0402"
         ],
         "items":[
            {
               "name":"attr/id"
            },
            {
               "name":"attr/lastannounced"
            },
            {
               "name":"attr/lastseen"
            },
            {
               "name":"attr/manufacturername"
            },
            {
               "name":"attr/modelid"
            },
            {
               "name":"attr/name"
            },
            {
               "name":"attr/swversion"
            },
            {
               "name":"attr/type"
            },
            {
               "name":"attr/uniqueid"
            },
            {
               "name":"config/battery",
               "awake":true,
               "refresh.interval":3600,
               "read":{
                  "at":"0x0021",
                  "cl":"0x0001",
                  "ep":1,
                  "fn":"zcl"
               },
               "parse":{
                  "at":"0x0021",
                  "cl":"0x0001",
                  "ep":1,
                  "eval":"Item.val = Attr.val / 2"
               },
               "default":0
            },
            {
               "name":"config/offset",
               "default":0
            },
            {
               "name":"config/on"
            },
            {
               "name":"config/reachable"
            },
            {
               "name":"state/lastupdated"
            },
            {
               "name":"state/temperature"
            }
         ]
      },
      {
         "type":"$TYPE_HUMIDITY_SENSOR",
         "restapi":"/sensors",
         "uuid":[
            "$address.ext",
            "0x01",
            "0x0405"
         ],
         "items":[
            {
               "name":"attr/id"
            },
            {
               "name":"attr/lastannounced"
            },
            {
               "name":"attr/lastseen"
            },
            {
               "name":"attr/manufacturername"
            },
            {
               "name":"attr/modelid"
            },
            {
               "name":"attr/name"
            },
            {
               "name":"attr/swversion"
            },
            {
               "name":"attr/type"
            },
            {
               "name":"attr/uniqueid"
            },
            {
               "name":"config/battery",
               "awake":true,
               "refresh.interval":3600,
               "read":{
                  "at":"0x0021",
                  "cl":"0x0001",
                  "ep":1,
                  "fn":"zcl"
               },
               "parse":{
                  "at":"0x0021",
                  "cl":"0x0001",
                  "ep":1,
                  "eval":"Item.val = Attr.val / 2"
               },
               "default":0
            },
            {
               "name":"config/offset",
               "default":0
            },
            {
               "name":"config/on"
            },
            {
               "name":"config/reachable"
            },
            {
               "name":"state/humidity"
            },
            {
               "name":"state/lastupdated"
            }
         ]
      }
   ],
   "bindings":[
      {
         "bind":"unicast",
         "src.ep":1,
         "dst.ep":1,
         "cl":"0x0001",
         "report":[
            {
               "at":"0x0021",
               "dt":"0x20",
               "min":3600,
               "max":7200,
               "change":"0x00000002"
            }
         ]
      },
      {
         "bind":"unicast",
         "src.ep":1,
         "dst.ep":1,
         "cl":"0x0405",
         "report":[
            {
               "at":"0x0000",
               "dt":"0x21",
               "min":5,
               "max":1800,
               "change":"0x00000064"
            }
         ]
      },
      {
         "bind":"unicast",
         "src.ep":1,
         "cl":"0x0402",
         "report":[
            {
               "at":"0x0000",
               "dt":"0x29",
               "min":5,
               "max":1800,
               "change":"0x0000000A"
            }
         ]
      }
   ]
}

@jmedemar
Copy link
Author

Made DDF and put in the folder, rebooted Deconz, then re-added the sensor. Everything seems to be working and updating appropriately.

Screenshot 2023-05-16 183255

@Smanar
Copy link
Collaborator

Smanar commented May 17, 2023

Thx PR done #6983
But something strange, you need to have the version too, perhaps there is a bug in the generic file (ep = 0, but as your device have only 1 endpoint, IDK how the code can select a bad one)

{
	"schema": "resourceitem1.schema.json",
	"id": "attr/swversion",
	"datatype": "String",
	"access": "R",
	"public": true,
	"implicit" : true,
	"description": "Firmware version of the device.",
	"parse": {"fn": "zcl", "ep": 255, "cl": "0x0000", "at": "0x4000", "eval": "Item.val = Attr.val"},
	"read": {"fn": "zcl", "ep": 0, "cl": "0x0000", "at": "0x4000"},
	"refresh.interval": 86400
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants