SonoffLAN icon indicating copy to clipboard operation
SonoffLAN copied to clipboard

Evry start HA - error in log

Open enigmaspb opened this issue 5 years ago • 5 comments

Evry start/restart of ha i see in log this error and all work normal .

2021-02-04 07:32:48 ERROR (Sonoff_LAN) [root] Uncaught thread exception
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/opt/homeassistant/lib/python3.8/site-packages/zeroconf/__init__.py", line 1755, in run
    self._service_state_changed.fire(
  File "/opt/homeassistant/lib/python3.8/site-packages/zeroconf/__init__.py", line 1513, in fire
    h(**kwargs)
  File "/home/homeassistant/.homeassistant/custom_components/sonoff/sonoff_local.py", line 178, in _zeroconf_handler
    if data.startswith(b'{"rf'):

enigmaspb avatar Feb 04 '21 04:02 enigmaspb

Show your config

AlexxIT avatar Feb 04 '21 09:02 AlexxIT

sonoff:
  username: !secret sonoff_login
  password: !secret saures_password
  reload: always  
  scan_interval: '00:01:00' 
  devices:
    100XXXXXXX:
      sensors: [power, current, voltage, rssi]
      force_update: True
    100XXXXXXX:
      sensors: [power, current, voltage, rssi]
      force_update: True

enigmaspb avatar Feb 04 '21 09:02 enigmaspb

Had the same problem. @enigmaspb try to overwrite files manually at folder custom_components, and then restart home assistant.

elchanly avatar Feb 06 '21 09:02 elchanly

confirmed ! I download git version (git clone) and overwrite all files in custom_components/sonoff and clean sonoff/pycache restart ha and no any errors in log . Big thks !

enigmaspb avatar Feb 07 '21 06:02 enigmaspb

Yes, it was fixed in latest beta

AlexxIT avatar Feb 08 '21 08:02 AlexxIT