Device appear in deCONZ but not in Phoscon

Number of ampere (or mA depending of device) used by the load.

And as power = voltage * current, with a power = 1 W I think your device use realy few current, so can explan the zero value.

So All is fine, I can make a PR to submit the DDF or do you want to make it yourself ?

I’ll let you do the PR because I wouldn’t want it rejected again.
@Smanar, thanks a lot for your help.

PR here DDF, improve support for Xiaomi Aqara relay controller lumi.relay.c2acn01 by Smanar · Pull Request #6760 · dresden-elektronik/deconz-rest-plugin · GitHub

@monpelaud I have updated the DDF on the PR.
Can you test it again ? I have updated the state/consumption, I was using same value for power and consumption previously.

@Smanar Ok, I’ll do a test with the new DDF file. I will post the logs as soon as possible.

@Smanar, here are the REST API logs:

    "2": {
        "capabilities": {
            "alerts": [
                "none",
                "select",
                "lselect"
            ]
        },
        "config": {
            "groups": []
        },
        "etag": "6244fac1db39c3b00568aaa844c6f9be",
        "hascolor": false,
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:18Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 2",
        "state": {
            "alert": "none",
            "on": false,
            "reachable": true
        },
        "swversion": "0.0.0_0036",
        "type": "On/Off output",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01"
    },
	
    "3": {
        "capabilities": {
            "alerts": [
                "none",
                "select",
                "lselect"
            ]
        },
        "config": {
            "groups": []
        },
        "etag": "9d04079e1a5e48f79b87fa8cb8d92720",
        "hascolor": false,
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:18Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 3",
        "state": {
            "alert": "none",
            "on": false,
            "reachable": true
        },
        "swversion": "0.0.0_0036",
        "type": "On/Off output",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-02"
    },
	
    "14": {
        "config": {
            "on": true,
            "reachable": true,
            "temperature": null
        },
        "ep": 1,
        "etag": "2a0bfd7c8f6aa5d44e28582ab038bba6",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:18Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 14",
        "state": {
            "consumption": 0,
            "lastupdated": "2023-03-01T21:14:49.349"
        },
        "swversion": "0.0.0_0036",
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
    },
    "15": {
        "config": {
            "on": true,
            "reachable": true,
            "temperature": null
        },
        "ep": 1,
        "etag": "c31840b29bd6546aa012aae360e3173a",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:17Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Power 15",
        "state": {
            "current": 0,
            "lastupdated": "2023-03-01T21:17:34.351",
            "power": 0,
            "voltage": 239
        },
        "swversion": "0.0.0_0036",
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
    }

here are the Events logs:

