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).
IKEA blinds run on Zigbee, ZHA is the short version of “ZigbeeHomeAutomation” and yet you did setup something in zwave.js? 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).
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.
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.
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