dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 496 forks source link

parasoll mqtt no reading available open/close #7507

Closed hyper2910 closed 8 months ago

hyper2910 commented 8 months ago

Does the issue really belong here?

Is there already an existing issue for this?

Describe the bug

no status change via mqtt

STATE is evrytime INITIALIZED

as Reading also only the following coming

image

Steps to reproduce the behavior

deleting and new reconnection of device:

Expected behavior

a status/reading with open/close

Screenshots

Environment

deCONZ Logs

REST API

{
    "config": {
        "battery": 94,
        "on": true,
        "pending": [],
        "reachable": true
    },
    "ep": 2,
    "etag": "d0bbefea005e36de397817e977ea2140",
    "lastannounced": null,
    "lastseen": "2024-01-02T11:13Z",
    "manufacturername": "IKEA of Sweden",
    "modelid": "PARASOLL Door/Window Sensor",
    "name": "PARASOLL Door/Window Sensor",
    "state": {
        "lastupdated": "none",
        "lowbattery": null,
        "open": null
    },
    "swversion": "1.0.19",
    "type": "ZHAOpenClose",
    "uniqueid": "04:87:27:ff:fe:b8:a7:1c-02-0500"
}.

Events after new connecting and some open and closes:

{
    "12:13:36:663": {
        "attr": {
            "id": "15",
            "lastannounced": null,
            "lastseen": "2024-01-02T11:13Z",
            "manufacturername": "IKEA of Sweden",
            "mode": 1,
            "modelid": "PARASOLL Door/Window Sensor",
            "name": "PARASOLL Door/Window Sensor",
            "swversion": "1.0.19",
            "type": "ZHAOpenClose",
            "uniqueid": "04:87:27:ff:fe:b8:a7:1c-02-0500"
        },
        "e": "changed",
        "id": "15",
        "r": "sensors",
        "t": "event",
        "uniqueid": "04:87:27:ff:fe:b8:a7:1c-02-0500"
    },
    "12:14:36:863": {
        "attr": {
            "id": "15",
            "lastannounced": null,
            "lastseen": "2024-01-02T11:14Z",
            "manufacturername": "IKEA of Sweden",
            "mode": 1,
            "modelid": "PARASOLL Door/Window Sensor",
            "name": "PARASOLL Door/Window Sensor",
            "swversion": "1.0.19",
            "type": "ZHAOpenClose",
            "uniqueid": "04:87:27:ff:fe:b8:a7:1c-02-0500"
        },
        "e": "changed",
        "id": "15",
        "r": "sensors",
        "t": "event",
        "uniqueid": "04:87:27:ff:fe:b8:a7:1c-02-0500"
    }
}

DDF Rest API

{
    "schema": "devcap1.schema.json",
    "manufacturername": "$MF_IKEA",
    "modelid": "PARASOLL Door/Window Sensor",
    "product": "PARASOLL Door/Window Sensor",
    "sleeper": true,
    "status": "Gold",
    "path": "/devices/ikea/parasoll_open_close_sensor.json",
    "subdevices": [
        {
            "type": "$TYPE_OPEN_CLOSE_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x02",
                "0x0500"
            ],
            "fingerprint": {
                "profile": "0x0104",
                "device": "0x0402",
                "endpoint": "0x02",
                "in": [
                    "0x0000",
                    "0x0001",
                    "0x0500"
                ]
            },
            "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/battery",
                    "awake": true,
                    "read": {
                        "fn": "none"
                    },
                    "parse": {
                        "at": "0x0021",
                        "cl": "0x0001",
                        "ep": 1,
                        "eval": "Item.val = Attr.val / 2;",
                        "fn": "zcl:attr"
                    },
                    "default": 0
                },
                {
                    "name": "config/checkin",
                    "public": false,
                    "refresh.interval": 3600,
                    "read": {
                        "at": "0x0000",
                        "cl": "0x0020",
                        "ep": 1,
                        "fn": "zcl:attr"
                    },
                    "write": {
                        "at": "0x0000",
                        "cl": "0x0020",
                        "dt": "0x23",
                        "ep": 1,
                        "eval": "Item.val",
                        "fn": "zcl:attr"
                    },
                    "parse": {
                        "at": "0x0000",
                        "cl": "0x0020",
                        "ep": 1,
                        "eval": "Item.val = Attr.val",
                        "fn": "zcl:attr"
                    },
                    "default": 14400
                },
                {
                    "name": "config/enrolled",
                    "public": false
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/pending"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/lastupdated"
                },
                {
                    "name": "state/lowbattery",
                    "awake": true
                },
                {
                    "name": "state/open",
                    "awake": true
                }
            ]
        }
    ],
    "bindings": [
        {
            "bind": "unicast",
            "src.ep": 1,
            "cl": "0x0001",
            "report": [
                {
                    "at": "0x0021",
                    "dt": "0x20",
                    "min": 3600,
                    "max": 43200,
                    "change": "0x00000002"
                }
            ]
        },
        {
            "bind": "unicast",
            "src.ep": 2,
            "cl": "0x0500"
        }
    ]
}

