Hello,
I bought the same Tuya fingerbot and I am using a Raspbee II with deCONZ.
I am able to see the fingerbot as a light in the deCONZ.
After that, I can create a thing in OpenHab, only as battery.
However, it is not possible to change its state from Openhab.
I tried to change the DDF as reported here: https://github.com/dresden-elektronik/deconz-rest-plugin/issues/7094
but the situation does not change.
my last DDF is the following:
{
"schema": "devcap1.schema.json",
"manufacturername": ["_TZ3210_dse8ogfy", "_TZ3210_j4pdtz9v"],
"modelid": ["TS0001", "TS0001"],
"vendor": "Tuya",
"product": "Fingerbot",
"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",
"parse": {"fn": "zcl:attr", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "tuya_swversion.js"},
"read": {"fn": "zcl:attr", "ep": 1, "cl": "0x0000", "at": "0x0001"}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "state/on",
"parse": {"fn": "tuya", "dpid": 1, "eval": "Item.val = Attr.val;" },
"write": {"fn": "tuya", "dpid": 1, "dt": "0x10", "eval": "Item.val == 1 ? 1 : 0;"},
"read": {"fn": "tuya"}
},
{
"name": "config/tuya_unlock"
},
{
"name": "state/reachable"
}
]
},
{
"type": "$TYPE_BATTERY_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0001"
],
"meta": {
"values": {
"config/mode": {"clic": 0, "switch": 1, "program": 2}
}
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion",
"parse": {"fn": "zcl:attr", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "tuya_swversion.js"},
"read": {"fn": "zcl:attr", "ep": 1, "cl": "0x0000", "at": "0x0001"}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "config/mode",
"values": [
["clic", 0], ["switch", 1], ["program", 2]
],
"parse": {"fn": "tuya", "dpid": 101, "eval": "if (Attr.val == 0) { Item.val = 'clic' } else if (Attr.val == 1) { Item.val = 'switch' } else { Item.val = 'program' }"},
"write": {"fn": "tuya", "dpid": 101, "dt": "0x30", "eval": "if (Item.val == 'clic') { 0 } else if (Item.val == 'switch') { 1 } else { 3 }"},
"read": {"fn": "none"}
},
{
"name": "state/battery",
"parse": {"fn": "tuya", "dpid": 105, "eval": "Item.val = Attr.val;" },
"read": {"fn": "none"},
"default": 0
},
{
"name":"config/delay",
"read":{
"fn":"none"
},
"write":{
"dpid":103,
"dt":"0x2b",
"eval":"Item.val;",
"fn":"tuya"
},
"parse":{
"dpid":103,
"eval":"Item.val = Attr.val;",
"fn":"tuya"
},
"default":1
},
{
"name": "state/lastupdated"
}
]
}
]
}
any suggestion on where to look for the issue or a workaround?
Thanks a lot.