Device appear in deCONZ but not in Phoscon

Hi,
For months I have been using an aqara llkzmk11lm wireless relay with the deCONZ plugin for HA.
Everything was working fine until deCONZ restarted after an HA core update.
Now this device appears in deCONZ but not in Phoscon and is no longer visible in HA.

In deCONZ ui the device is connected and everything works fine. No errors in deCONZ logs, communication with the RaspBee II module seems to work well.
But I no longer see the device in Phoscon and HA.

To test I mounted a new SD-card from an Phoscon image with the pre-installed deCONZ software as well as the Phoscon App.
After a new pairing of the device, the result is the same!
Any solution to fixe this issue?
What will I lose if I try to reset the RaspBee II module?
Will the pairing of all my devices disappear?

Thanks for your help.
Best regard.

Hello, How is the node in deconz GUI ? his name is like 0xXXXX or have a correct name ?

If the name is “correct” the device is probably in the API too, try making a search with the uniqueID, something can have moved.

If the device is not correclty included, it can work, but will be removed at next deconz start (not saved if incomplete), it s vivible too on deconz node. Xiaomi: Lost devices or functional issues · dresden-elektronik/deconz-rest-plugin Wiki · GitHub

Moved to general support.


Capture d’écran 2023-02-11 113616
Hi,
Thanks for your quick reply.
For me the name is “correct”: Power 54

Can you explain to me what you mean by “making search with the uniqueID”?

  • Making search in deCONZ, Phoscon or HA?
  • What do you call uniqueID? The MAC Adress?

Edit/Removed: Looked same for me, so moved to another topic:

You have not same issue, when the name return back too something like 0xXXXX, it’s because the detection is not finished.

I have updated a DDF for this device Xiaomi Aqara relay controller lumi.relay.c2acn01 stopped working · Issue #6512 · dresden-elektronik/deconz-rest-plugin · GitHub

But it’s made with copy/paste from anbother device, not sure power and consumption will work.

1 Like

Please don’t hijack an topic but start your own.

1 Like

@Smanar,
What should I understand from your answer?
You think that this issue is cause by a wrong DDF file?



Capture d’écran 2023-02-12 214938

No, at all ^^.
This device don’t have DDF, and It’s generaly faster to make a DDF than trying to repair the c++ code (that will be removed soon).

I have put the DDF on the github, I think the on/off will work, not sure for consumption.

@Smanar,
Will this new DDF file be released with the next stable version v2.21?

I need someone test the DDF and confirm it’s working, or say what it’is not working to finish it.

@Smanar
With the DDF file, now I see the device in deCONZ.
It seems to work but I’m not an expert.
For information I use only one channel on the relay.

    "12": {
        "capabilities": {
            "alerts": [
                "none",
                "select",
                "lselect"
            ]
        },
        "config": {
            "groups": [
                "1"
            ]
        },
        "etag": "4e3ad69a687677449c4a47f8a56722bf",
        "hascolor": false,
        "lastannounced": null,
        "lastseen": "2023-02-16T13:45Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 12",
        "state": {
            "alert": "none",
            "on": false,
            "reachable": true
        },
        "swversion": null,
        "type": "On/Off output",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01"
    },
    "13": {
        "capabilities": {
            "alerts": [
                "none",
                "select",
                "lselect"
            ]
        },
        "config": {
            "groups": [
                "1"
            ]
        },
        "etag": "c7ae538075e320dd3b4bddd91292ce62",
        "hascolor": false,
        "lastannounced": null,
        "lastseen": "2023-02-16T13:45Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 13",
        "state": {
            "alert": "none",
            "on": false,
            "reachable": true
        },
        "swversion": null,
        "type": "On/Off output",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-02"
    }
		
    "9": {
        "config": {
            "on": true,
            "reachable": true,
            "temperature": null
        },
        "ep": 1,
        "etag": "0875707bdcef3d0cfa70309dc7b19eb4",
        "lastannounced": null,
        "lastseen": "2023-02-16T13:45Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 9",
        "state": {
            "consumption": 0,
            "current": 0,
            "lastupdated": "2023-02-16T13:45:21.483",
            "power": 0,
            "voltage": 240
        },
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
    },
    "10": {
        "config": {
            "on": true,
            "reachable": true,
            "temperature": 0
        },
        "ep": 1,
        "etag": "c7ae538075e320dd3b4bddd91292ce62",
        "lastannounced": "2023-02-16T10:11:28Z",
        "lastseen": "2023-02-16T13:45Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Power 10",
        "state": {
            "current": 0,
            "lastupdated": "2023-02-16T13:45:34.015",
            "power": -1,
            "voltage": 0
        },
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
    }
}

}