Additional context

.

hyper2910 commented 8 months ago

also no "wert" in P Screenshot 2024-01-02 072310 hoscon

Mimiix commented 8 months ago

Hi,

what does the RestAPI / Websocket show?

hyper2910 commented 8 months ago

Hi, what do you mean?

in phoscon also no "Status/WERT" is available.

parasoll

Mimiix commented 8 months ago

Hi,

You can check in Phoscon under Help > API information. There, filter for Sensors and select your Parasoll sensor.

If you open/close it, does it show changes under Events tab? Can you also show the Rest API output?

hyper2910 commented 8 months ago

Sensor Open:

{
    "config": {
        "battery": 94,
        "on": true,
        "pending": [],
        "reachable": true
    },
    "ep": 2,
    "etag": "cfc8a9095086bb68996bf611ce4ebb33",
    "lastannounced": null,
    "lastseen": "2024-01-02T08:46Z",
    "manufacturername": "IKEA of Sweden",
    "modelid": "PARASOLL Door/Window Sensor",
    "name": "OpenClose_test",
    "state": {
        "lastupdated": "none",
        "lowbattery": null,
        "open": null
    },
    "swversion": "1.0.19",
    "type": "ZHAOpenClose",
    "uniqueid": "04:87:27:ff:fe:b8:a7:1c-02-0500"
}

Sensor Closed: { "config": { "battery": 94, "on": true, "pending": [], "reachable": true }, "ep": 2, "etag": "cfc8a9095086bb68996bf611ce4ebb33", "lastannounced": null, "lastseen": "2024-01-02T08:46Z", "manufacturername": "IKEA of Sweden", "modelid": "PARASOLL Door/Window Sensor", "name": "OpenClose_test", "state": { "lastupdated": "none", "lowbattery": null, "open": null }, "swversion": "1.0.19", "type": "ZHAOpenClose", "uniqueid": "04:87:27:ff:fe:b8:a7:1c-02-0500" }

Unter Events: {} image

Mimiix commented 8 months ago

Can you please fill the details of the template correctly?

Also, can you show me a screenshot of the basic cluster of the device in deconz?

https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/How-to-read-Clusters

hyper2910 commented 8 months ago

image image image

Mimiix commented 8 months ago

Still waiting on the template info.

hyper2910 commented 8 months ago

sorry my first time in github.

What do you need more?

Mimiix commented 8 months ago

The template asks for environment details. You need to fill those.

hyper2910 commented 8 months ago

where did i get the template back?

Mimiix commented 8 months ago

where did i get the template back?

Edit your first post.

hyper2910 commented 8 months ago

where did i get the template back?

Edit your first post.

Done

Mimiix commented 8 months ago

didyou try to re-pair the sensor already?

hyper2910 commented 8 months ago

didyou try to re-pair the sensor already?

Yes, done a few minutes ago and same issues

Mimiix commented 8 months ago

https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Update-deCONZ-manually

You might need to update the firmware on the conbee as it is outdated.

hyper2910 commented 8 months ago

updated, same situation as before

Mimiix commented 8 months ago

Can you:

Remove the device, Restart deconz Start logging with log levels APS, APS L2, ERROR, ERROR L2, INFO, INFO L2. You can log in deconz under help , debug logs. Start searching for new devices. After pairing share the logs via Pastebin

hyper2910 commented 8 months ago

aftre repairing the "Status" is available. many thanks.

Mimiix commented 8 months ago

Happy to hear it works. Take care :)

tkoenig commented 7 months ago

I'm having the same issues with this device. I tried the same steps with removing the device and restarting and pairing it again but no luck.