"21:14:49:354": {
    "attr": {
        "id": "15",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:14Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Power 15",
        "swversion": "0.0.0_0036",
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
    },
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:14:49:360": {
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "state": {
        "current": 0,
        "lastupdated": "2023-03-01T21:14:49.346",
        "power": 0,
        "voltage": 239
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:14:49:362": {
    "attr": {
        "id": "14",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:14Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 14",
        "swversion": "0.0.0_0036",
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
    },
    "e": "changed",
    "id": "14",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
},

"21:14:49:365": {
    "e": "changed",
    "id": "14",
    "r": "sensors",
    "state": {
        "consumption": 0,
        "lastupdated": "2023-03-01T21:14:49.349"
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
},

"21:14:57:404": {
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "state": {
        "current": 0,
        "lastupdated": "2023-03-01T21:14:57.401",
        "power": 0,
        "voltage": 239
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:14:57:774": {
    "attr": {
        "id": "15",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:14Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Power 15",
        "swversion": "0.0.0_0036",
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
    },
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:14:57:779": {
    "attr": {
        "id": "14",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:14Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 14",
        "swversion": "0.0.0_0036",
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
    },
    "e": "changed",
    "id": "14",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
},

"21:14:57:961": {
    "attr": {
        "id": "15",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:14Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Power 15",
        "swversion": "0.0.0_0036",
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
    },
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:14:57:964": {
    "attr": {
        "id": "14",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:14Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 14",
        "swversion": "0.0.0_0036",
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
    },
    "e": "changed",
    "id": "14",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
},

"21:15:20:339": {
    "attr": {
        "id": "2",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:15Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 2",
        "swversion": "0.0.0_0036",
        "type": "On/Off output",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01"
    },
    "e": "changed",
    "id": "2",
    "r": "lights",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01"
},

"21:15:20:343": {
    "attr": {
        "id": "3",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:15Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 3",
        "swversion": "0.0.0_0036",
        "type": "On/Off output",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-02"
    },
    "e": "changed",
    "id": "3",
    "r": "lights",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-02"
},

"21:15:20:346": {
    "attr": {
        "id": "15",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:15Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Power 15",
        "swversion": "0.0.0_0036",
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
    },
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:15:20:349": {
    "attr": {
        "id": "14",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:15Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 14",
        "swversion": "0.0.0_0036",
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
    },
    "e": "changed",
    "id": "14",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
},

"21:15:47:888": {
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "state": {
        "current": 0,
        "lastupdated": "2023-03-01T21:15:47.884",
        "power": 0,
        "voltage": 239
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:16:20:359": {
    "attr": {
        "id": "2",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:16Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 2",
        "swversion": "0.0.0_0036",
        "type": "On/Off output",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01"
    },
    "e": "changed",
    "id": "2",
    "r": "lights",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01"
},

"21:16:20:363": {
    "attr": {
        "id": "3",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:16Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 3",
        "swversion": "0.0.0_0036",
        "type": "On/Off output",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-02"
    },
    "e": "changed",
    "id": "3",
    "r": "lights",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-02"
},

"21:16:20:367": {
    "attr": {
        "id": "15",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:16Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Power 15",
        "swversion": "0.0.0_0036",
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
    },
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:16:20:370": {
    "attr": {
        "id": "14",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:16Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 14",
        "swversion": "0.0.0_0036",
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
    },
    "e": "changed",
    "id": "14",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
},

"21:16:36:344": {
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "state": {
        "current": 0,
        "lastupdated": "2023-03-01T21:16:36.341",
        "power": 8,
        "voltage": 239
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:16:38:344": {
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "state": {
        "current": 0,
        "lastupdated": "2023-03-01T21:16:38.341",
        "power": 11,
        "voltage": 239
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:16:42:344": {
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "state": {
        "current": 0,
        "lastupdated": "2023-03-01T21:16:42.341",
        "power": 9,
        "voltage": 239
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:16:44:349": {
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "state": {
        "current": 0,
        "lastupdated": "2023-03-01T21:16:44.344",
        "power": 6,
        "voltage": 239
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:16:58:400": {
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "state": {
        "current": 0,
        "lastupdated": "2023-03-01T21:16:58.394",
        "power": 10,
        "voltage": 239
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:17:04:354": {
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "state": {
        "current": 0,
        "lastupdated": "2023-03-01T21:17:04.351",
        "power": 0,
        "voltage": 239
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:17:12:349": {
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "state": {
        "current": 0,
        "lastupdated": "2023-03-01T21:17:12.344",
        "power": 3,
        "voltage": 239
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:17:20:360": {
    "attr": {
        "id": "2",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:17Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 2",
        "swversion": "0.0.0_0036",
        "type": "On/Off output",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01"
    },
    "e": "changed",
    "id": "2",
    "r": "lights",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01"
},

"21:17:20:363": {
    "attr": {
        "id": "3",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:17Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 3",
        "swversion": "0.0.0_0036",
        "type": "On/Off output",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-02"
    },
    "e": "changed",
    "id": "3",
    "r": "lights",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-02"
},

"21:17:20:366": {
    "attr": {
        "id": "14",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:17Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 14",
        "swversion": "0.0.0_0036",
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
    },
    "e": "changed",
    "id": "14",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
},

"21:17:32:545": {
    "attr": {
        "id": "15",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:17Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Power 15",
        "swversion": "0.0.0_0036",
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
    },
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},

"21:18:20:374": {
    "attr": {
        "id": "2",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:18Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 2",
        "swversion": "0.0.0_0036",
        "type": "On/Off output",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01"
    },
    "e": "changed",
    "id": "2",
    "r": "lights",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01"
},

"21:18:20:380": {
    "attr": {
        "id": "3",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:18Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 3",
        "swversion": "0.0.0_0036",
        "type": "On/Off output",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-02"
    },
    "e": "changed",
    "id": "3",
    "r": "lights",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-02"
},

"21:18:20:384": {
    "attr": {
        "id": "14",
        "lastannounced": "2023-03-01T21:08:22Z",
        "lastseen": "2023-03-01T21:18Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 14",
        "swversion": "0.0.0_0036",
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
    },
    "e": "changed",
    "id": "14",
    "r": "sensors",
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
},

What is strange is that only the “power” value changes, the “current” and “consumption” values ​​always remain at 0!

Yeah, it’s worrying but current need to work, perhaps not enought consumption, perhaps a convertion issue (need to use mA, but it’s perhaps Ampere). Do you have a device with more consumption ? like a vaccum ?

The relay only controls the contactor of a pump, which explains the low consumption reported by the relay.

Ha yes, so can be normal, the current is the same code used on another device, so I think it’s fine, my problem is for the consumption, and I realy have no clue how it work for this device.

Consumption is not computed by Phoscon?
Consumption = Power * Time

No by the device.

Hi,
With the new DDF, I see something that surprises me.
The relay has 2 channels and I see the definition of two “ZHAPower” type entities and one “ZHAConsumption” type entity.
I don’t understand why the two “ZHAPower” type entities don’t have the same structure?
The entity of type “ZHAConsumption” being unique I suppose that it is the sum of the two channels?

    "47": {
        "config": {
            "on": true,
            "reachable": true,
            "temperature": null
        },
        "ep": 1,
        "etag": "68272107754d9ac2364a610f362b862c",
        "lastannounced": "2023-04-04T18:00:48Z",
        "lastseen": "2023-04-09T09:51Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 47",
        "state": {
            "consumption": null,
            "current": 5,
            "lastupdated": "2023-04-09T09:51:56.013",
            "power": 1066,
            "voltage": 238
        },
        "swversion": "0.0.0_0036",
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
    },
    "48": {
        "config": {
            "on": true,
            "reachable": true,
            "temperature": null
        },
        "ep": 1,
        "etag": "8ead5add95c130943471b924a985dae7",
        "lastannounced": "2023-04-04T18:00:48Z",
        "lastseen": "2023-04-09T09:51Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Power 48",
        "state": {
            "current": null,
            "lastupdated": "2023-04-09T09:52:20.665",
            "power": -1,
            "voltage": null
        },
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
    },
    "49": {
        "config": {
            "on": true,
            "reachable": true,
            "temperature": null
        },
        "etag": "1a85cd613eefd32d4dc3f35ba2355454",
        "lastannounced": "2023-04-04T18:00:48Z",
        "lastseen": "2023-04-09T09:51Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 49",
        "state": {
            "consumption": 0,
            "lastupdated": "2023-04-09T09:51:56.121"
        },
        "swversion": "0.0.0_0036",
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0702"
    }

The relay has 2 channels

Yes, this is normal, nope ?

        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0702"

Here we have a problem ^^. The second ZHAPower is not visible on the DDF, IDK where it is from …
Can come from legacy code, you have deleted the device before adding the DDF ?

Hi,
you are right, I erased the device from Phoscon before adding it again and I get these new definitions:

    "50": {
        "config": {
            "on": true,
            "reachable": true,
            "temperature": null
        },
        "etag": "1f664b1f2b89a78b9b5774d70ea88e16",
        "lastannounced": null,
        "lastseen": "2023-04-19T17:21Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 50",
        "state": {
            "current": 0,
            "lastupdated": "2023-04-19T17:20:48.419",
            "power": 2,
            "voltage": 239
        },
        "swversion": "0.0.0_0036",
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
    },
    "51": {
        "config": {
            "on": true,
            "reachable": true,
            "temperature": 0
        },
        "ep": 1,
        "etag": "73491bc7614fd8b02604df0c18f5b6da",
        "lastannounced": "2023-04-19T15:50:17Z",
        "lastseen": "2023-04-19T17:21Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Power 51",
        "state": {
            "current": 0,
            "lastupdated": "2023-04-19T17:21:08.762",
            "power": -1,
            "voltage": 0
        },
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
    },
    "52": {
        "config": {
            "on": true,
            "reachable": true,
            "temperature": null
        },
        "etag": "e3d5f6223c4021becafaa8545b0b52c2",
        "lastannounced": null,
        "lastseen": "2023-04-19T17:21Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 52",
        "state": {
            "consumption": 0,
            "lastupdated": "2023-04-19T17:20:09.732"
        },
        "swversion": "0.0.0_0036",
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0702"
    }

In “50:” “ZHAPower” I see “voltage”: 239 but I dont find this voltage value (239 volts) in deCONZ!
In home Assistant, I see “Power 51.power”: -1 but not “Power 51.voltage”: 239.
In Home Assistant I was hoping to find “Power 51.voltage”: 239 V instead of “Power 51.power”: -1 W.




Same issue, you have again the “ghost” sensor

"uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"

This one is not in the DDF.

You are it’s the good DDF used by deconz ? You can check it using the GUI, “edit DDF”, the good one is this one deconz-rest-plugin/xiaomi_lumi.relay.c2acn01.json at master · dresden-elektronik/deconz-rest-plugin · GitHub

@Smanar
I am using deCONZ v2.21.2 via Home Assistant plugin at its latest version with deCONZ v2.21.2.
I am surprised because the 2 DDF files are not the same! I thought the built-in DDF file in deCONZ version 2.21.2 was the new DDF!
Can you confirm that the next stable version of deCONZ will integrate the new DDF?

Here my DDF file:
{
“schema”: “devcap1.schema.json”,
“manufacturername”: “$MF_LUMI”,
“modelid”: “lumi.relay.c2acn01”,
“product”: “wireless relay with neutral”,
“sleeper”: false,
“status”: “Silver”,
“path”: “/devices/xiaomi/xiaomi_lumi.relay.c2acn01.json”,
“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”
},
{
“name”: “attr/type”
},
{
“name”: “attr/uniqueid”
},
{
“name”: “state/alert”,
“default”: “none”
},
{
“name”: “state/on”,
“refresh.interval”: 360
},
{
“name”: “state/reachable”
}
]
},
{
“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”
},
{
“name”: “attr/type”
},
{
“name”: “attr/uniqueid”
},
{
“name”: “state/alert”,
“default”: “none”
},
{
“name”: “state/on”,
“refresh.interval”: 360
},
{
“name”: “state/reachable”
}
]
},
{
“type”: “$TYPE_POWER_SENSOR”,
“restapi”: “/sensors”,
“uuid”: [
“$address.ext”,
“0x01”,
“0x000C”
],
“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”: “config/temperature”
},
{
“name”: “state/current”,
“refresh.interval”: 300,
“read”: {
“fn”: “none”
},
“parse”: {
“at”: “0x00F7”,
“eval”: “Item.val = Math.round(Attr.val);”,
“fn”: “xiaomi:special”,
“idx”: “0x97”
},
“default”: 0
},
{
“name”: “state/lastupdated”
},
{
“name”: “state/power”,
“refresh.interval”: 360,
“read”: {
“at”: “0x0055”,
“cl”: “0x000C”,
“ep”: 1,
“fn”: “zcl”
},
“parse”: {
“at”: “0x0055”,
“cl”: “0x000C”,
“ep”: 1,
“eval”: “Item.val = Math.round(Attr.val);”
},
“default”: 0
},
{
“name”: “state/voltage”,
“refresh.interval”: 300,
“read”: {
“fn”: “none”
},
“parse”: {
“at”: “0x00F7”,
“eval”: “Item.val = Math.round(Attr.val / 10);”,
“fn”: “xiaomi:special”,
“idx”: “0x96”
},
“default”: 0
}
]
},
{
“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”: “config/temperature”
},
{
“name”: “state/consumption”,
“refresh.interval”: 300,
“read”: {
“fn”: “none”
},
“parse”: {
“at”: “0x00f7”,
“eval”: “Item.val = Math.round(Attr.val);”,
“fn”: “xiaomi:special”,
“idx”: “0x95”
},
“default”: 0
},
{
“name”: “state/lastupdated”
}
]
}
],
“bindings”: [
{
“bind”: “unicast”,
“src.ep”: 1,
“dst.ep”: 1,
“cl”: “0x0006”,
“report”: [
{
“at”: “0x0000”,
“dt”: “0x10”,
“min”: 5,
“max”: 300
}
]
},
{
“bind”: “unicast”,
“src.ep”: 2,
“dst.ep”: 1,
“cl”: “0x0006”,
“report”: [
{
“at”: “0x0000”,
“dt”: “0x10”,
“min”: 5,
“max”: 300
}
]
}
]
}

There is a difference on the DDF ? For me they are looking same.
On your DDF too you haven’t code to create a sensor on cluster 0x0b04.

No, the two DDFs are not the same, my DDF has 296 lines while in github the DDF has 330 lines.
Here DDF in github:

{
“schema”: “devcap1.schema.json”,
“manufacturername”: “$MF_LUMI”,
“modelid”: “lumi.relay.c2acn01”,
“product”: “wireless relay with neutral”,
“sleeper”: false,
“status”: “Silver”,
“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”,
“awake”: true,
“parse”: {
“at”: “0x00f7”,
“ep”: 1,
“fn”: “xiaomi:special”,
“idx”: “0x08”,
“script”: “xiaomi_swversion.js”
},
“read”: {
“fn”: “none”
}
},
{
“name”: “attr/type”
},
{
“name”: “attr/uniqueid”
},
{
“name”: “state/alert”
},
{
“name”: “state/on”,
“refresh.interval”: 360
},
{
“name”: “state/reachable”
}
]
},
{
“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”,
“awake”: true,
“parse”: {
“at”: “0x00f7”,
“ep”: 1,
“fn”: “xiaomi:special”,
“idx”: “0x08”,
“script”: “xiaomi_swversion.js”
},
“read”: {
“fn”: “none”
}
},
{
“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”,
“0x000C”
],
“items”: [
{
“name”: “attr/id”
},
{
“name”: “attr/lastannounced”
},
{
“name”: “attr/lastseen”
},
{
“name”: “attr/manufacturername”
},
{
“name”: “attr/modelid”
},
{
“name”: “attr/name”
},
{
“name”: “attr/swversion”,
“awake”: true,
“parse”: {
“at”: “0x00f7”,
“ep”: 1,
“fn”: “xiaomi:special”,
“idx”: “0x08”,
“script”: “xiaomi_swversion.js”
},
“read”: {
“fn”: “none”
}
},
{
“name”: “attr/type”
},
{
“name”: “attr/uniqueid”
},
{
“name”: “config/on”
},
{
“name”: “config/reachable”
},
{
“name”: “config/temperature”
},
{
“name”: “state/current”,
“parse”: {
“at”: “0x00F7”,
“eval”: “Item.val = Math.round(Attr.val);”,
“fn”: “xiaomi:special”,
“idx”: “0x97”
},
“read”: {
“fn”: “none”
}
},
{
“name”: “state/lastupdated”
},
{
“name”: “state/power”,
“refresh.interval”:360,
“read”: {
“at”: “0x0055”,
“cl”: “0x000C”,
“ep”: 1,
“fn”: “zcl”
},
“parse”: {
“at”: “0x0055”,
“cl”: “0x000C”,
“ep”: 1,
“eval”: “Item.val = Math.round(Attr.val);”
}
},
{
“name”: “state/voltage”,
“parse”: {
“at”: “0x00F7”,
“eval”: “Item.val = Math.round(Attr.val / 10);”,
“fn”: “xiaomi:special”,
“idx”: “0x96”
},
“read”: {
“fn”: “none”
}
}
]
},
{
“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”,
“awake”: true,
“parse”: {
“at”: “0x00f7”,
“ep”: 1,
“fn”: “xiaomi:special”,
“idx”: “0x08”,
“script”: “xiaomi_swversion.js”
},
“read”: {
“fn”: “none”
}
},
{
“name”: “attr/type”
},
{
“name”: “attr/uniqueid”
},
{
“name”: “config/on”
},
{
“name”: “config/reachable”
},
{
“name”: “config/temperature”
},
{
“name”: “state/consumption”,
“parse”: {
“at”: “0x00f7”,
“fn”: “xiaomi:special”,
“idx”: “0x95”,
“eval”: “Item.val = Math.round(Attr.val);”
},
“read”: {
“fn”: “none”
}
},
{
“name”: “state/lastupdated”
}
]
}
],
“bindings”: [
{
“bind”: “unicast”,
“src.ep”: 1,
“dst.ep”: 1,
“cl”: “0x0006”,
“report”: [
{
“at”: “0x0000”,
“dt”: “0x10”,
“min”: 5,
“max”: 300
}
]
},
{
“bind”: “unicast”,
“src.ep”: 2,
“dst.ep”: 1,
“cl”: “0x0006”,
“report”: [
{
“at”: “0x0000”,
“dt”: “0x10”,
“min”: 5,
“max”: 300
}
]
}
]
}

Diiferences are minor to me : Your DDF have refresh.interval and default that are useless because they are the same than in generic item .json. And reference to xiaomi_swversion.js in swverion is missing, but that doesn’t interfere from my point of view with exitance of

"uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"