Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use in latest beta 2021.8.0b1 #120

Closed
aidbish opened this issue Jul 29, 2021 · 15 comments
Closed

Unable to use in latest beta 2021.8.0b1 #120

aidbish opened this issue Jul 29, 2021 · 15 comments

Comments

@aidbish
Copy link

aidbish commented Jul 29, 2021

the component is unable to be setup in latest beta

Logger: homeassistant.setup
Source: setup.py:311
First occurred: 9:38:40 PM (1 occurrences)
Last logged: 9:38:40 PM

Unable to prepare setup for platform blueiris.binary_sensor: Platform not found (cannot import name 'Message' from 'homeassistant.components.mqtt' (/usr/src/homeassistant/homeassistant/components/mqtt/init.py)).

Logger: custom_components.blueiris.managers.entity_manager
Source: custom_components/blueiris/managers/entity_manager.py:577
Integration: Blue Iris NVR (documentation)
First occurred: 9:38:40 PM (3 occurrences)
Last logged: 9:39:41 PM

Failed to update, step: Start updating domain binary_sensor, Error: 'binary_sensor', Line: 197

@Airey001
Copy link

Can verify still an issue in 2021.8.0b3

@Airey001
Copy link

Logger: custom_components.blueiris.managers.entity_manager
Source: custom_components/blueiris/managers/entity_manager.py:577
Integration: Blue Iris NVR (documentation)
First occurred: 8:40:31 PM (13 occurrences)
Last logged: 8:45:49 PM

Failed to update, step: Start updating domain binary_sensor, Error: 'binary_sensor', Line: 197

@pjponymoore
Copy link

Can also verify still an issue in 2021.8.0b3

@pjponymoore
Copy link

core-2021.8.0b4

Still Issue with component

@aidbish
Copy link
Author

aidbish commented Jul 30, 2021

its not going to change, regardless of the beta. the component needs fixing

@elad-bar
Copy link
Owner

Hi, i'm no longer maintaining that component on regular basis as I'm not using BI anymore (switched to Shinobi),
Once HA 2021.8 will become official I will try to fix it, but don't have an option to test it, will update here if you would like to test it,
An alternative solution is that someone will do a PR with the fix

Thanks

@elad-bar
Copy link
Owner

Submitted an issue to HA Core repo, there is a breaking change over there without warning:
home-assistant/core#53758

I can release a pre-release version with the fix if you would like to test it

@elad-bar
Copy link
Owner

@mrdarrengriffin
Copy link

mrdarrengriffin commented Jul 30, 2021

Hello! After your 1.0.6b1 release, I reinstalled the addon but after configuring the integration, it still fails:

Logger: custom_components.blueiris.managers.entity_manager
Source: custom_components/blueiris/managers/entity_manager.py:577
Integration: Blue Iris NVR (documentation)
First occurred: 16:11:04 (7 occurrences)
Last logged: 16:14:04

Failed to update, step: Start updating domain binary_sensor, Error: 'binary_sensor', Line: 197

Edit: also another error that may be of help

Logger: homeassistant.config_entries
Source: custom_components/blueiris/binary_sensors/main.py:61
Integration: Blue Iris NVR (documentation)
First occurred: 16:11:04 (1 occurrences)
Last logged: 16:11:04

Error setting up entry BlueIris for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/binary_sensor/init.py", line 144, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 149, in async_setup_entry
platform = await async_prepare_setup_platform(
File "/usr/src/homeassistant/homeassistant/setup.py", line 329, in async_prepare_setup_platform
platform = integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 498, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 503, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/config/custom_components/blueiris/binary_sensor.py", line 8, in
from .binary_sensors import get_binary_sensor
File "/config/custom_components/blueiris/binary_sensors/init.py", line 7, in
from .main import BlueIrisMainBinarySensor
File "/config/custom_components/blueiris/binary_sensors/main.py", line 16, in
class BlueIrisMainBinarySensor(BinarySensorEntity, BlueIrisEntity):
File "/config/custom_components/blueiris/binary_sensors/main.py", line 61, in BlueIrisMainBinarySensor
def _state_message_received(self, message: Message):
NameError: name 'Message' is not defined

@elad-bar
Copy link
Owner

Will recheck later today, thanks for the logs

@elad-bar elad-bar reopened this Jul 30, 2021
@elad-bar
Copy link
Owner

please try again with v1.0.6b2:
https://github.com/elad-bar/ha-blueiris/releases/tag/v1.0.6b2

@pjponymoore
Copy link

Tested this morning and working perfect again

Thanks for extra effort on this. Great work!!!!!

@aidbish
Copy link
Author

aidbish commented Jul 31, 2021

Confirming with V1.0.6b2, it is now working with latest beta. Thanks @elad-bar for fixing even though you no longer using BI.
Out of curiosity, how does shinobi compare with BI? Does it also use Deepstack?

@elad-bar
Copy link
Owner

Thanks for updating, will make it release.

Shinobi is running in docker, which means I don't need additional Windows PC and everything is running on one PC,
As opposed to BI which I needed to run it with GPU to be able to process 16 camera, within Shinobi it's barely reach to 20% of CPU,
Since Shinobi is an open source and supports plugins, I wrote integration between Shinobi and DeepStack (Object detection and face recognition), for DeepStack I'm using GPU.
With half hardware I've reached for better performance using Shinobi and it works great!

@aidbish
Copy link
Author

aidbish commented Aug 1, 2021

confirming latest release fixes the Issue - closing

@aidbish aidbish closed this as completed Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants