deconz-rest-plugin: Wrong direction for motorised blinds _TZE200_xuzcvlku TS0601

Describe the bug

The seems to be an issue with the api command for a cover state (_TZE200_xuzcvlku, TS0601) motorised blind chain. The positions seem to be correct and the state of close or open are also correct but when issuing a state {'open': true} or {'open': false} then the actions are inverted. So if the blind is already closed and I call {'open': true} then the motor won’t run but I I do {'open': false} then it will actually open the blinds and vise versa.

These are the status for when the blind is closed:

{
    "etag": "bf042601379e4bfa12971a7bd45c459c",
    "hascolor": false,
    "lastannounced": null,
    "lastseen": "2021-05-06T06:28Z",
    "manufacturername": "_TZE200_xuzcvlku",
    "modelid": "TS0601",
    "name": "Living Room Blinds",
    "state": {
        "alert": "none",
        "bri": 254,
        "lift": 100,
        "on": true,
        "open": false,
        "reachable": true
    },
    "swversion": null,
    "type": "Window covering device",
    "uniqueid": "5c:02:72:ff:fe:8c:72:3d-01"
}

and these are the status when the blinds are open:

{
    "etag": "dd89d684677943c3125191639d5ef16f",
    "hascolor": false,
    "lastannounced": null,
    "lastseen": "2021-05-06T06:29Z",
    "manufacturername": "_TZE200_xuzcvlku",
    "modelid": "TS0601",
    "name": "Living Room Blinds",
    "state": {
        "alert": "none",
        "bri": 0,
        "lift": 0,
        "on": false,
        "open": true,
        "reachable": true
    },
    "swversion": null,
    "type": "Window covering device",
    "uniqueid": "5c:02:72:ff:fe:8c:72:3d-01"
}

Executing a position or lift to 100 or 0 will give the correct result though.

Steps to reproduce the behavior

Expected behavior

The open and close commands should be inverted but not the values

Screenshots

Environment

  • Host system: (Raspberry Pi / PC / NAS)
  • Running method: (Raspbian / Ubuntu / Home Assistent deCONZ Add-on / Marthoc Docker container / Windows / Virtual Machine): Docker
  • Firmware version: (26xxyy00): 26660700
  • deCONZ version: (2.xx.yy): 2.11.02
  • Device: (ConBee I / ConBee II / RaspBee I / RaspBee II): ConBee II
  • Do you use an USB extension cable: (yes / no) – only relevant for ConBee I/II: no
  • Is there any other USB or serial devices connected to the host system? If so: Which?

deCONZ Logs

Additional context

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17

Most upvoted comments

Nice, thx, will make the PR