# Controlling IKEA FYRTUR via PWA results in a 400 response code

**URL:** <https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060>\
**Category:** Bug reports\
**Created:** [December 27, 2022, 3:34pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060 "2022-12-27T15:34:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aradmidias](https://forum.phoscon.de/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@Aradmidias](https://forum.phoscon.de/u/Aradmidias)\
**Post date:** [December 27, 2022, 3:34pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/1 "2022-12-27T15:34:50Z")

</div>

I have a several IKEA FYRTUR blinds in my Smart Home. They are set up and working fine, e.g. I can control them over the `deCONZ` Desktop App.

If I try to control them over PWA / Phoscon Web App, I do see the blind’s brightness slider. When I move the slider, the blind does not move.

**Environment**

Software Version: `2.19.3`, running in a Docker-Container, on a Raspberry PI 4 (arm64)

**Steps to reproduce:**

(Assuming, a FYRTUR blind is connected and does work in the Phoscon Desktop App)

1. Open the PWA / Phoscon Web App
2. Navigate to a FYRTUR blind
3. Change the _brightness_ of that blind

**Actual behavior**

The blind does not change its position.

**Expected behavior:**

The blind moves to the given position.

**Technical Notes:**

When I change the slider, a `PUT` request is sent to `api/<redacted>/lights/42/state` with the following request body:

```json
{
   "on": true,
   "transitiontime": 9,
   "bri": 18
}

```

The Gateway then responds with a `400 Bad request` and the following response body:

```json
[
   {
      "error": {
         "address": "/lights/42/state",
         "description": "parameter, transitiontime, not available",
         "type": 6
      }
   }
]

```

If I **retry** the `PUT` request to `api/<redacted>/lights/42/state` whilst removing the `transitiontime` parameter, the blind starts to move. Request Body:

```json
{
   "on": true,
   "bri": 18
}

```

The Gateway replies with a `200 OK` Status and the following Response Body:

```json
[
   {
      "success": {
         "/lights/42/state/lift": 7
      }
   }
]

```

**On a side note:**

I stumbled upon this, while trying to create a Scene. This Scene should lateron be assigned to a button of some remote, so that I can recall this scene, including the blind’s position.

When I create a Scene and set the blind’s position manually, as described above, these values seem to be stored somewhere alongside the scene. But the blind’s position does not change when switching scenes (which may be and probably _is_ a **different/separate** issue/bug)

---

<div class="post-metadata">

**Author:** ![Siggi](https://forum.phoscon.de/user_avatar/forum.phoscon.de/siggi/32/2525_2.png) [@Siggi](https://forum.phoscon.de/u/Siggi)\
**Post date:** [December 27, 2022, 4:51pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/2 "2022-12-27T16:51:25Z")

</div>

did you use the ddf from here?

> [@Ikea Fyrtur Blinds](https://forum.phoscon.de/t/ikea-fyrtur-blinds/1858/32):
>
> Ofc, you just need a text editor to use DDF. The difficulty depend of the OS. There is 2 folders to put DDF All DDF provided directly with deCONZ typically reside in /usr/share/deCONZ/devices/ on a Linux system and are loaded first. However, files residing in the home directory of the user running deCONZ (e.g. /home/\<DECONZUSER\>/.local/share/dresden-elektronik/deCONZ/devices) will override the pre-packaged files to allow users to amend and keep their own files if desired. On HA it’s harder…

---

<div class="post-metadata">

**Author:** ![Aradmidias](https://forum.phoscon.de/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@Aradmidias](https://forum.phoscon.de/u/Aradmidias)\
**Post date:** [December 28, 2022, 3:08am UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/3 "2022-12-28T03:08:05Z")

</div>

Initially I did not use any DDF, as the blind itself does work and can be controlled with the deCONZ Desktop App - but not with the PWA Web App.

I looked into the following two DDFs ([this one](https://forum.phoscon.de/t/ikea-fyrtur-blinds/1858/5) from the referenced thread, mentioned above and [that one](https://raw.githubusercontent.com/dresden-elektronik/deconz-rest-plugin/d102ec19e2b227741c2818f2545e51c5c6156040/devices/ikea/fyrtur_block-out_roller_blind.json) from [MR #6110](https://github.com/dresden-elektronik/deconz-rest-plugin/pull/6110/files)). None of the two solve the problem, I have here: The PWA / Web App still adds the `transitiontime` parameter, whether I use one of the two DDF or leave them out.

But this helped me to do some testing: When I remove both states (`state/bri` and `state/on`), being deprecated in [MR #6110](https://github.com/dresden-elektronik/deconz-rest-plugin/pull/6110/files), then the Rest API complains about **all three** parameters, missing. So this does not motivate PWA to use the `state/lift` property.

Should/Will PWA consider `state/lift` some time in the future? This parameter is exposed in the DDF of [MR #6110](https://github.com/dresden-elektronik/deconz-rest-plugin/pull/6110/files) (and the DDF for [KADRILJ](https://github.com/manup/deconz-rest-plugin/blob/device_descriptions/devices/ikea/kadrilj_blind.json#L60))

It might be possible, to add a `state/transitiontime` parameter. But that parameter will never have any functionality, so defining (and publishing?) it seems more than wrong.

---

<div class="post-metadata">

**Author:** ![mmichalko](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mmichalko/32/2956_2.png) [@mmichalko](https://forum.phoscon.de/u/mmichalko)\
**Post date:** [January 16, 2023, 7:22pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/4 "2023-01-16T19:22:49Z")

</div>

hey, I have the same issue and it is pretty annoying. Have to use VNC to control the Fyrtyr blinds as over the Web GUI it is not working. I have tried the DDF and using that, the blinds got unavailable in Web app. Can this be fixed please?

---

<div class="post-metadata">

**Author:** ![Mimiix](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mimiix/32/10_2.png) [@Mimiix](https://forum.phoscon.de/u/Mimiix)\
**Post date:** [January 16, 2023, 7:36pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/5 "2023-01-16T19:36:10Z")

</div>

Things going unavailable are 9 / 10 network related problems.

In you case i recommend opening a new topic and Share some logs.

---

<div class="post-metadata">

**Author:** ![mmichalko](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mmichalko/32/2956_2.png) [@mmichalko](https://forum.phoscon.de/u/mmichalko)\
**Post date:** [January 16, 2023, 7:38pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/6 "2023-01-16T19:38:57Z")

</div>

I have the same issue that they guy in initial post, using web UI, when I want to control the blind, i can see in developers console in the network response the same JSON as in initial post with error message:

parameter, transitiontime, not available

This is the GUI bug, should not be sending this parameter. Wouldnt new topic be also duplicate?

---

<div class="post-metadata">

**Author:** ![Mimiix](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mimiix/32/10_2.png) [@Mimiix](https://forum.phoscon.de/u/Mimiix)\
**Post date:** [January 16, 2023, 7:46pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/7 "2023-01-16T19:46:18Z")

</div>

Ahh i missed that part.

So using the rest api directly works as intended ?

[https://dresden-elektronik.github.io/deconz-rest-doc/](https://dresden-elektronik.github.io/deconz-rest-doc/)

---

<div class="post-metadata">

**Author:** ![mmichalko](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mmichalko/32/2956_2.png) [@mmichalko](https://forum.phoscon.de/u/mmichalko)\
**Post date:** [January 16, 2023, 9:29pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/8 "2023-01-16T21:29:26Z")

</div>

I dont have a REST clien, should I spend time setting one up and figuring out how to do REST request? Issue is obvious, GUI is sending parameter it shouldn’t…

---

<div class="post-metadata">

**Author:** ![Mimiix](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mimiix/32/10_2.png) [@Mimiix](https://forum.phoscon.de/u/Mimiix)\
**Post date:** [January 16, 2023, 9:59pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/9 "2023-01-16T21:59:13Z")

</div>

Well if the rest api works its limited to phoscon.  
If the gui gets fixed but the api is broken, you have to wait more time.

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [January 17, 2023, 8:55am UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/10 "2023-01-17T08:55:55Z")

</div>

It’s just because the device (covering) don’t support “transitiontime”, it’s used by light (from the fonction int DeRestPluginPrivate::setWindowCoveringState() )  
So for me the API is fine, the problem is more from Phoscon.

---

<div class="post-metadata">

**Author:** ![Aradmidias](https://forum.phoscon.de/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@Aradmidias](https://forum.phoscon.de/u/Aradmidias)\
**Post date:** [January 18, 2023, 12:56pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/11 "2023-01-18T12:56:51Z")

</div>

tl;dr: Yes, the API works, as intended, but the UI does not.

* * *

Fort the record:

- If I omit `transitiontime` from the `PUT` request, then the blinds **does move**. Therefor I conclude, that the **issue** resides **in the UI** - not in the REST API.
- Also, if I use `{"lift":60}` as request body to my `PUT https://${gateway}/api/${key}/lights/${id}/state` request, then the slide does move as well.  
So I conclude, that the UI, if it would use the `lift` attribute for a blind, that would also already work, as far as the REST API is concerned.

It may be worth noting, that the _brightness_ slider does not move, regardless of whether I use `bri` or `lift` as an attribute.

* * *

Sorry, I did not find the time necessary to properly test, if adding a `transitiontime` attribute to the DDF would at least help in working around the current UI’s behavior. Another test would be, removing the `bri` and `on` attributes from the DDF, just to test, how the UI reacts to that.

Which level of support is in the PWA Web UI, regarding blinds / window covering devices?  
How does the UI determine, which UI components/widgets to display?  
 → How far can this be influenced by the DDF?

What can I do to support fixing this?

---

<div class="post-metadata">

**Author:** ![Mimiix](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mimiix/32/10_2.png) [@Mimiix](https://forum.phoscon.de/u/Mimiix)\
**Post date:** [January 18, 2023, 2:24pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/12 "2023-01-18T14:24:48Z")

</div>

Thank you very much on the detailed test.

Unfortunately you can’t do anything as its closed source. However , [@de\_employees](https://forum.phoscon.de/groups/de_employees) or @manup can.

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [January 18, 2023, 2:59pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/13 "2023-01-18T14:59:12Z")

</div>

> [@Aradmidias](#):
>
> Sorry, I did not find the time necessary to properly test, if adding a `transitiontime` attribute to the DDF would at least help in working around the current UI’s behavior. Another test would be, removing the `bri` and `on` attributes from the DDF, just to test, how the UI reacts to tha

Adding “transitiontime” on the DDF will not help, because phoscon will use the same request, so same problem.  
Removing “bri” and “on” can be a good idea yes, it can prevent phoscon use the “transistiontime”, but it can too prevent the device be supported by phoscon (because I don’t think Phoscon use “lift” and “open”)

---

<div class="post-metadata">

**Author:** ![Aradmidias](https://forum.phoscon.de/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@Aradmidias](https://forum.phoscon.de/u/Aradmidias)\
**Post date:** [January 18, 2023, 7:10pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/14 "2023-01-18T19:10:44Z")

</div>

I removed the `bri` and `on` attributes and reloaded deCONZ. The API now lacks these attributes, as expected, but PWA is still trying to set all three parameters (`{"on":true,"transitiontime":9,"bri":55}`) and now receives three error messages in the response, one for each missing attribute:

```json
[
  {
    "error": {
      "address": "/lights/26/state",
      "description": "parameter, bri, not available",
      "type": 6
    }
  },
  {
    "error": {
      "address": "/lights/26/state",
      "description": "parameter, on, not available",
      "type": 6
    }
  },
  {
    "error": {
      "address": "/lights/26/state",
      "description": "parameter, transitiontime, not available",
      "type": 6
    }
  }
]

```

This error is correct so far, as these attributes are now no longer defined. But PWA is still treating the _blind_ like a _lamp_.

Do note, that the API does not expose these attributes when they have been removed from the DDF:

```json
{
  "etag": "<redacted>",
  "hascolor": false,
  "lastannounced": null,
  "lastseen": "2023-01-18T18:12Z",
  "manufacturername": "IKEA of Sweden",
  "modelid": "FYRTUR block-out roller blind",
  "name": "Rollo WZ Rechts",
  "state": {
    "lift": 100,
    "open": false,
    "reachable": true
  },
  "swversion": "2.3.088",
  "type": "Window covering device",
  "uniqueid": "<redacted>"
}

```

Now I did try to add the `transitiontime` attribute, as hinted in the following addition to [this DDF](https://github.com/dresden-elektronik/deconz-rest-plugin/pull/6110/files#diff-f7a5c86d56b0fb79380cd83048ec41272564988f759055dea69e7b0a05b6448f), though that did not help, either (most probably, since there is no such attribute in the _Available items_ UI in deCONZ’s _DDF Editor_):

```json
{
...
   "subdevices": [
      {
         "type": "$TYPE_WINDOW_COVERING_DEVICE",
         "restapi": "/lights",
...
         "items": [
...
            {
               "name": "state/reachable"
            },
            {
               "name": "state/transitiontime",
               "parse": {
                  "fn": "none"
               },
               "read": {
                  "fn": "none"
               },
               "deprecated": "2020-04-08"
            }
         ]
      },
      {
         "type": "$TYPE_BATTERY_SENSOR",
         "restapi": "/sensors",
...
      }
   ],
   "bindings": [
...
   ]
}

```

So no luck on this End.

* * *

What else can I try?  
Is there any other type of _blind_ out there, that PWA treats as a _blind_ (instead of a _light_)?

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [January 18, 2023, 7:20pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/15 "2023-01-18T19:20:52Z")

</div>

> [@Aradmidias](#):
>
> ```auto
> {
> "etag": "<redacted>",
> "hascolor": false,
> "lastannounced": null,
> "lastseen": "2023-01-18T18:12Z",
> "manufacturername": "IKEA of Sweden",
> "modelid": "FYRTUR block-out roller blind",
> "name": "Rollo WZ Rechts",
> "state": {
> "lift": 100,
> "open": false,
> "reachable": true
> },
> "swversion": "2.3.088",
> "type": "Window covering device",
> "uniqueid": "<redacted>"
> }
> 
> ```

IDK how phoscon is working, but not possible making a better device json that the one you have.

---

<div class="post-metadata">

**Author:** ![Mimiix](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mimiix/32/10_2.png) [@Mimiix](https://forum.phoscon.de/u/Mimiix)\
**Post date:** [January 18, 2023, 8:27pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/16 "2023-01-18T20:27:29Z")

</div>

> [@Aradmidias](#):
>
> Is there any other type of _blind_ out there, that PWA treats as a _blind_ (instead of a _light_)?

No, as i mentioned, you can’t do anything. Phoscon is the issue here.

---

<div class="post-metadata">

**Author:** ![mmichalko](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mmichalko/32/2956_2.png) [@mmichalko](https://forum.phoscon.de/u/mmichalko)\
**Post date:** [April 5, 2023, 10:39am UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/17 "2023-04-05T10:39:30Z")

</div>

So will Phoscon fix this?

---

<div class="post-metadata">

**Author:** ![Gautama](https://forum.phoscon.de/user_avatar/forum.phoscon.de/gautama/32/20_2.png) [@Gautama](https://forum.phoscon.de/u/Gautama)\
**Post date:** [April 5, 2023, 12:17pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/18 "2023-04-05T12:17:19Z")

</div>

Our problem:We have the Kardyl roller blind on site to test. This works without any problems. The Fyrtur should not really be technically different, which is why we are somewhat at a loss here.  
I have passed the case on to our development. There will be feedback.

---

<div class="post-metadata">

**Author:** ![mmichalko](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mmichalko/32/2956_2.png) [@mmichalko](https://forum.phoscon.de/u/mmichalko)\
**Post date:** [April 5, 2023, 4:47pm UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/19 "2023-04-05T16:47:57Z")

</div>

Thanks for the reply and looking forward to the feedback. I think the problem is pretty clearly described in previous posts and it is also clear how to fix this even without testing on Fyrtur directly.

I currently have to use VNC to control the blinds, which takes time and is really annoying. Doing this for months, since no fix yet.

---

<div class="post-metadata">

**Author:** ![jan666](https://forum.phoscon.de/user_avatar/forum.phoscon.de/jan666/32/972_2.png) [@jan666](https://forum.phoscon.de/u/jan666)\
**Post date:** [April 6, 2023, 7:34am UTC](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060/20 "2023-04-06T07:34:50Z")

</div>

I have a few FYRTUR - but I don’t have a blind option in Phoscon. Why?

[Next page](https://forum.phoscon.de/t/controlling-ikea-fyrtur-via-pwa-results-in-a-400-response-code/3060.md?page=2)
