zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

IKEA Fyrtur Kadrilj Blinds

Open Luftloch80 opened this issue 7 years ago • 143 comments

Hey. In a few days These new devices will be Released. Will it be possible to Support Them. Because will be the First zigbee blinds? Or do you add code to Support blinds ? Thx

Luftloch80 avatar Jan 19 '19 15:01 Luftloch80

We can check when somebody gets their hands on one of them.

Koenkk avatar Jan 19 '19 17:01 Koenkk

I will definitiv Buy as Soon as avaiable in Germany

Luftloch80 avatar Jan 19 '19 19:01 Luftloch80

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 20 '19 19:03 stale[bot]

They are now available:

And promising for DIY: https://www.youtube.com/watch?v=tfJn6oNGF74

osos avatar Aug 16 '19 21:08 osos

Please reopen

osos avatar Aug 16 '19 21:08 osos

If somebody owns this device and wants to add support for it, we can reopen it.

Koenkk avatar Aug 18 '19 13:08 Koenkk

Ok. A friend bought a couple of these. We are going to add them to zigbee2mqtt asap.

However, looking through you website, I do not understand how to find out which commands are available to control and create the "toZigBee" converters.

Please provide some pointers.

osos avatar Aug 19 '19 15:08 osos

I think you can reuse the cover_control converter: https://github.com/Koenkk/zigbee-shepherd-converters/blob/master/converters/toZigbee.js#L187

Koenkk avatar Aug 21 '19 07:08 Koenkk

There is some information about these blinds in this thread. It may be useful -> https://github.com/dresden-elektronik/deconz-rest-plugin/issues/1121

darkkatarsis avatar Aug 25 '19 07:08 darkkatarsis

Two issues.

  1. Getting Ikea E1766 remote (Open/Close Remote) working.

Pairing as usual. 4 short pushed on the reset button on the back. Paired by holding close to signal repeater.

It reveals itself as model = modelID = "TRADFRI open/close remote"

Added to devices.js:

   {
        zigbeeModel: ['TRADFRI open/close remote'],
        model: 'TRADFRI open/close remote',
        vendor: 'IKEA',
        description: 'TRADFRI open/close remote',
        supports: 'up, down, release',
        fromZigbee: [ fz.genOnOff_cmdOn, fz.genOnOff_cmdOff, fz.TRADFRI_open_close_stop ],
        toZigbee: [],
        configure: (ieeeAddr, shepherd, coordinator, callback) => {
            const device = shepherd.find(ieeeAddr, 1);
            const cfg = {
                direction: 0, attrId: 33, dataType: 32, minRepIntval: 0, maxRepIntval: repInterval.MAX, repChange: 0,
            };

            const actions = [
                (cb) => device.bind('genPowerCfg', coordinator, cb),
                (cb) => device.foundation('genPowerCfg', 'configReport', [cfg], foundationCfg, cb),
            ];

            execute(device, actions, callback);
        },
    },

and into fromZigBee.js:

   TRADFRI_open_close_stop: {
        cid: 'closuresWindowCovering',
        type: 'cmdStop',
        convert: (model, msg, publish, options) => {
            return {click: 'closure_stop'};
        },
    },

However, I do not get any events nor warnings for regular button push. The stop function is activated by long-press any button.

Seems supported by deconz: https://github.com/dresden-elektronik/deconz-rest-plugin/blob/dc0d508d6a8c49d4cf59a3b72791f31f726d801b/sensor.cpp#L146

  1. FYRTUR blinds.

Pairing easy.: Hold both buttons on blind for 5 seconds, release and hold close to repeater.

Reveals itself as:

Device with modelID 'FYRTUR block-out roller blind' is not supported.

Working on getting it working.

Any help on both appreciated.

osos avatar Aug 31 '19 13:08 osos

I've installed two Fyrtur blinds this morning. After installing the blinds i've tried to add them to zigbee2mqtt but i experience the same issues as @osos.

Pairing was very easy but afterwards i didn't receive any event in zigbee2mqtt.

allesgutewarweg avatar Aug 31 '19 14:08 allesgutewarweg