{
“13:55:19:683”: {
“attr”: {
“id”: “12”,
“lastannounced”: null,
“lastseen”: “2023-02-16T13:55Z”,
“manufacturername”: “LUMI”,
“modelid”: “lumi.relay.c2acn01”,
“name”: “On/Off output 12”,
“swversion”: null,
“type”: “On/Off output”,
“uniqueid”: “00:15:8d:00:07:9b:88:e1-01”
},
“e”: “changed”,
“id”: “12”,
“r”: “lights”,
“t”: “event”,
“uniqueid”: “00:15:8d:00:07:9b:88:e1-01”
},
“13:55:19:754”: {
“attr”: {
“id”: “13”,
“lastannounced”: null,
“lastseen”: “2023-02-16T13:55Z”,
“manufacturername”: “LUMI”,
“modelid”: “lumi.relay.c2acn01”,
“name”: “On/Off output 13”,
“swversion”: null,
“type”: “On/Off output”,
“uniqueid”: “00:15:8d:00:07:9b:88:e1-02”
},
“e”: “changed”,
“id”: “13”,
“r”: “lights”,
“t”: “event”,
“uniqueid”: “00:15:8d:00:07:9b:88:e1-02”
}
}

        "state": {
            "current": 0,
            "lastupdated": "2023-02-16T13:45:34.015",
            "power": -1,
            "voltage": 0
        },
        "type": "ZHAPower",

The on/off is working ? The voltage seem good
The power and consumption I m not sure …

And BTW there is no state/power, state/voltage and ect on the ZHAConsumption on the DDF, idk where they are from …
It was from the previous inclusion without the DDF ?

@Smanar
Yes, On/Off is working:
“12”: {
“capabilities”: {
“alerts”: [
“none”,
“select”,
“lselect”
]
},
“config”: {
“groups”: [
“1”
]
},
“etag”: “a6f1df1ed12ace78ffee46222b9c1a16”,
“hascolor”: false,
“lastannounced”: null,
“lastseen”: “2023-02-17T20:30Z”,
“manufacturername”: “LUMI”,
“modelid”: “lumi.relay.c2acn01”,
“name”: “On/Off output 12”,
“state”: {
“alert”: “none”,
“on”: true,
“reachable”: true
},
“swversion”: “0x00000000”,
“type”: “On/Off output”,
“uniqueid”: “00:15:8d:00:07:9b:88:e1-01”
},

