SonoffLAN: Cover bug after upgrade to 3.0.1

SonoffLAN was stable for years with me with all type of devices, switches, lights, sensors, rfbridge …etc. after the upgrade to 3.0.0 followed by another upgrade to 3.0.1, only few devices are now working. the rest including the sensors (e.g. Sonoff DW2, RFbridge motion/DW1 sensorsP) are all not responding now

below is part of the home-assistant.log file showing some error during establishing the initiation of sonoff devices!

2022-05-01 16:55:17 INFO (MainThread) [homeassistant.components.remote] Setting up remote.sonoff
2022-05-01 16:55:17 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.sonoff
2022-05-01 16:55:17 INFO (MainThread) [homeassistant.components.switch] Setting up switch.sonoff
2022-05-01 16:55:17 ERROR (MainThread) [custom_components.sonoff.core.entity] Can't init device: {'name': 'Office Window', 'deviceid': ‘xxxxxxxxxxx', 'apikey': ‘xxxxxxxx-xxx-xxxxx-xxx-xxxxxxxxxxx', 'extra': {'uiid': 11, 'description': '20200728005', 'brandId': ‘xxxxxxxxxxxxxx', 'apmac': 'xx:xx:xx:xx:xx:xx', 'mac': ‘xx:xx:xx:xx:5axx92', 'ui': '电动窗帘', 'modelInfo': ‘xxxxxxxxxxxxxxxxx', 'model': 'PSF-BTA-GL', 'manufacturer': '深圳市彪王科技有限公司', 'chipid': '00D5232C', 'staMac': ‘xx:xx:xx:xx:xx:xx'}, 'brandName': 'KingArt', 'brandLogo': 'https://as-ota.coolkit.cc/logo/w9sMxxxxxxxxxxxxxxxxxxKaKi.png', 'showBrand': True, 'productModel': 'KING-Q4', 'devConfig': {}, 'settings': {'opsNotify': 0, 'opsHistory': 1, 'alarmNotify': 1, 'wxAlarmNotify': 0, 'wxOpsNotify': 0, 'wxDoorbellNotify': 0, 'appDoorbellNotify': 1}, 'devGroups': [], 'family': {'familyid': '5eff04778915da00089a0cb7', 'index': -293}, 'sharedBy': {'apikey': ‘xxxxxxx-0071-xxxxxx-xxxxx-xxxxxxxxxx', 'phoneNumber': '+9660566xxxxx', 'email': ‘ashraf@xxxxxxx', 'nickname': 'Ashraf N', 'comment': '', 'permit': 15, 'shareTime': 1614098994078}, 'devicekey': ‘xxxxxx-26b0-xxxx-xxxxxx-xxxxxxxxxxx', 'online': True, 'params': {'bindInfos': {'gaction': [‘xxxxxx-0071-xxxxxx-xxxxxx-xxxxxxxxxx', ‘xxxxxx-xxxxx-xxxxx-xxxxx-xxxxxxxxx-google-home-v1'], 'alexa': [‘xxxxxxxx-xxxxxx-xxxxxx-xxxxx-xxxxxxxxx']}, 'version': 8, 'sledOnline': 'on', 'rssi': -26, 'fwVersion': '3.4.3', 'staMac': ‘xx:xx:xx:xx:xx:xxxx', 'switch': 'pause', 'setclose': 0, 'only_device': {'ota': 'success'}, 'ssid': 'AMN-C', 'bssid': ‘xx:xx:xx:xx:xx:xxxx'}, 'isSupportGroup': False, 'isSupportedOnMP': True, 'deviceFeature': {}}
Traceback (most recent call last):
  File "/config/custom_components/sonoff/core/entity.py", line 82, in __init__
    self.internal_update(params)
  File "/config/custom_components/sonoff/core/entity.py", line 100, in internal_update
    self.set_state(params)
  File "/config/custom_components/sonoff/cover.py", line 44, in set_state
    self._attr_is_closing = pos < self._attr_current_cover_position
TypeError: '<' not supported between instances of 'int' and 'NoneType'

we have full trust this will be all resolved ASAP, as it has always been the most stable integration between ewe link and home assistant.

Regards, Ashraf

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 39 (13 by maintainers)

Commits related to this issue

Most upvoted comments

Well. Covers BINTHEN BCM Series and KingArt KING-Q4 has same model and firmware, but different payloads. Fixed in latest master version. Thank for sharing @JaCoLJcL and @pepe59

I need someone to share with me the cover on 3.4.3 firmware and cover on 3.4.2 firmware. With permission to use them. https://github.com/AlexxIT/SonoffLAN/wiki/Token This two firmwares work differently. It’s hard to support them both.

I am using 3.0.1 and after turning the network indicator led off in the eWelink app for all my devices, after a few hours, some are back on. You closed all the issues, but I think this issue is not resolved. All LED switches are still disabled for me in HA.