I had already created a PR for a request to support a pilot wire heating control device.
Winter is coming
, and I wanted to try to move forward by creating a DDF file with the help of ChatGPT. But when I load it from âEdit DDFâ in deCONZ, I get the error message : Failed to loadâŚ
With this json file, did ChatGPT put me on the right track or do I have to give up ?
{
"schema": "devcap1.schema.json",
"manufacturername": "_TZE204_d6i25bwg",
"modelid": "TS0601",
"vendor": "Tuya",
"product": "ContrĂ´leur chauffage fil pilote",
"status": "Draft",
"subdevices": [
{
"type": "Heater",
"restapi": "/sensors",
"uuid": ["dp1026"],
"items": [
{
"name": "heatmode",
"type": "enum",
"values": [
"off",
"eco",
"comfort",
"frost_protection",
"comfort-1",
"comfort-2"
],
"default": "off",
"read": {
"fn": "tuya.datapoint",
"dp": 1026
},
"write": {
"fn": "tuya.datapoint",
"dp": 1026
},
"description": "Mode de chauffage (fil pilote)",
"refresh.interval": 3600
}
]
}
],
"bindings": [],
"reporting": [],
"endpoints": {
"1": {
"profile_id": "0x0104",
"device_id": "0x0051",
"device_version": 1,
"input_clusters": [
"0x0000",
"0x0004",
"0x0005",
"0xEF00",
"0x000A",
"0x0019"
],
"output_clusters": []
}
}
}