“consumption”, “power”, “voltage” are working and I don’t know what is “current”:
“22:33:20:259”: {
“attr”: {
“id”: “9”,
“lastannounced”: null,
“lastseen”: “2023-02-17T22:33Z”,
“manufacturername”: “LUMI”,
“modelid”: “lumi.relay.c2acn01”,
“name”: “Consumption 9”,
“swversion”: null,
“type”: “ZHAConsumption”,
“uniqueid”: “00:15:8d:00:07:9b:88:e1-01-000c”
}

"22:33:20:954": {
    "e": "changed",
    "id": "9",
    "r": "sensors",
    "state": {
        "consumption": 10700,
        "current": 0,
        "lastupdated": "2023-02-17T22:33:20.951",
        "power": 11,
        "voltage": 241
    }

I don’t understand why you say “there is no state/power, state/voltage and etc on the ZHAConsumption on the DDFIn DDF file”?
I see “state/current, state/power, state/voltage” in DDF:
{
“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”: 10,
“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”
}
}

Thanks for your help.
Bests regards

Yep, but they are in the ZHAPower sensor, not the ZHAConsumption.
The device id 9 is a ZHAConsumption and this one have only a “state/consumption” in the DDF, its for that I think there is a conflict with the legacy code and the DDF one.

Edit: My fault, I m using the ame uniqueID for both.

Edit2:
Have corrected the DDF on the github, now ZHAPower and ZHAConsumption will have a different uniqueID, better to delete old sensor before using the new DD as it will change the uniqueID.

@Smanar
Here the logs with new DDF file:
{
“10:36:53:288”: {
“attr”: {
“id”: “2”,
“lastannounced”: “2023-02-19T10:19:26Z”,
“lastseen”: “2023-02-19T10:36Z”,
“manufacturername”: “LUMI”,
“modelid”: “lumi.relay.c2acn01”,
“name”: “On/Off output 2”,
“swversion”: null,
“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”
},
“10:36:53:294”: {
“attr”: {
“id”: “3”,
“lastannounced”: “2023-02-19T10:19:26Z”,
“lastseen”: “2023-02-19T10:36Z”,
“manufacturername”: “LUMI”,
“modelid”: “lumi.relay.c2acn01”,
“name”: “On/Off output 3”,
“swversion”: null,
“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”
},
“10:36:53:302”: {
“attr”: {
“id”: “15”,
“lastannounced”: “2023-02-19T10:19:26Z”,
“lastseen”: “2023-02-19T10:36Z”,
“manufacturername”: “LUMI”,
“modelid”: “lumi.relay.c2acn01”,
“name”: “Power 15”,
“swversion”: null,
“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”
},
“10:36:53:308”: {
“attr”: {
“id”: “14”,
“lastannounced”: “2023-02-19T10:19:26Z”,
“lastseen”: “2023-02-19T10:36Z”,
“manufacturername”: “LUMI”,
“modelid”: “lumi.relay.c2acn01”,
“name”: “Consumption 14”,
“swversion”: null,
“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”
},
“10:36:53:499”: {
“e”: “changed”,
“id”: “15”,
“r”: “sensors”,
“state”: {
“current”: 0,
“lastupdated”: “2023-02-19T10:36:53.494”,
“power”: 0,
“voltage”: 234
},
“t”: “event”,
“uniqueid”: “00:15:8d:00:07:9b:88:e1-01-0b04”
},
“10:36:53:503”: {
“e”: “changed”,
“id”: “14”,
“r”: “sensors”,
“state”: {
“consumption”: 5,
“lastupdated”: “2023-02-19T10:36:53.495”
},
“t”: “event”,
“uniqueid”: “00:15:8d:00:07:9b:88:e1-01-000c”
}

I report a bug on github:

Bests regards.

I will continue the issue on the github, I m more often on it.

@Smanar, I don’t understand why @SwoopX closed my issue on github, if it’s not a REST API issue, what is it ?
Is DDF file not in the code of deconz-rest-plugin?

Yes, but don’t take care, we can continue here if they prefer.
You can’t use deconz to see value for current/power and ect … This device use the Xiaomi cluster. The only way to see them is direclty in the API.

“state”: {
“current”: 0,
“lastupdated”: “2023-02-19T10:36:53.494”,
“power”: 0,
“voltage”: 234
},

You have 0 for current and power, perhaps you haven’t enought load ?

Except that, all is working ? Now all is visible, even in phoscon ?

@Smanar, here are the REST API logs:

"21:51:14:801": {
    "attr": {
        "id": "2",
        "lastannounced": null,
        "lastseen": "2023-02-20T21:51Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 2",
        "swversion": "0x00000000",
        "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:51:14:804": {
    "attr": {
        "id": "3",
        "lastannounced": null,
        "lastseen": "2023-02-20T21:51Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "On/Off output 3",
        "swversion": "0x00000000",
        "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:51:14:809": {
    "attr": {
        "id": "15",
        "lastannounced": null,
        "lastseen": "2023-02-20T21:51Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Power 15",
        "swversion": null,
        "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:51:14:812": {
    "attr": {
        "id": "14",
        "lastannounced": null,
        "lastseen": "2023-02-20T21:51Z",
        "manufacturername": "LUMI",
        "modelid": "lumi.relay.c2acn01",
        "name": "Consumption 14",
        "swversion": null,
        "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:51:15:22": {
    "e": "changed",
    "id": "15",
    "r": "sensors",
    "state": {
        "current": 0,
        "lastupdated": "2023-02-20T21:51:15.016",
        "power": 1,
        "voltage": 236
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-0b04"
},
"21:51:15:27": {
    "e": "changed",
    "id": "14",
    "r": "sensors",
    "state": {
        "consumption": 552,
        "lastupdated": "2023-02-20T21:51:15.017"
    },
    "t": "event",
    "uniqueid": "00:15:8d:00:07:9b:88:e1-01-000c"
},

We can see:
“current”: 0
“power”: 1,
“voltage”: 236
“consumption”: 552

For me all is ok!
Do you know what the “current” value is?