Skip to content

Commit

Permalink
DDF add support for ROVF (TMZ02L-16A-B2) Mini Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
BabaIsYou committed Aug 23, 2023
1 parent 169f038 commit 44774c7
Showing 1 changed file with 104 additions and 0 deletions.
104 changes: 104 additions & 0 deletions devices/tuya/_TZ3000_hkkkuk7k_mini_switch.json
@@ -0,0 +1,104 @@
"schema": "devcap1.schema.json",
"manufacturername": "_TZ3000_hkkkuk7k",
"modelid": "TS0012",
"product": "Tuya 2 output module",
"sleeper": false,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_ON_OFF_OUTPUT",
"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",
"refresh.interval": 86400,
"parse": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "tuya_swversion.js"},
"read": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001"}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "state/on"
},
{
"name": "state/reachable"
},
{
"name": "config/tuya_unlock"
}
]
},
{
"type": "$TYPE_ON_OFF_OUTPUT",
"restapi": "/lights",
"uuid": [
"$address.ext",
"0x02"
],
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion",
"refresh.interval": 86400,
"parse": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "tuya_swversion.js"},
"read": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001"}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "state/on"
},
{
"name": "state/reachable"
}
]
}
]
}

0 comments on commit 44774c7

Please sign in to comment.