@hyper2910 does it now show anything under "Werte" for you now? @Mimiix I tried pairing this device before upgrading to the beta release, could this cause an issue? @ebaauw I noticed from another issue that you also seem to have this device, does it work for you? (I'm using homebridge-deconz, where the device shows up, but also no state changes).

Below is what I get in the AI Information (with a little bit of a lag):

Events ``` { "20:25:16:161": { "attr": { "id": "28", "lastannounced": "2024-01-18T19:24:16Z", "lastseen": "2024-01-18T19:25Z", "manufacturername": "IKEA of Sweden", "mode": 1, "modelid": "PARASOLL Door/Window Sensor", "name": "PARASOLL Door/Window Sensor", "swversion": "1.0.19", "type": "ZHAOpenClose", "uniqueid": "3c:2e:f5:ff:fe:42:4c:f9-02-0500" }, "e": "changed", "id": "28", "r": "sensors", "t": "event", "uniqueid": "3c:2e:f5:ff:fe:42:4c:f9-02-0500" }, "20:26:16:476": { "attr": { "id": "28", "lastannounced": "2024-01-18T19:24:16Z", "lastseen": "2024-01-18T19:26Z", "manufacturername": "IKEA of Sweden", "mode": 1, "modelid": "PARASOLL Door/Window Sensor", "name": "PARASOLL Door/Window Sensor", "swversion": "1.0.19", "type": "ZHAOpenClose", "uniqueid": "3c:2e:f5:ff:fe:42:4c:f9-02-0500" }, "e": "changed", "id": "28", "r": "sensors", "t": "event", "uniqueid": "3c:2e:f5:ff:fe:42:4c:f9-02-0500" }, "20:27:33:893": { "attr": { "id": "28", "lastannounced": "2024-01-18T19:24:16Z", "lastseen": "2024-01-18T19:27Z", "manufacturername": "IKEA of Sweden", "mode": 1, "modelid": "PARASOLL Door/Window Sensor", "name": "PARASOLL Door/Window Sensor", "swversion": "1.0.19", "type": "ZHAOpenClose", "uniqueid": "3c:2e:f5:ff:fe:42:4c:f9-02-0500" }, "e": "changed", "id": "28", "r": "sensors", "t": "event", "uniqueid": "3c:2e:f5:ff:fe:42:4c:f9-02-0500" }, "20:28:34:208": { "attr": { "id": "28", "lastannounced": "2024-01-18T19:24:16Z", "lastseen": "2024-01-18T19:28Z", "manufacturername": "IKEA of Sweden", "mode": 1, "modelid": "PARASOLL Door/Window Sensor", "name": "PARASOLL Door/Window Sensor", "swversion": "1.0.19", "type": "ZHAOpenClose", "uniqueid": "3c:2e:f5:ff:fe:42:4c:f9-02-0500" }, "e": "changed", "id": "28", "r": "sensors", "t": "event", "uniqueid": "3c:2e:f5:ff:fe:42:4c:f9-02-0500" }, "20:34:18:966": { "attr": { "id": "28", "lastannounced": "2024-01-18T19:24:16Z", "lastseen": "2024-01-18T19:34Z", "manufacturername": "IKEA of Sweden", "mode": 1, "modelid": "PARASOLL Door/Window Sensor", "name": "PARASOLL Door/Window Sensor", "swversion": "1.0.19", "type": "ZHAOpenClose", "uniqueid": "3c:2e:f5:ff:fe:42:4c:f9-02-0500" }, "e": "changed", "id": "28", "r": "sensors", "t": "event", "uniqueid": "3c:2e:f5:ff:fe:42:4c:f9-02-0500" } } ```
RestAPI ``` { "config": { "battery": 0, "on": true, "pending": [], "reachable": true }, "ep": 2, "etag": "470548709c94e4c049515398cfd53fdd", "lastannounced": "2024-01-18T19:24:16Z", "lastseen": "2024-01-18T19:34Z", "manufacturername": "IKEA of Sweden", "modelid": "PARASOLL Door/Window Sensor", "name": "PARASOLL Door/Window Sensor", "state": { "lastupdated": "none", "lowbattery": null, "open": null }, "swversion": "1.0.19", "type": "ZHAOpenClose", "uniqueid": "3c:2e:f5:ff:fe:42:4c:f9-02-0500" } ```