Ikea Fyrtur Blinds - Error with certain commands

I have included the blinds directly into zwave.js ZHA

cover.close_cover and cover.open_cover both work fine.

cover.set_cover_position and cover.stop_cover give a ">' not supported between instances of 'NoneType' and 'int'" - I’ve been looking into it trying to figure it out, and it appears to be a python error.

Battery status is also not reporting properly.

As far as I am aware, these Ikea blinds are fully supported when connected directly via ZHA without the hub.

Does anyone have any thoughts on this?

Here is the error in its entirety.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/zha/cover.py:158
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: June 1, 2022, 8:57:20 PM (45 occurrences)
Last logged: 10:01:13 AM

[547975186512] '>' not supported between instances of 'NoneType' and 'int'
[548001131008] '>' not supported between instances of 'NoneType' and 'int'
[548204695504] '>' not supported between instances of 'NoneType' and 'int'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1704, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1741, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 964, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/zha/cover.py", line 158, in async_stop_cover
    self._state = STATE_OPEN if self._current_position > 0 else STATE_CLOSED
TypeError: '>' not supported between instances of 'NoneType' and 'int'

After looking into this more, I believe this error is because the blinds are not properly reporting their position, but I do not know how to fix this issue.

I’m really impressed, as you joined two things, that normally don’t work together (seriously, they technically can’t). :exploding_head:

IKEA blinds run on Zigbee, ZHA is the short version of “ZigbeeHomeAutomation” and yet you did setup something in zwave.js? :wink: :crazy_face: Sorry, couldn’t resist.

I’d start over, delete what you have done before and work my way through ZHA (or Zigbee2MQTT) and try again, taking care of not using ZWave!

The error points, imho, to a not functioning sensor. My guess, normally the function or whatever it is, has safely a value set, so the comparison is working. Unfortunately, in your case there seem to be another error, that is preventing the sensor data to be filled correctly (NoneType). Eg. the sensor should report an int, but due to some configuration mishapp, it maybe shows “unknown” or “unavailable”, what would be not an int. You see where I’m going here?

It is just a guess, but if someone asks here in this forum, and ZWave and ZHA are mentioned together, it seems more likely to be some kind of config fault, than a bug or something else (no offense, been having such things myself a lot).

1 Like

Haha, no I’m completely aware of the difference of the two, it’s was purely a typo! :laughing:

I’ve excluded it and readded once already, but I’ll give it a shot. Perhaps 3rd times a charm.

1 Like

:smiley: Did you by any chance configure them yourself? If so, mind posting the code? Would help a lot in helping.

This seems to be valid, but the error should come up, if self._current_position isn’t filled correctly (with an int). So my guess is still some config thingy. STATE_OPEN should be filled from HA…hmmmmm

Post some config, and we’ll see where we get from there. :slight_smile:

1 Like

Nope, did zero configuration manually.

I’ll exclude them and readd them tonight and report back what happens.

1 Like

I’m having the same problem. @PickleSlice did you figure out a solution?

Fehler beim Aufrufen des Diensts cover/stop_cover. '>' not supported between instances of 'NoneType' and 'int'

Got that error when trying to stop the blinds. I have seen a fix that i tried in deconz, maybe it could easily implemented in the ZHA quirks.

https://riesinger.dev/posts/ikea-fyrtur-homeassistant-deconz/

It is something with binding and reporting configuration values.

I completely forgot to report back. Basically, I removed them and readded them a 3rd time, and apparently 3rd time is a charm. I have full functionality with them now.

2 Likes

Interesting. I don’t think it’s a common issue, so I think it might just be me. Will try adding several times. thanks.

Same thing happened to me as well… the IKEA blinds did worked with the remote but were throwing the same error in the Node-Red on the background.

    [546859716032] '>' not supported between instances of 'NoneType' and 'int'
    [546892885408] '>' not supported between instances of 'NoneType' and 'int'
    [546884942240] '>' not supported between instances of 'NoneType' and 'int'
    [546788345072] '>' not supported between instances of 'NoneType' and 'int'

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1745, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1782, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 943, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/zha/cover.py", line 162, in async_stop_cover
    self._state = STATE_OPEN if self._current_position > 0 else STATE_CLOSED
TypeError: '>' not supported between instances of 'NoneType' and 'int'

Tnx to your post I decided to try the RECONFIGURE>START RECONFIGURATION option and that fixed it for me…

I have some suspicion that may be there is an issue with the device interviewing/pairing process where not everything gets set correctly but is just a theory cuz in not a zigbee gury but the repair option fixed it for me im a happy camper now :slight_smile: