Skip to content

Commit

Permalink
Create 3RSPE01044BZ_smart_plug.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Smanar committed Aug 7, 2024
1 parent 56ad566 commit 6edc406
Showing 1 changed file with 261 additions and 0 deletions.
261 changes: 261 additions & 0 deletions devices/third_reality/3RSPE01044BZ_smart_plug.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
{
"schema": "devcap1.schema.json",
"manufacturername": "Third Reality, Inc",
"modelid": "3RSPE01044BZ",
"vendor": "Third Reality",
"product": "Smart plug",
"sleeper": false,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_ON_OFF_PLUGIN_UNIT",
"restapi": "/lights",
"uuid": [
"$address.ext",
"0x01"
],
"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": "state/alert"
},
{
"name": "state/on",
"refresh.interval": 360
},
{
"name": "state/reachable"
}
]
},
{
"type": "$TYPE_POWER_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0b04"
],
"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/on"
},
{
"name": "config/reachable"
},
{
"name": "state/current",
"refresh.interval": 360
},
{
"name": "state/lastupdated"
},
{
"name": "state/power",
"read": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 1,
"fn": "zcl:attr"
},
"parse": {
"at": "0x050b",
"cl": "0x0b04",
"ep": 1,
"eval": "Item.val = Attr.val / 10"
},
"refresh.interval": 360
},
{
"name": "state/voltage",
"read": {
"at": "0x0505",
"cl": "0x0b04",
"ep": 1,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0505",
"cl": "0x0b04",
"ep": 1,
"eval": "Item.val = Attr.val / 10"
},
"refresh.interval": 360
}
]
},
{
"type": "$TYPE_CONSUMPTION_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0702"
],
"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/on"
},
{
"name": "config/reachable"
},
{
"name": "state/consumption",
"read": {
"at": "0x0000",
"cl": "0x0702",
"ep": 1,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0000",
"cl": "0x0702",
"ep": 1,
"eval": "Item.val = Attr.val / 10"
},
"refresh.interval": 365
},
{
"name": "state/lastupdated"
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0006",
"report": [
{
"at": "0x0000",
"dt": "0x10",
"min": 1,
"max": 300
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0702",
"report": [
{
"at": "0x0000",
"dt": "0x25",
"min": 10,
"max": 300,
"change": "0x0000000A"
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0B04",
"report": [
{
"at": "0x0505",
"dt": "0x21",
"min": 10,
"max": 300,
"change": "0x00000001"
},
{
"at": "0x0508",
"dt": "0x21",
"min": 10,
"max": 300,
"change": "0x00000064"
},
{
"at": "0x050B",
"dt": "0x29",
"min": 10,
"max": 300,
"change": "0x00000001"
}
]
}
]
}

0 comments on commit 6edc406

Please sign in to comment.