Hello,
Following on from this topic, I am making the DDF file I created available. It does not allow you to use all the device’s features or read all its information, but the main features I wanted are there, namely:
- Mode control (comfort, eco, off, etc.)
- Child lock
- Temperature
- Humidity
I’m not sure if this file is correct, as I’m really just a hobbyist.
I haven’t had time to use it with multiple devices over a long period of time yet, but if I encounter any problems, I will post them here.
DDF file :
Solution
{
"schema": "devcap1.schema.json",
"manufacturername": "_TZE204_d6i25bwg",
"modelid": "TS0601",
"vendor": "Tuya",
"product": "Pilot_wire_heating_module",
"sleeper": false,
"status": "Gold",
"ddfvalidate": false,
"subdevices": [
{
"type": "$TYPE_THERMOSTAT",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0201"
],
"meta": {
"values": {
"config/mode": {
"confort": 0,
"confort-1": 1,
"confort-2": 2,
"eco": 3,
"hors gel": 4,
"off": 5
}
}
},
"items": [
{
"name": "attr/swversion",
"parse": {
"fn": "zcl:attr",
"ep": 1,
"cl": "0x0000",
"at": "0x0001",
"script": "../tuya/tuya_swversion.js"
},
"read": {
"fn": "zcl:attr",
"ep": 1,
"cl": "0x0000",
"at": "0x0001"
}
},
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/productname",
"default": "Powernity_PO-BOCO-ELEC"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/locked",
"read": {
"fn": "none"
},
"write": {
"dpid": 39,
"dt": "0x10",
"eval": "Item.val;",
"fn": "tuya"
},
"parse": {
"dpid": 39,
"eval": "Item.val = Attr.val;",
"fn": "tuya"
},
"default": false
},
{
"name": "config/mode",
"read": {
"fn": "tuya"
},
"write": {
"dpid": 127,
"dt": "0x30",
"eval": "if (Item.val == 'confort') {0} else if (Item.val == 'confort-1') {1} else if (Item.val == 'confort-2') {2} else if (Item.val == 'eco') {3} else if (Item.val == 'hors gel') {4} else if (Item.val == 'off') {5}",
"fn": "tuya"
},
"parse": {
"dpid": 127,
"eval": "if (Attr.val == 0) { Item.val = 'confort';} else if (Attr.val == 1) { Item.val = 'confort-1';} else if (Attr.val == 2) { Item.val = 'confort-2';} else if (Attr.val == 3) { Item.val = 'eco';} else if (Attr.val == 4) { Item.val = 'hors gel';} else if (Attr.val == 5) { Item.val = 'off';}",
"fn": "tuya"
}
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/temperature",
"read": {
"fn": "none"
},
"parse": {
"dpid": 16,
"eval": "Item.val = Attr.val * 10;",
"fn": "tuya"
}
},
{
"name": "state/lastupdated"
}
]
},
{
"type": "$TYPE_HUMIDITY_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0405"
],
"fingerprint": {
"endpoint": "0x02",
"profile": "0x0104",
"device": "0x0107",
"in": [
"0x0402"
]
},
"items": [
{
"name": "attr/swversion",
"parse": {
"fn": "zcl:attr",
"ep": 1,
"cl": "0x0000",
"at": "0x0001",
"script": "../tuya/tuya_swversion.js"
},
"read": {
"fn": "zcl:attr",
"ep": 1,
"cl": "0x0000",
"at": "0x0001"
}
},
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/productname",
"default": "Powernity_PO-BOCO-ELEC"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/humidity",
"read": {
"fn": "none"
},
"parse": {
"dpid": 8,
"eval": "Item.val = Attr.val * 100;",
"fn": "tuya"
},
"default": 0
},
{
"name": "state/lastupdated"
}
]
}
]
}
Preview in Phoscon
{
"capabilities": {
"sleeper": false
},
"config": {
"locked": false,
"mode": "confort",
"on": true,
"reachable": true
},
"etag": "56ad954d63c85f547dae3e1c8fb6be75",
"lastannounced": "2025-08-15T12:50:49Z",
"lastseen": "2025-08-15T15:44Z",
"manufacturername": "_TZE204_d6i25bwg",
"modelid": "TS0601",
"name": "Capteur",
"nwkaddress": "0x736E",
"productname": "Powernity_PO-BOCO-ELEC",
"state": {
"humidity": 56,
"lastupdated": "2025-08-15T15:45:24.867",
"temperature": 30
},
"swversion": "",
"type": "ZHAThermostat",
"uniqueid": "a4:c1:38:da:ba:1c:ce:8e-01-0201"
}
Brand: Powernity
Model: PO-BOCO-ELEC