Skip to content

New DDF for all IKEA blinds#7245

Merged
manup merged 5 commits intodresden-elektronik:masterfrom
ebaauw:blind
Sep 28, 2023
Merged

New DDF for all IKEA blinds#7245
manup merged 5 commits intodresden-elektronik:masterfrom
ebaauw:blind

Conversation

@ebaauw
Copy link
Copy Markdown
Collaborator

@ebaauw ebaauw commented Sep 17, 2023

This new DDF exposes the IKEA FYRTUR, KADRILJ, PRAKTLYSING, and TREDANSEN blinds from one DDF.
It replacing the individual DDFs for FYRTUR, and for KADRILJ and the combined DDF for PRAKTLYSING and TREDANSEN.

I've only been able to test it on the FYRTUR as I don't posses any of the other blinds
I've downgraded the existing DDFs to status Draft, instead of deleting them.
This way, there's an easy fallback in case the new DDF doesn't work: mark it Draft and set the old DDF to Gold.
Once the new DDF has been confirmed to work with the other blinds, the existing DDFs can be deleted.
Note that the DDF for the KADRILJ was set to Silver.

Changes:

  • Add productid;
  • Add cap/groups/not_supported. While the blinds support the Groups cluster, deCONZ cannot send groupcasts to these, as it sends groupcasts to the Receiver On When Idle broadcast address and the blinds don't have this. With the latest firmware, the TRADFRI open/close remote no longer supports groupcasts either.
  • Remove long deprecated state/bri and state/on from the KADRILJ, PRAKTLYSING, and TREDANSEN. They were already removed from the FYRTUR;
  • Change the order of bindings to bind the Window Covering cluster before the Power Configuration cluster;
  • state/battery: Standardise on attribute reporting settings of 1/3600/0x01, with refresh interval of 3660;
  • Don't read the attr items on the ZHABattery, as they're already read for the Window covering device
{
  "etag": "087d96ca9e2219df5961bfc4b81d2feb",
  "hascolor": false,
  "lastannounced": null,
  "lastseen": "2023-09-17T08:09Z",
  "manufacturername": "IKEA of Sweden",
  "modelid": "FYRTUR block-out roller blind",
  "name": "Bathroom Blind",
  "productid": "E1757-140",
  "state": {
    "lift": 0,
    "open": true,
    "reachable": true
  },
  "swversion": "2.3.088",
  "type": "Window covering device",
  "uniqueid": "84:fd:27:ff:fe:e1:01:61-01"
}

Note the -140 in the productid, which indicates the width of the blind.

Downgrade status to `Draft`.
Downgrade status to `Draft`.
Downgrade status to `Draft`.
New DDF for all IKEA blinds.
@ebaauw ebaauw requested a review from manup September 17, 2023 08:11
@ebaauw ebaauw added Device Improvement Additional tag to attach to a existing issue. Fix labels Sep 17, 2023
@ebaauw ebaauw added this to the v2.24.1-beta milestone Sep 17, 2023
@ebaauw ebaauw marked this pull request as ready for review September 17, 2023 08:13
@manup manup merged commit b844d9a into dresden-elektronik:master Sep 28, 2023
@ebaauw ebaauw deleted the blind branch September 28, 2023 11:35
@jan666
Copy link
Copy Markdown
Contributor

jan666 commented Sep 29, 2023

Nice unification! With firmware 24.4.11 (of fyrtur at least) Ikea changed how the battery state is handled. To be correct it needs to be devided by 2 - so I always change the state/battery to `"eval": "Item.val = Attr.val / 2". Is it possible to add this to the DDF, depending on the firmware?

@ebaauw
Copy link
Copy Markdown
Collaborator Author

ebaauw commented Sep 29, 2023

IKEA are finally adhering to the Zigbee standard, reporting Battery Level in units of 0.5%. Newer devices do so, and for some older devices, this is fixed in new firmware. Technically, it might be possible to take the firmware version into consideration while parsing Battery Level into state/battery, but that’s tricky, especially since we’d need a semver comparison of firmware versions. I think it’s better to base the DDF on the latest firmware.

About that, I cannot find 24.4.11. My FYRTUR is on 2.3.88. What’s the Date Code reported by 24.4.11? What’s the File Version? How did you upgrade: through the Dirigeria or through the Trådfri hub? Or through deCONZ, but where did you get the file? Seems I found it already, but OTAU plugin wanted a restart of deCONZ. Upgrading…

@jan666
Copy link
Copy Markdown
Contributor

jan666 commented Sep 29, 2023

I updated via deCONZ OTAU plugin at the end of july. We discussed it here: https://forum.phoscon.de/t/fyrtur-battery-percentage-remaining-166/3842

@ebaauw
Copy link
Copy Markdown
Collaborator Author

ebaauw commented Sep 29, 2023

So the new firmware isn't (yet?) listed on https://github.com/Koenkk/zigbee-OTA, but IKEA published it to http://fw.ota.homesmart.ikea.net/, where the ikea-ota-download.py script downloads it from. Note to self: I want to check that location from my otau command-line utility as well.

Next to the blinds, I also see newer firmware for the five-button remote, shortcut button, on/off switch, and open/close remote. Presumably fixing the Battery Level for these controllers as well. Upgrading... Will check once the upgrade has finished and create a new PR to make sure state/battery or config/battery is reported correctly. They all seem to upgrade from a 2.3.x version to a 24.x.x, so we could do a R.item('attr/fwversion').val.startsWith('24') check in the DDF to handle the old firmwares as well.

@jan666
Copy link
Copy Markdown
Contributor

jan666 commented Sep 29, 2023

Maybe it's better to check for the old version(s)? They might update to 25.xx...

@ebaauw ebaauw mentioned this pull request Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Device Improvement Additional tag to attach to a existing issue. Fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants