Since updating Protect to 6.0.41, Home Assistant is no longer getting temperature or humidity values from UP Sensors. Yet motion and battery level reading are fine.
UPDATE: rebooted HA, now getting…
and no data from ANY unifi devices.
Since updating Protect to 6.0.41, Home Assistant is no longer getting temperature or humidity values from UP Sensors. Yet motion and battery level reading are fine.
UPDATE: rebooted HA, now getting…
What does the logs say?
Logger: homeassistant.config_entries
Source: config_entries.py:753
First occurred: 10:19:49 AM (2 occurrences)
Last logged: 10:25:30 AM
Error setting up entry Unifi for unifiprotect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 753, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/unifiprotect/__init__.py", line 80, in async_setup_entry
await protect.update()
File "/usr/local/lib/python3.13/site-packages/uiprotect/api.py", line 830, in update
bootstrap = await self.get_bootstrap()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/uiprotect/api.py", line 1198, in get_bootstrap
return Bootstrap.from_unifi_dict(**data, api=self)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/uiprotect/data/base.py", line 134, in from_unifi_dict
data = cls.unifi_dict_to_dict(data)
File "/usr/local/lib/python3.13/site-packages/uiprotect/data/bootstrap.py", line 244, in unifi_dict_to_dict
return super().unifi_dict_to_dict(data)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.13/site-packages/uiprotect/data/base.py", line 358, in unifi_dict_to_dict
data[key] = cls._clean_protect_obj_dict(value, unifi_dicts[key], api)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/uiprotect/data/base.py", line 278, in _clean_protect_obj_dict
return {k: cls._clean_protect_obj(v, klass, api) for k, v in items.items()}
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/uiprotect/data/base.py", line 259, in _clean_protect_obj
return klass.unifi_dict_to_dict(data=data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/uiprotect/data/devices.py", line 1070, in unifi_dict_to_dict
return super().unifi_dict_to_dict(data)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.13/site-packages/uiprotect/data/base.py", line 338, in unifi_dict_to_dict
data[key] = convert_unifi_data(data[key], _fields[key])
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/uiprotect/utils.py", line 249, in convert_unifi_data
return type_.from_string(value)
~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.13/site-packages/uiprotect/data/types.py", line 78, in from_string
return cls(value) # type: ignore[call-arg]
File "/usr/local/lib/python3.13/enum.py", line 726, in __call__
return cls.__new__(cls, value)
~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/local/lib/python3.13/enum.py", line 1199, in __new__
raise ve_exc
ValueError: 'lprNoneReflex' is not a valid VideoMode
I just saw that on github. Hopefully can be resolved quickly. I suppose I could remove the camers from the integration, its the sensors I really only need.
It appears I was not on the most recent version of HomeAssistant OS. Updated and the issue is gone. I wouldn’t have thought it was related to the OS, but rather the integration. Lesson learned.
@thomba If you have a second, can you confirm the HomeAssistant OS version that you updated to? I’m having the same errors with Protect 6.0.45 and I believe I’m on the most current HA OS version.
The solution did not work for me.
Anyone else receiving the Protect integration error “Failed to set up?” I believe I’m on the most current version of HA OS (see configuration details below) and hopeful that by sharing this information early that it’ll help bring awareness to the potential issues with UniFi Protects upcoming version.
I did not receive that error with Protect 6.0.41 only occurred for me on version 6.0.45. Here is my current configuration(s) and error messages:
Here’s where I’m at…
I’m not running any EA versions. Your 6.0.45 is EA
The recent history of Ubiquiti and Protect hasn’t been good, very buggy. I’m afraid to update given the issues with HomeAssistant integration lately.
Good point - I think I’m going to work back towards production releases. Thanks for reply!