kevinvincent / ha-wyzesense

A Home Assistant Component to interface with the WYZE Sense hub and sensor system
368 stars 98 forks source link

Error...wyzeplatform...binary_sensor #148

Closed welbo97 closed 4 years ago

welbo97 commented 4 years ago

HA 0.110.4, HassOS 4.9, proxmox VM, ha-wyzesense 0.08

HACS for ha-wyzesense setup, previously working (very well, thank you!)

Found similar issue: #131 After some restarts, I found my binary_sensors for wyze components showing as "Unavailable" in the UI. I found some errors in the logs (did not copy them) and tried uninstalling the HACS addon, restarting, reinstalling and restarting again. The sensors are still unavailable and this error is found in the logs after each restart:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/wyzesense/binary_sensor.py", line 78, in setup_platform
    _LOGGER.debug("Attempting to open connection to hub at " + config[CONF_DEVICE])
TypeError: can only concatenate str (not "NoneType") to str
hfcheng66 commented 4 years ago

saw this error as well. Home Assistant 0.110.5

hfcheng66 commented 4 years ago

fixed it. it turns out the bridge is not working. unplug it and plug it back, restart hass and it works fine now.

jamescadd commented 4 years ago

@welbo97 I'm starting to wonder if ProxMox is the common denominator here. Same issue for me.

welbo97 commented 4 years ago

@welbo97 I'm starting to wonder if ProxMox is the common denominator here. Same issue for me.

I found the hidrawX device had changed and was not being properly passed through proxmox. Once I addressed that problem, it started working again without repairing the sensors.