The Remote has a client Window Covering cluster, to send comands to the blind. This means that it can only control (directly) the blind, and that the blind cannot be controlled (directly) by the other control devices. Not too happy about the 0xFC7C cluster, which is probably used for some IKEA-specific configuration. We need to sniff the specific configuration.

The remote reporting its battery percentage (cluster 0x0001, attribute 0x0021).

The FYRTUR does support attribute reporting for Battery Percentage Remaining (0x0001/0x0021) and, for Current Position Lift Percentage (0x0102/0x0008). For this we also need configure reporting to see the actually lift state.

We could use also SW Build ID (0x0000/0x4000).

From what I see their should be a group ID where they act like we see from other ikea remotes.

tb-killa avatar Aug 31 '19 14:08 tb-killa

@osos please share your database file content.

tb-killa avatar Aug 31 '19 14:08 tb-killa

From database.db:

Open/Close remote:

{"id":8,"type":"EndDevice","ieeeAddr":"0x000d6ffffee3c176","nwkAddr":56685,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Battery","modelId":"TRADFRI open/close remote","epList":[1],"zclVersion":3,"appVersion":34,"stackVersion":98,"hwVersion":1,"swBuildId":"2.2.008","status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":515,"inClusterList":[0,1,3,9,32,4096,64636],"outClusterList":[3,4,6,8,25,258,4096],"clusters":{"64636":{"dir":{"value":1},"attrs":{}},"genBasic":{"dir":{"value":1},"attrs":{"9":226,"10":{},"11":"","65533":1,"zclVersion":3,"appVersion":34,"stackVersion":98,"hwVersion":1,"manufacturerName":"IKEA of Sweden","modelId":"TRADFRI open/close remote","dateCode":"20190311","powerSource":3,"appProfileVersion":1,"swBuildId":"2.2.008"}},"genPowerCfg":{"dir":{"value":1},"attrs":{"65533":1,"batteryVoltage":29,"batteryPercentageRemaining":74}},"genIdentify":{"dir":{"value":3},"attrs":{"65533":1,"identifyTime":0}},"genGroups":{"dir":{"value":2},"attrs":{}},"genOnOff":{"dir":{"value":2},"attrs":{}},"genLevelCtrl":{"dir":{"value":2},"attrs":{}},"genAlarms":{"dir":{"value":1},"attrs":{"65533":1}},"genOta":{"dir":{"value":2},"attrs":{}},"genPollCtrl":{"dir":{"value":1},"attrs":{"65533":1,"checkinInterval":172800,"longPollInterval":1160,"shortPollInterval":4,"fastPollTimeout":40}},"closuresWindowCovering":{"dir":{"value":2},"attrs":{}},"lightLink":{"dir":{"value":3},"attrs":{"65533":1}}}}},"dateCode":"20190311","_id":"RcCUQl89Wv8qZqH2"}

Fyrtur:

{"id":9,"type":"EndDevice","ieeeAddr":"0x000d6ffffe2dea2f","nwkAddr":58822,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Battery","modelId":"FYRTUR block-out roller blind","epList":[1],"zclVersion":3,"appVersion":34,"stackVersion":99,"hwVersion":1,"swBuildId":"2.2.007","status":"online","joinTime":1567257368,"endpoints":{"1":{"profId":260,"epId":1,"devId":514,"inClusterList":[0,1,3,4,5,32,258,4096,64636],"outClusterList":[25,4096],"clusters":{"64636":{"dir":{"value":1},"attrs":{}},"genBasic":{"dir":{"value":1},"attrs":{"9":255,"10":{},"11":"","65533":1,"zclVersion":3,"appVersion":34,"stackVersion":99,"hwVersion":1,"manufacturerName":"IKEA of Sweden","modelId":"FYRTUR block-out roller blind","dateCode":"20190311","powerSource":3,"appProfileVersion":0,"swBuildId":"2.2.007"}},"genPowerCfg":{"dir":{"value":1},"attrs":{"65533":1,"batteryVoltage":0,"batteryPercentageRemaining":0}},"genIdentify":{"dir":{"value":1},"attrs":{"65533":1,"identifyTime":168}},"genGroups":{"dir":{"value":1},"attrs":{}},"genScenes":{"dir":{"value":1},"attrs":{}},"genOta":{"dir":{"value":2},"attrs":{}},"genPollCtrl":{"dir":{"value":1},"attrs":{}},"closuresWindowCovering":{"dir":{"value":1},"attrs":{}},"lightLink":{"dir":{"value":3},"attrs":{}}}}},"dateCode":"20190311","_id":"jrVKz4IB9fT3m443"}
{"id":9,"type":"EndDevice","ieeeAddr":"0x000d6ffffe2dea2f","nwkAddr":58822,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Battery","modelId":"FYRTUR block-out roller blind","epList":[1],"zclVersion":3,"appVersion":34,"stackVersion":99,"hwVersion":1,"swBuildId":"2.2.007","status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":514,"inClusterList":[0,1,3,4,5,32,258,4096,64636],"outClusterList":[25,4096],"clusters":{"64636":{"dir":{"value":1},"attrs":{}},"genBasic":{"dir":{"value":1},"attrs":{"9":255,"10":{},"11":"","65533":1,"zclVersion":3,"appVersion":34,"stackVersion":99,"hwVersion":1,"manufacturerName":"IKEA of Sweden","modelId":"FYRTUR block-out roller blind","dateCode":"20190311","powerSource":3,"appProfileVersion":0,"swBuildId":"2.2.007"}},"genPowerCfg":{"dir":{"value":1},"attrs":{"65533":1,"batteryVoltage":0,"batteryPercentageRemaining":0}},"genIdentify":{"dir":{"value":1},"attrs":{"65533":1,"identifyTime":168}},"genGroups":{"dir":{"value":1},"attrs":{}},"genScenes":{"dir":{"value":1},"attrs":{}},"genOta":{"dir":{"value":2},"attrs":{}},"genPollCtrl":{"dir":{"value":1},"attrs":{}},"closuresWindowCovering":{"dir":{"value":1},"attrs":{}},"lightLink":{"dir":{"value":3},"attrs":{}}}}},"dateCode":"20190311","_id":"jrVKz4IB9fT3m443"}

osos avatar Aug 31 '19 18:08 osos

@tb-killa, the blinds can be controlled via the Ikea App and google/youtube shows that the blinds can be connected to Philips Hue bridge, thus it should be possible to control without Ikea specifics. Right?

osos avatar Aug 31 '19 18:08 osos

Inspiration may be found in deConz support for both the Open/Close remote and the blinds.

See pull request: https://github.com/dresden-elektronik/deconz-rest-plugin/pull/1774 https://github.com/dresden-elektronik/deconz-rest-plugin/pull/1783 https://github.com/dresden-elektronik/deconz-rest-plugin/pull/1785

I do not know where to go from here. I am able to sniff the traffic, but do not know how to use the information. From traffic sniffing I see the open/close remote send 3 different commands, 0x00 (Up/Open), 0x01 (Down/close) and 0x02 (Stop). However, only the Stop triggered output in zigbee2mqtt.

osos avatar Sep 01 '19 14:09 osos

@osos How's it going? Any status update?

serialtasted avatar Sep 03 '19 15:09 serialtasted

@osos How's it going? Any status update?

Not good. Don't know how to continue with this.

osos avatar Sep 03 '19 17:09 osos

were you able to get the open close remote working?

serialtasted avatar Sep 03 '19 20:09 serialtasted

Can somebody try with the following configuration for the blinds:

{
        zigbeeModel: ['FYRTUR block-out roller blind'],
        model: 'TODO',
        vendor: 'IKEA',
        description: 'Blinds',
        supports: 'open/close',
        fromZigbee: [fz.cover_position_report, fz.cover_position, fz.cover_state_change, fz.cover_state_report],
        toZigbee: [tz.cover_position, tz.cover_open_close],
    },

It should then work with zigbee2mqtt/[DEVICE_ID]/set {"state": "OPEN"} (and CLOSE)

Koenkk avatar Sep 23 '19 20:09 Koenkk