andreasnuesslein / py-teleco-daisy

MIT License
1 stars 3 forks source link

New type of device Screen roller blinds/Awnings (`22`) #5

Closed AdamFiser closed 3 months ago

AdamFiser commented 3 months ago

I am preparing to support the new id 22 device - Screen roller blinds/Awnings (22). idDeviceType=22

Three screens are installed in our Pratic pergola. Only the Open command is used to open, close and stop. Just like controlling with the remote control. I don't know if this is the default and they all work this way. If so, you will need to modify the support for HA as a button rather than a cover. Requires a deeper analysis.

"deviceList": [
    {
        "idInstallationDevice": 99999,
        "idDevicetype": 22,
        "idDevicemodel": 25,
        "deviceCode": "0",
        "remoteControlCode": "1",
        "label": "xyz",
        "deviceIndex": 3,
        "favorite": "N",
        "feedback": "N",
        "activetimer": "N",
        "deviceOrder": 2,
        "directOnly": null
    }
]

response from command-device-list API

"commandList": [
            {
                "idInstallationDeviceCommand": 555555,
                "idDevicetypeCommandModel": 75,
                "commandCode": "OPEN",
                "commandAction": "OPEN_STOP_CLOSE",
                "commandParam": "OPEN",
                "lowlevelCommand": "CH5",
                "deviceIndex": 0
            },
            {
                "idInstallationDeviceCommand": ,
                "idDevicetypeCommandModel": 76,
                "commandCode": "STOP",
                "commandAction": "OPEN_STOP_CLOSE",
                "commandParam": "STOP",
                "lowlevelCommand": "CH7",
                "deviceIndex": 0
            },
            {
                "idInstallationDeviceCommand": ,
                "idDevicetypeCommandModel": 77,
                "commandCode": "CLOSE",
                "commandAction": "OPEN_STOP_CLOSE",
                "commandParam": "CLOSE",
                "lowlevelCommand": "CH8",
                "deviceIndex": 0
            }
        ],