Code Monkey home page Code Monkey logo

ha-blueiris's People

Contributors

andrea-mattioli avatar bdf0506 avatar darkgrue avatar elad-bar avatar kramttocs avatar nemec avatar purelynicole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ha-blueiris's Issues

Newest Version does not seem to be setting state topic for sensors

From Debug log

2020-01-17 14:10:50 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for blueiris which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2020-01-17 14:10:54 DEBUG (SyncWorker_1) [custom_components.blueiris.blue_iris_data] Blue Iris camera loaded, details: {'id': 'garage', 'name': 'Garage Cam', 'room': 'Garage', 'still_image_url': Template("http://192.168.94.99:81/image/garage?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/garage/temp.m3u8', 'username': 'xxx', 'password': 'xxxx}
2020-01-17 14:10:54 DEBUG (SyncWorker_1) [custom_components.blueiris.blue_iris_data] Blue Iris camera loaded, details: {'id': 'front', 'name': 'Front Door Cam', 'room': 'Front Door', 'still_image_url': Template("http://192.168.94.99:81/image/front?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/front/temp.m3u8', 'username': 'xxx', 'password': 'xxxx}
2020-01-17 14:10:54 DEBUG (SyncWorker_1) [custom_components.blueiris.blue_iris_data] Blue Iris camera loaded, details: {'id': 'back', 'name': 'Back Yard', 'room': 'Back Yard', 'still_image_url': Template("http://192.168.94.99:81/image/back?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/back/temp.m3u8', 'username': 'xxx', 'password': 'xxxx}
2020-01-17 14:10:54 DEBUG (SyncWorker_1) [custom_components.blueiris.blue_iris_data] Blue Iris camera loaded, details: {'id': 'Index', 'name': 'All', 'room': None, 'still_image_url': Template("http://192.168.94.99:81/image/Index?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/Index/temp.m3u8', 'username': 'xxx', 'password': 'xxxx}
2020-01-17 14:10:54 DEBUG (SyncWorker_1) [custom_components.blueiris.blue_iris_data] Blue Iris camera loaded, details: {'id': '@Index', 'name': 'Cycle', 'room': None, 'still_image_url': Template("http://192.168.94.99:81/image/@Index?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/@Index/temp.m3u8', 'username': 'xxx', 'password': 'xxxx}
2020-01-17 14:10:54 DEBUG (SyncWorker_1) [custom_components.blueiris.blue_iris_api] BlueIrisData initialization with following configuration: base_url: http://192.168.94.99:81, username: 'xxx', 'password': 'xxxx}
2020-01-17 14:10:56 DEBUG (MainThread) [custom_components.blueiris.binary_sensor] Processing new camera[garage]: {'id': 'garage', 'name': 'Garage Cam', 'room': 'Garage', 'still_image_url': Template("http://192.168.94.99:81/image/garage?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/garage/temp.m3u8', 'username': 'xxx', 'password': 'xxxx}
2020-01-17 14:10:56 DEBUG (MainThread) [custom_components.blueiris.binary_sensor] Processing new camera[front]: {'id': 'front', 'name': 'Front Door Cam', 'room': 'Front Door', 'still_image_url': Template("http://192.168.94.99:81/image/front?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/front/temp.m3u8', 'username': 'xxx', 'password': 'xxxx}
2020-01-17 14:10:56 DEBUG (MainThread) [custom_components.blueiris.binary_sensor] Processing new camera[back]: {'id': 'back', 'name': 'Back Yard', 'room': 'Back Yard', 'still_image_url': Template("http://192.168.94.99:81/image/back?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/back/temp.m3u8', 'username': 'xxx', 'password': 'xxxx}
2020-01-17 14:10:56 DEBUG (MainThread) [custom_components.blueiris.binary_sensor] Processing new camera[Index]: {'id': 'Index', 'name': 'All', 'room': None, 'still_image_url': Template("http://192.168.94.99:81/image/Index?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/Index/temp.m3u8', 'username': 'xxx', 'password': 'xxxx}
2020-01-17 14:10:56 DEBUG (MainThread) [custom_components.blueiris.binary_sensor] Processing new camera[@Index]: {'id': '@Index', 'name': 'Cycle', 'room': None, 'still_image_url': Template("http://192.168.94.99:81/image/@Index?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/@Index/temp.m3u8', 'username': 'xxx', 'password': 'xxxx}
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Processing new camera: garage
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Creating camera: {'name': 'Garage Cam', 'still_image_url': Template("http://192.168.94.99:81/image/garage?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/garage/temp.m3u8', 'limit_refetch_to_url_change': False, 'framerate': 2, 'content_type': 'image/jpeg', 'verify_ssl': False, 'username': 'xxx', 'password': 'xxxx, 'authentication': 'basic'}
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Camera created: <Entity Garage Cam: idle>
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Processing new camera: front
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Creating camera: {'name': 'Front Door Cam', 'still_image_url': Template("http://192.168.94.99:81/image/front?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/front/temp.m3u8', 'limit_refetch_to_url_change': False, 'framerate': 2, 'content_type': 'image/jpeg', 'verify_ssl': False, 'username': 'xxx', 'password': 'xxxx', 'authentication': 'basic'}
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Camera created: <Entity Front Door Cam: idle>
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Processing new camera: back
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Creating camera: {'name': 'Back Yard', 'still_image_url': Template("http://192.168.94.99:81/image/back?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/back/temp.m3u8', 'limit_refetch_to_url_change': False, 'framerate': 2, 'content_type': 'image/jpeg', 'verify_ssl': False, 'username': 'xxx', 'password': 'xxxx', 'authentication': 'basic'}
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Camera created: <Entity Back Yard: idle>
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Processing new camera: Index
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Creating camera: {'name': 'All', 'still_image_url': Template("http://192.168.94.99:81/image/Index?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/Index/temp.m3u8', 'limit_refetch_to_url_change': False, 'framerate': 2, 'content_type': 'image/jpeg', 'verify_ssl': False, 'username': 'xxx', 'password': 'xxxx', 'authentication': 'basic'}
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Camera created: <Entity All: idle>
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Processing new camera: @Index
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Creating camera: {'name': 'Cycle', 'still_image_url': Template("http://192.168.94.99:81/image/@Index?q=100&s=100"), 'stream_source': 'http://192.168.94.99:81/h264/@Index/temp.m3u8', 'limit_refetch_to_url_change': False, 'framerate': 2, 'content_type': 'image/jpeg', 'verify_ssl': False, 'username': 'xxx', 'password': 'xxxx', 'authentication': 'basic'}
2020-01-17 14:11:04 INFO (MainThread) [custom_components.blueiris.camera] Camera created: <Entity Cycle: idle>
2020-01-17 14:11:08 DEBUG (SyncWorker_2) [custom_components.blueiris.home_assistant] Updating blueiris component at <Event homeassistant_start[L]>
2020-01-17 14:11:08 DEBUG (SyncWorker_2) [custom_components.blueiris.blue_iris_data] update - Start
2020-01-17 14:11:08 DEBUG (SyncWorker_2) [custom_components.blueiris.blue_iris_api] Request to Blue Iris sent to: http://192.168.94.99:81/admin
2020-01-17 14:11:08 DEBUG (SyncWorker_2) [custom_components.blueiris.blue_iris_api] Status of Blue Iris: signal=green
2020-01-17 14:11:08 DEBUG (SyncWorker_2) [custom_components.blueiris.blue_iris_data] update - Completed

Add support for HACS

Would be great to get the repo set up so it can be included in HACS for easier installation and updating ๐Ÿ˜ƒ

Binary Sensors not reporting

Hello,

Thank you for this awesome integration. I am assuming this is my misconfiguration and looking for help.

When I use the integration it seems that my Home assistant admin I made for Blue iris logins and then gets logged out.

Also I cannot get the motion audio or connectivity sensors to work reliably.
when I do a test they trigger in home assistant but never reset. And actual motion does not set them off.

Any help you can provide would be much appreciated.

image

image

image

Restart of HASS causes all entities to be renamed to defaults

If I go through the Home-Assistant UI and rename the entities generated by this integration (remove the BlueIris prefix mainly and then update some names for easier use in HA), the next time I restart, the names will be reverted to camera.blueiris_camera_name.

Q: Consider Per-component Repos?

I realize you just consolidated your custom components into a single repo, was wondering if you might re-consider? It's not easily practicable to fork a portion of a repo, so contributors to one/few of your components (I have a particular interest in the Blue Iris integration) will have to retain the entire repo, and all issues and PRs will go into the same bucket, regardless of which component they refer to.

It's not unworkable to deal with the monolithic repo, as it's not a large amount of data, but it might be advantageous to split them all out.

Mask password written to log file

When looking at HA log file, I noticed my blue iris password is logged. Passwords should never be written to log file. Can you remove (or just mask with "********") passwords when writing to log?

Example of log entry:

2020-03-02 01:14:59 INFO (MainThread) [custom_components.blueiris.home_assistant] Handling ConfigEntry change: {'entry_id': '4c3153192caf4037b2d1c043fa15b85e', 'version': 1, 'domain': 'blueiris', 'title': 'BlueIris', 'data': {'host': '172.20.0.160', 'password': 'MYPASSWORD', 'port': 80, 'ssl': False, 'username': 'hassio'}, 'options': {'exclude-system-camera': True, 'password': 'MYPASSWORD', 'username': 'hassio'}, 'system_options': {'disable_new_entities': False}, 'source': 'user', 'connection_class': 'local_poll', 'unique_id': None}

Camera cast

Hi,

just recently started using you integration and it's really awesome!

Having an issue casting a camera via google home to a chromecast. I get the following message: "It looks like the stream is currently unavailable from the Front Yard". Any ideas?

Blue Iris login support

Is there plans to try and support Blue Iris authentication?

My Blue Iris is front-ended with Nginx (reverse proxy). The Nginx has the cert (by letsencrypt) and is how I access Blue Iris internal or external. The issue is that from Blue Iris's perspective, the IP address always looks like "LAN" as the external access IP is terminated at Nginx. So with this setup, there is no way to turn on "Non-LAN only" for login. If I do, it turns off login for all access, internal or external.

Without some other more fine grained way to tell Blue Iris when to force a login (e.g., always require login from this IP), I'm stuck with having Blue Iris authentication always on.

So, this gets back to the enhancement request.... support for Blue Iris authentication. Thoughts?

Problem with lovelace and Blue Iris component (HACS)

Hi, I have a problem with the Lovelace GUI and the Blue Iris Component installed with HACS. I get this error: "Custom element doesn't exist: hui-picture-entity-card" (see attached picture) after update to .107. Know I have .107.4 (HassOS 3.12) and I have the same problem. What can I do? Thanks.

Screen Shot 2020-03-21 at 12 28 22

Question: binary_sensor motion detected vs camera triggered

This question is likely better asked on a blue iris forum, but I'll try here in case you know...

There seems to be 3 state events in blue iris (as seen by the web UI, screenshot below) per camera. They are "motion detected", "camera triggered" and "camera recording". The MQTT event which then feeds into HA's binary_sensor seems to be connected to "camera triggered". I have blue iris setup to continue recording 60 seconds after no-motion is detected. Ideally the "motion" event would be connected to the"motion detected" and not the "camera triggered" but that does not seem to be the case as I can see the motion detected icon clear from the BI UI but HA's motion binary_sensor does not clear until the "camera triggered" icon goes away (in my case 60 seconds later).

I know this has nothing to do with the HA BI integration -- it can only deal with data that BI publishes to MQTT. Do you know if there is a setting in BI that can send the "on reset" event when the motion is no longer detected (vs camera triggered is clearned)?

image

Make MQTT optional

Very cool component! Thanks for your work. ๐Ÿ‘
As a suggestionI wanted to use the component without MQTT just not to have to reconfigure each camera individually in HA. Perhaps MQTT can be optional in that case.

As a side note, if the MQTT add-on is not installed then the configuration popup just never appears. If MQTT is mandatory it should fail more gracefully. Even after enabling it I had to restart HA for the configuration popup to work.

Unable to set up dependencies of blueiris. Setup failed for dependencies: mqtt

Log Details (ERROR)
Logger: homeassistant.setup
Source: setup.py:129
First occurred: 1:33:40 PM (1 occurrences)
Last logged: 1:33:40 PM

Unable to set up dependencies of blueiris. Setup failed for dependencies: mqtt

Integration with Blue Iris NVR
Integration with Blue Iris Video Security Software
Authors:
elad-bar
GitHub stars: 38
Last updated: 3 hours ago
Installed: fe8b9b9
Available: fe8b9b9

Binary motion sensors status not updated

Since commit e41138d the status of binary motion sensors are not updated.
I've verified that the Blue Iris server is sending the correct MQTT status updates and with commit bf1c280 they are working correctly.
Thanks for the effort and fast response.

MQTT topics for motion detection do not match

Note: I am using Blue Iris 5.. perhaps the behavior has changed since v4.

When using the topic BlueIris/&CAM/&TYPE for both the trigger and trigger-reset alerts, messages are actually being sent to two different topics.

e.g.
the trigger sends MOTION_A = ON

the the trigger-reset sends MOTION = OFF

This results in the binary motion sensor being set to 'on' in Home Assistant but it was never being set to 'off' since that message was coming in on a different topic.

I was able to work around this by setting the trigger-reset topic to BlueIris/&CAM/MOTION_A

Is this behavior with different topics expected and or different from how it behaved in Blue Iris v4?

Am I not supposed to use the same topic for both alerts? This is how I understood it from the instructions.

Is the custom component supposed to compensate for the topics being different?

All cameras stopped working with latest update.

@elad-bar Please help!
I just updated to the latest code here and all cameras from this custom component have ceased providing video in Home Assistant. Not sure if it matters but I'm on Home Assistant 0.100.1

Latest commit: 897d1dd
Changed camera to work with original GenericCamera

It appears this is now utilizing some form of the stream: component as there are new controls at the bottom of the window when a camera is opened which did not appear previously. The issue is that the stream never starts, I just get a spinning circle and blank window.

The camera.entity pictures do still update periodically so there is still data passing through. They also now have tokenized access to their still-images.
Attributes for one of my cameras from this custom component:

access_token: b085b4f00f83ff9b2fbff3d2c8c5bed2133d3d7c44240f6a1d2a3b9fc1340b93
friendly_name: C2 Pro
entity_picture: /api/camera_proxy/camera.c2_pro?token=b085b4f00f83ff9b2fbff3d2c8c5bed2133d3d7c44240f6a1d2a3b9fc1340b93
supported_features: 2

Please let me know if there is anything I can to do assist or testing/debugging that will help to resolve the issue.

Watch Item: Blue Iris Geofence MQTT Support

I've opened a topic in the Blue Iris forums: Feature Request - Geofence MQTT Support. Being able to send MQTT messages would allow us to easily integrate the BI mobile app's presence detection into Home Assistant with some minor configuration similar to that being used for camera alerts.

Version 5 has an expected release date of June 1, 2019. Details of what v5 brings don't appear to be available just yet - it's entirely possible this might be an improvement that has already been included. If not, it's not unlikely new features (if this one gets considered) would have to wait until after the major release.

Latest Fix for Integration Problem, Breaks on HA Server Restart

When I restart HASS my Blue Iris integration does not create the enties on restart, and I must delete and readd the integration to get the objects created. The Cameras and Sesnsors are not created.

HASS: 0.108.6
Blue Iris: 6a0ea6a

log
2020-04-20 08:52:28 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for blueiris which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. 2020-04-20 08:52:29 DEBUG (MainThread) [custom_components.blueiris] Starting async_setup_entry of blueiris 2020-04-20 08:52:46 INFO (MainThread) [custom_components.blueiris.managers.home_assistant] Finalizing initialization of integration (X.X.X.X) at 2020-04-20 12:52:46.001774+00:00 2020-04-20 08:52:46 INFO (MainThread) [custom_components.blueiris.managers.home_assistant] Handling ConfigEntry change: {'entry_id': '80e8f50d0e1a4bab827c011d03ccc78e', 'version': 1, 'domain': 'blueiris', 'title': 'X.X.X.X', 'data': {'host': 'X.X.X.X', 'password': 'XXXXX', 'port': 81, 'ssl': False, 'username': 'XX'}, 'options': {}, 'system_options': {'disable_new_entities': False}, 'source': 'user', 'connection_class': 'local_poll', 'unique_id': None} 2020-04-20 08:52:46 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Initializing BlueIris 2020-04-20 08:52:46 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Performing login 2020-04-20 08:52:46 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Retrieving session ID 2020-04-20 08:52:46 DEBUG (MainThread) [custom_components.blueiris.models.base_entity] Starting async_setup_entry binary_sensor 2020-04-20 08:52:46 DEBUG (MainThread) [custom_components.blueiris.models.base_entity] Starting async_setup_entry camera 2020-04-20 08:52:46 DEBUG (MainThread) [custom_components.blueiris.models.base_entity] Starting async_setup_entry switch 2020-04-20 08:52:46 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Status of http://X.X.X.X:81/json: 200 2020-04-20 08:52:46 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Full result of {'cmd': 'login'}: {'result': 'fail', 'session': '6121213509ee15dd1b2a5c3a45fe3103', 'data': {'auth-exempt': True, 'reason': 'missing response'}} 2020-04-20 08:52:46 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Status of http://X.X.X.X:81/json: 200 2020-04-20 08:52:46 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Full result of {'cmd': 'login', 'session': '6121213509ee15dd1b2a5c3a45fe3103', 'response': '77ba0f891c1accd9c01b30029e8dc193'}: {'result': 'success', 'session': '6121213509ee15dd1b2a5c3a45fe3103', 'data': {'system name': 'Stocker', 'admin': True, 'ptz': False, 'audio': True, 'clips': True, 'streamtimelimit': False, 'dio': False, 'version': '5.0.9.2', 'license': 'ZLZW1-NV29R-FRTPM-PAEJT-JDNFG', 'support': '8/10/2020 3:31:06 PM', 'user': 'ha', 'latitude': 39.809734, 'longitude': -98.55562, 'tzone': '-240', 'streams': ['CBR 512 kbps; gop 300, bframe 0', 'CBR 1024 kbps; gop 300, bframe 0', 'CBR 256 kbps; gop 300, bframe 0'], 'sounds': ['airhorn.wav', 'alarm-frenzy.wav', 'alarm.wav', 'alarming.wav', 'alien-message.wav', 'alien-tune.wav', 'are-you-kidding.wav', 'attention-required.wav', 'blocker.wav', 'decay.wav', 'demonstrative.wav', 'determined.wav', 'doorbell.wav', 'enough-with-the-talking.wav', 'gentle-alarm.wav', 'gesture.wav', 'good-morning.wav', 'goodbye.wav', 'hail.wav', 'hell-yeah.wav', 'high-pitch.wav', 'i-demand-attention.wav', 'i-saw-you.wav', 'job-done.wav', 'just-like-magic.wav', 'long-chime-sound.wav', 'may-i-have-your-attention.wav', 'munchausen.wav', 'news-bringer.wav', 'no-way.wav', 'not-kiddin.wav', 'oh-really.wav', 'on-serious-matters.wav', 'paranoid.wav', 'pizzicato.wav', 'police.wav', 'pop.wav', 'professionals.wav', 'quiet-knock.wav', 'robot-walking.wav', 'served.wav', 'sorted.wav', 'springy.wav', 'surprise-on-a-spring.wav', 'system-fault.wav', 'the-squeaky-wheel-gets-the-grease.wav', 'this-is-it.wav', 'warning.wav', 'what.wav', 'wiggle.wav', 'will-you.wav', 'you-wouldnt-believe.wav'], 'www_sounds': ['airhorn.mp3', 'alarm-frenzy.mp3', 'alarm.mp3', 'alarming.mp3', 'alien-message.mp3', 'alien-tune.mp3', 'are-you-kidding.mp3', 'attention-required.mp3', 'blocker.mp3', 'decay.mp3', 'demonstrative.mp3', 'determined.mp3', 'doorbell.mp3', 'enough-with-the-talking.mp3', 'gentle-alarm.mp3', 'gesture.mp3', 'good-morning.mp3', 'goodbye.mp3', 'hail.mp3', 'hell-yeah.mp3', 'high-pitch.mp3', 'i-demand-attention.mp3', 'i-saw-you.mp3', 'job-done.mp3', 'just-like-magic.mp3', 'long-chime-sound.mp3', 'may-i-have-your-attention.mp3', 'munchausen.mp3', 'news-bringer.mp3', 'no-way.mp3', 'not-kiddin.mp3', 'oh-really.mp3', 'on-serious-matters.mp3', 'paranoid.mp3', 'pizzicato.mp3', 'police.mp3', 'pop.mp3', 'professionals.mp3', 'quiet-knock.mp3', 'robot-walking.mp3', 'served.mp3', 'sorted.mp3', 'springy.mp3', 'surprise-on-a-spring.mp3', 'system-fault.mp3', 'the-squeaky-wheel-gets-the-grease.mp3', 'this-is-it.mp3', 'warning.mp3', 'what.mp3', 'wiggle.mp3', 'will-you.mp3', 'you-wouldnt-believe.mp3'], 'profiles': ['Inactive', 'Active', 'Work hours', 'No Alert', 'Profile 4', 'Profile 5', 'Profile 6', 'Profile 7'], 'schedules': ['Default', 'No_Notifications']}} 2020-04-20 08:52:46 DEBUG (MainThread) [custom_components.blueiris.managers.home_assistant] Updating @2020-04-20 08:52:46.077641 2020-04-20 08:52:46 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Retrieving camera list 2020-04-20 08:52:46 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Status of http://X.X.X.X:81/json: 200 2020-04-20 08:52:46 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Full result of {'cmd': 'camlist', 'session': '6121213509ee15dd1b2a5c3a45fe3103'}: {'result': 'success', 'session': '6121213509ee15dd1b2a5c3a45fe3103', 'data': [{'optionDisplay': '+All cameras', 'optionValue': 'Index', 'FPS': 15.0, 'isMotion': False, 'isTriggered': False, 'xsize': 2, 'ysize': 2, 'width': 1280, 'height': 720, 'audio': True, 'group': ['garage', 'front', 'Back'], 'rects': [[2, 2, 634, 358], [642, 2, 1274, 358], [324, 362, 956, 718]], 'newalerts': 0, 'lastalert': -1, 'alertutc': 0}, {'optionDisplay': '+All cameras cycle', 'optionValue': '@Index', 'type': 4, 'FPS': 15.0, 'color': 0, 'ptz': False, 'audio': True, 'width': 1280, 'height': 720, 'isEnabled': True, 'isOnline': True, 'profile': 1, 'pause': 0, 'isPaused': False, 'isRecording': False, 'isYellow': False, 'isNoSignal': False, 'isAlerting': False, 'nAlerts': 0, 'nTriggers': 0, 'nClips': 0, 'nNoSignal': 0, 'error': '', 'isMotion': False, 'isTriggered': False}, {'optionDisplay': 'Garage', 'optionValue': 'garage', 'active': True, 'FPS': 14.79, 'color': 8151097, 'ptz': False, 'audio': False, 'width': 1920, 'height': 1080, 'newalerts': 134, 'lastalert': 17158430, 'alertutc': 1587348998, 'webcast': True, 'isEnabled': True, 'isOnline': True, 'hidden': False, 'tempfull': False, 'type': 4, 'profile': 1, 'lock': 0, 'pause': 0, 'isPaused': False, 'isRecording': False, 'isManRec': False, 'ManRecElapsed': 0, 'ManRecLimit': 0, 'isYellow': False, 'isMotion': False, 'isTriggered': False, 'isNoSignal': False, 'isAlerting': False, 'nAlerts': 1284, 'nTriggers': 1284, 'nClips': 97, 'nNoSignal': 60, 'error': ''}, {'optionDisplay': 'Frontdoor', 'optionValue': 'front', 'active': True, 'FPS': 12.83, 'color': 8151097, 'ptz': False, 'audio': False, 'width': 1920, 'height': 1080, 'newalerts': 5, 'lastalert': 15950863, 'alertutc': 1587333073, 'webcast': True, 'isEnabled': True, 'isOnline': True, 'hidden': False, 'tempfull': False, 'type': 4, 'profile': 1, 'lock': 0, 'pause': 0, 'isPaused': False, 'isRecording': False, 'isManRec': False, 'ManRecElapsed': 0, 'ManRecLimit': 0, 'isYellow': False, 'isMotion': False, 'isTriggered': False, 'isNoSignal': False, 'isAlerting': False, 'nAlerts': 71, 'nTriggers': 71, 'nClips': 33, 'nNoSignal': 120, 'error': ''}, {'optionDisplay': 'Backyard', 'optionValue': 'Back', 'active': True, 'FPS': 14.99, 'color': 8151097, 'ptz': False, 'audio': False, 'width': 1920, 'height': 1080, 'newalerts': 79, 'lastalert': 17327596, 'alertutc': 1587384494, 'webcast': True, 'isEnabled': True, 'isOnline': True, 'hidden': False, 'tempfull': False, 'type': 4, 'profile': 1, 'lock': 0, 'pause': 0, 'isPaused': False, 'isRecording': False, 'isManRec': False, 'ManRecElapsed': 0, 'ManRecLimit': 0, 'isYellow': False, 'isMotion': False, 'isTriggered': False, 'isNoSignal': False, 'isAlerting': False, 'nAlerts': 858, 'nTriggers': 858, 'nClips': 202, 'nNoSignal': 329, 'error': ''}]} 2020-04-20 08:52:46 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Retrieving status 2020-04-20 08:52:46 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Status of http://X.X.X.X:81/json: 200 2020-04-20 08:52:46 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Full result of {'cmd': 'status', 'session': '6121213509ee15dd1b2a5c3a45fe3103'}: {'result': 'success', 'session': '6121213509ee15dd1b2a5c3a45fe3103', 'data': {'signal': '1', 'cxns': 1, 'cpu': 28, 'ram': '1395216384', 'bits': 24, 'mem': '1.29G', 'memload': '58%', 'disks': [{'disk': 'C:', 'allocated': 4096, 'used': 898, 'free': 11160, 'total': 50648}, {'disk': '\\\\192.168.94.30\\Media', 'allocated': 10240, 'used': 0, 'free': 2097152, 'total': 0}], 'profile': 1, 'lock': '0', 'schedule': 'Default', 'dio': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'uptime': '34:08:33:14', 'clips': 'Clips: 113 files, 898.7M/14.0G; C: +7.77G', 'tmessage': '1587387165858', 'warnings': '41', 'alerts': '218', 'tzone': '-240'}} 2020-04-20 08:52:46 ERROR (MainThread) [custom_components.blueiris.managers.entity_manager] Failed to update, step: Mark as created - binary_sensor -> BlueIris Garage Motion, Error: 'NoneType' object has no attribute 'attributes', Line: 199 2020-04-20 08:53:17 DEBUG (MainThread) [custom_components.blueiris.managers.home_assistant] Updating @2020-04-20 12:53:17.001577+00:00 2020-04-20 08:53:17 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Retrieving camera list 2020-04-20 08:53:17 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Status of http://X.X.X.X:81/json: 200 2020-04-20 08:53:17 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Full result of {'cmd': 'camlist', 'session': '6121213509ee15dd1b2a5c3a45fe3103'}: {'result': 'success', 'session': '6121213509ee15dd1b2a5c3a45fe3103', 'data': [{'optionDisplay': '+All cameras', 'optionValue': 'Index', 'FPS': 15.0, 'isMotion': False, 'isTriggered': False, 'xsize': 2, 'ysize': 2, 'width': 1280, 'height': 720, 'audio': True, 'group': ['garage', 'front', 'Back'], 'rects': [[2, 2, 634, 358], [642, 2, 1274, 358], [324, 362, 956, 718]], 'newalerts': 0, 'lastalert': -1, 'alertutc': 0}, {'optionDisplay': '+All cameras cycle', 'optionValue': '@Index', 'type': 4, 'FPS': 15.0, 'color': 0, 'ptz': False, 'audio': True, 'width': 1280, 'height': 720, 'isEnabled': True, 'isOnline': True, 'profile': 1, 'pause': 0, 'isPaused': False, 'isRecording': False, 'isYellow': False, 'isNoSignal': False, 'isAlerting': False, 'nAlerts': 0, 'nTriggers': 0, 'nClips': 0, 'nNoSignal': 0, 'error': '', 'isMotion': False, 'isTriggered': False}, {'optionDisplay': 'Garage', 'optionValue': 'garage', 'active': True, 'FPS': 14.78, 'color': 8151097, 'ptz': False, 'audio': False, 'width': 1920, 'height': 1080, 'newalerts': 134, 'lastalert': 17158430, 'alertutc': 1587348998, 'webcast': True, 'isEnabled': True, 'isOnline': True, 'hidden': False, 'tempfull': False, 'type': 4, 'profile': 1, 'lock': 0, 'pause': 0, 'isPaused': False, 'isRecording': False, 'isManRec': False, 'ManRecElapsed': 0, 'ManRecLimit': 0, 'isYellow': False, 'isMotion': False, 'isTriggered': False, 'isNoSignal': False, 'isAlerting': False, 'nAlerts': 1284, 'nTriggers': 1284, 'nClips': 97, 'nNoSignal': 60, 'error': ''}, {'optionDisplay': 'Frontdoor', 'optionValue': 'front', 'active': True, 'FPS': 13.74, 'color': 8151097, 'ptz': False, 'audio': False, 'width': 1920, 'height': 1080, 'newalerts': 5, 'lastalert': 15950863, 'alertutc': 1587333073, 'webcast': True, 'isEnabled': True, 'isOnline': True, 'hidden': False, 'tempfull': False, 'type': 4, 'profile': 1, 'lock': 0, 'pause': 0, 'isPaused': False, 'isRecording': False, 'isManRec': False, 'ManRecElapsed': 0, 'ManRecLimit': 0, 'isYellow': False, 'isMotion': False, 'isTriggered': False, 'isNoSignal': False, 'isAlerting': False, 'nAlerts': 71, 'nTriggers': 71, 'nClips': 33, 'nNoSignal': 120, 'error': ''}, {'optionDisplay': 'Backyard', 'optionValue': 'Back', 'active': True, 'FPS': 14.98, 'color': 8151097, 'ptz': False, 'audio': False, 'width': 1920, 'height': 1080, 'newalerts': 79, 'lastalert': 17327596, 'alertutc': 1587384494, 'webcast': True, 'isEnabled': True, 'isOnline': True, 'hidden': False, 'tempfull': False, 'type': 4, 'profile': 1, 'lock': 0, 'pause': 0, 'isPaused': False, 'isRecording': False, 'isManRec': False, 'ManRecElapsed': 0, 'ManRecLimit': 0, 'isYellow': False, 'isMotion': False, 'isTriggered': False, 'isNoSignal': False, 'isAlerting': False, 'nAlerts': 858, 'nTriggers': 858, 'nClips': 202, 'nNoSignal': 329, 'error': ''}]} 2020-04-20 08:53:17 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Retrieving status 2020-04-20 08:53:17 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Status of http://X.X.X.X:81/json: 200 2020-04-20 08:53:17 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Full result of {'cmd': 'status', 'session': '6121213509ee15dd1b2a5c3a45fe3103'}: {'result': 'success', 'session': '6121213509ee15dd1b2a5c3a45fe3103', 'data': {'signal': '1', 'cxns': 1, 'cpu': 27, 'ram': '1395462144', 'bits': 24, 'mem': '1.29G', 'memload': '58%', 'disks': [{'disk': 'C:', 'allocated': 4096, 'used': 898, 'free': 11160, 'total': 50648}, {'disk': '\\\\192.168.94.30\\Media', 'allocated': 10240, 'used': 0, 'free': 2097152, 'total': 0}], 'profile': 1, 'lock': '0', 'schedule': 'Default', 'dio': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'uptime': '34:08:33:45', 'clips': 'Clips: 113 files, 898.7M/14.0G; C: +7.77G', 'tmessage': '1587387168206', 'warnings': '41', 'alerts': '218', 'tzone': '-240'}} 2020-04-20 08:53:17 ERROR (MainThread) [custom_components.blueiris.managers.entity_manager] Failed to update, step: Mark as created - binary_sensor -> BlueIris Garage Motion, Error: 'NoneType' object has no attribute 'attributes', Line: 199 2020-04-20 08:53:47 DEBUG (MainThread) [custom_components.blueiris.managers.home_assistant] Updating @2020-04-20 12:53:47.003687+00:00 2020-04-20 08:53:47 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Retrieving camera list 2020-04-20 08:53:47 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Status of http://X.X.X.X:81/json: 200 2020-04-20 08:53:47 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Full result of {'cmd': 'camlist', 'session': '6121213509ee15dd1b2a5c3a45fe3103'}: {'result': 'success', 'session': '6121213509ee15dd1b2a5c3a45fe3103', 'data': [{'optionDisplay': '+All cameras', 'optionValue': 'Index', 'FPS': 15.0, 'isMotion': False, 'isTriggered': False, 'xsize': 2, 'ysize': 2, 'width': 1280, 'height': 720, 'audio': True, 'group': ['garage', 'front', 'Back'], 'rects': [[2, 2, 634, 358], [642, 2, 1274, 358], [324, 362, 956, 718]], 'newalerts': 0, 'lastalert': -1, 'alertutc': 0}, {'optionDisplay': '+All cameras cycle', 'optionValue': '@Index', 'type': 4, 'FPS': 15.0, 'color': 0, 'ptz': False, 'audio': True, 'width': 1280, 'height': 720, 'isEnabled': True, 'isOnline': True, 'profile': 1, 'pause': 0, 'isPaused': False, 'isRecording': False, 'isYellow': False, 'isNoSignal': False, 'isAlerting': False, 'nAlerts': 0, 'nTriggers': 0, 'nClips': 0, 'nNoSignal': 0, 'error': '', 'isMotion': False, 'isTriggered': False}, {'optionDisplay': 'Garage', 'optionValue': 'garage', 'active': True, 'FPS': 14.45, 'color': 8151097, 'ptz': False, 'audio': False, 'width': 1920, 'height': 1080, 'newalerts': 134, 'lastalert': 17158430, 'alertutc': 1587348998, 'webcast': True, 'isEnabled': True, 'isOnline': True, 'hidden': False, 'tempfull': False, 'type': 4, 'profile': 1, 'lock': 0, 'pause': 0, 'isPaused': False, 'isRecording': False, 'isManRec': False, 'ManRecElapsed': 0, 'ManRecLimit': 0, 'isYellow': False, 'isMotion': False, 'isTriggered': False, 'isNoSignal': False, 'isAlerting': False, 'nAlerts': 1284, 'nTriggers': 1284, 'nClips': 97, 'nNoSignal': 60, 'error': ''}, {'optionDisplay': 'Frontdoor', 'optionValue': 'front', 'active': True, 'FPS': 13.66, 'color': 8151097, 'ptz': False, 'audio': False, 'width': 1920, 'height': 1080, 'newalerts': 5, 'lastalert': 15950863, 'alertutc': 1587333073, 'webcast': True, 'isEnabled': True, 'isOnline': True, 'hidden': False, 'tempfull': False, 'type': 4, 'profile': 1, 'lock': 0, 'pause': 0, 'isPaused': False, 'isRecording': False, 'isManRec': False, 'ManRecElapsed': 0, 'ManRecLimit': 0, 'isYellow': False, 'isMotion': False, 'isTriggered': False, 'isNoSignal': False, 'isAlerting': False, 'nAlerts': 71, 'nTriggers': 71, 'nClips': 33, 'nNoSignal': 120, 'error': ''}, {'optionDisplay': 'Backyard', 'optionValue': 'Back', 'active': True, 'FPS': 14.96, 'color': 8151097, 'ptz': False, 'audio': False, 'width': 1920, 'height': 1080, 'newalerts': 79, 'lastalert': 17327596, 'alertutc': 1587384494, 'webcast': True, 'isEnabled': True, 'isOnline': True, 'hidden': False, 'tempfull': False, 'type': 4, 'profile': 1, 'lock': 0, 'pause': 0, 'isPaused': False, 'isRecording': False, 'isManRec': False, 'ManRecElapsed': 0, 'ManRecLimit': 0, 'isYellow': False, 'isMotion': False, 'isTriggered': False, 'isNoSignal': False, 'isAlerting': False, 'nAlerts': 858, 'nTriggers': 858, 'nClips': 202, 'nNoSignal': 329, 'error': ''}]} 2020-04-20 08:53:47 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Retrieving status 2020-04-20 08:53:47 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Status of http://X.X.X.X:81/json: 200 2020-04-20 08:53:47 DEBUG (MainThread) [custom_components.blueiris.api.blue_iris_api] Full result of {'cmd': 'status', 'session': '6121213509ee15dd1b2a5c3a45fe3103'}: {'result': 'success', 'session': '6121213509ee15dd1b2a5c3a45fe3103', 'data': {'signal': '1', 'cxns': 1, 'cpu': 34, 'ram': '1395462144', 'bits': 24, 'mem': '1.29G', 'memload': '58%', 'disks': [{'disk': 'C:', 'allocated': 4096, 'used': 898, 'free': 11160, 'total': 50648}, {'disk': '\\\\192.168.94.30\\Media', 'allocated': 10240, 'used': 0, 'free': 2097152, 'total': 0}], 'profile': 1, 'lock': '0', 'schedule': 'Default', 'dio': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'uptime': '34:08:34:15', 'clips': 'Clips: 113 files, 898.7M/14.0G; C: +7.77G', 'tmessage': '1587387168206', 'warnings': '41', 'alerts': '218', 'tzone': '-240'}} 2020-04-20 08:53:47 ERROR (MainThread) [custom_components.blueiris.managers.entity_manager] Failed to update, step: Mark as created - binary_sensor -> BlueIris Garage Motion, Error: 'NoneType' object has no attribute 'attributes', Line: 199

binary_sensor.blueiris gone after e0a2b31

This is not affecting me because I was not using it, but after e0a2b31 three entities disappeared:

BlueIris
BlueIris +All cameras cycle Connectivity
BlueIris +All cameras Connectivity

I think but not sure that the first was the entity that had all sorts of attributes about the BlueIris setup, at least I do not see anywhere to pull those now. I wasn't using them, and posting this just in case the change was not intentional.

Latest update failing

I updated to the latest update today and the integration stopped working. I removed and reinstalled the integration but the setup keeps coming up as an unknown error

New Integrations erroring out

When using the latest version, I get the following errors from the system when I try to setup BlueIris from intgrations

2020-02-10 14:46:57 ERROR (MainThread) [homeassistant.setup] Setup failed for blueiris: No setup function defined.

Server returned 401 Unauthorized

I get Server returned 401 Unauthorized (authorization failed): 'http://10.0.0.7:8080/h264/BackYard/temp.m3u8' when I stream the camera feed from HA.

The integration sets up fine and creates everything. I just can't stream my cameras in the HA interface. The camera picture refreshes ok.

Any suggestions?

MQTT Issue

hi, i've follow your guide, nice work!
I've problem with mqtt binary sensot that not change state (motion, audio, connection), and i don't understand how i wrong.

Mqtt server connect right, it's a log of mosquitto:

1585051xxx: New client connected from xxx.xx.x.xx as BlueIris (p1, c1, k20, u'myuser').

For example (maybe i don't understand) i've to change anything here? :

Topic - BlueIris/&CAM/Status
Payload - { "type": "&TYPE", "trigger": "ON" }

Can you help me? (i'm a newbie)
Thanks

Unknown error occurred

108.6 trying to intergrate blue iris through intergrations get this Unknown error occurred
able to access blue iris on local ip and over the internet without issue, your integration is the only place that has issues talking to blue iris did full reboots of both Home assistant and camera computers

Profile Switching

I just updated to the latest release and profile switching does not work anymore. If I try activating a switch in HA it fails and reverts to previous state. If I manually switch in BI, HA doesn't pick up the change.

Watch Item: Blue Iris Separate Motion Zone MQTT Topic

I've opened a topic in the Blue Iris forums: Feature Request - Separate Motion Zone MQTT Topic to ask for zone triggers be separated out of the &TYPE macro.

Version 5 has an expected release date of June 1, 2019. Details of what v5 brings don't appear to be available just yet - it's entirely possible this might be an improvement that has already been included. If not, it's not unlikely new features (if this one gets considered) would have to wait until after the major release.

On newest Change, Binary Sensor Watchdog changed to connectivity

Front Door camera

  • type: custom:vertical-stack-in-card
    cards:
    • type: picture-entity
      entity: camera.front_door
      name: Front Door
      show_state: false
    • type: glance
      entities:
      • entity: binary_sensor.front_door_motion
        name: Motion
      • entity: binary_sensor.front_door_audio
        name: Audio
      • entity: binary_sensor.front_door_watchdog
        name: Watchdog

Watchdog should really be
entity: binary_sensor.front_door_connectivity.

The auto config generator also needs to be updated besides the readme

watchdog inversion not working correctly

In your code in binary_sensor.py, it shows that a WATCHDOG connectivity sensor is inverted... that is, OFF = connected, ON = disconnected.
However, in my system, the inversion code does not work correctly, because my system still showed OFF as disconnected, so my watchdog sensor reports disconnected when the camera is working fine.
I had to create a binary template to invert the sensor and I'm using that instead of the original.
Is there any reason why the watchdog sensor would not work correctly for me while it works fine for others?

Not available in integration until you juggle it a lot

I installed this on HA 105.3 using HACS, and after doing so it did not appear in the list of integrations, including it was not in the list of integrations you can add.

It eventually came visible afterwards, but only after a lot of mascinations: restart HA, reboot the server on which it (as hass.io) runs, restart HA again, reinstall via HACS, restart HA... sometime around this point it came visible. Until then it was not visible. It had no log entries (other than the standard warning of not supported) or other errors.

I'm sorry I do not have more details; there is at least one other report here:

New Integration fails password encryption check

I was upgrading and did a full remove/reinstall of the integration and component. When trying to add the integration back it kept failing the last step in password_manager.py. I was getting the following error message:

2020-03-19 10:46:24 WARNING (MainThread) [custom_components.blueiris.password_manager] BlueIris Server password is not encrypted, please remove integration and reintegrate
2020-03-19 10:46:24 WARNING (MainThread) [custom_components.blueiris.config_flow] Failed to access BlueIris Server (192.168.xx.xx)

I believe the issue was caused by this check:

    if decrypted.endswith("=="):

the generated key file contents on my system ended with a single =, not ==.

When corrected to:

    if decrypted.endswith("="):

The integration works fine for me to add my server back.

I am on HA 0.107.0, but this was occurring on 0.106.6 as well.

Allow MOTION binary sensor auto-creation to detect MOTION_<x> Topics

It took me hours to figure out why my motion detect sensors were not working. I checked my mosquitto live database, and found that when motion was detected on a camera, the topic was "/MOTION_A ON", not "/MOTION ON", which is what the binary sensor created by this component is expecting to see.
Because blue iris allows the use of motion groups, it defaults to motion group A in my system. I changed line 52 in binary_sensor.py from this -
for t in ['MOTION', 'AUDIO', 'EXTERNAL', 'WATCHDOG']:
to this -
for t in ['MOTION_A', 'AUDIO', 'EXTERNAL', 'WATCHDOG']:

Once I did that, my motion detectors worked correctly.

Error getting new camera image: Cannot connect to host 192.168.x.xx:xxxx

I receive thousands of these errors per day. When viewed directly on BlueIris playback is smooth without any lag, when viewed in HA the stream judders, skips and freezes and the following error is received:

Error getting new camera image: Cannot connect to host 192.168.2.xx:xxxx ssl:None [Connect call failed ('192.168.2.xx', xxxx)]

Amcrest 4K Camera Settings:
FPS: 20
Resolution: 1080P
Max Stream: 2048kb/s

Nothing I change corrects the HA stream for these cameras. They're all wired via POE to a Edgeswitch 24, no issues handling the load on any equipment.

Inivisible Credentials

After adding the addong in HACS, not finding the integration to add in Configuration->Integrations->add.
After some exploration, discovered that when clicking ADD, an empty option was showing
image
When clicked, that empty option opened a familiar dialog, also non-specific.
image
However, after guessing and filling out the Blue Iris creds into the super-spy boxes, I got a "success" message that I had indeed installed the blue-iris integration.
image

Also, along the way, discovered lots of console errors on this page:
http://hassio.local:8123/config/integrations/dashboard
All items pictured here.
image

Something not completely right there. I also have not gone any further into verifying the install except to verify that the errors on that page no longer show.
Hope this helps!

Camera Stream anomaly

My issue is more of a nuisance than a real issue, and I'm sure that the problem most likely does NOT lie within this component, but I'm hoping that the insight you have may guide me to a solution, or an alternative.

BACKGROUND:
Before I started using Blueiris, I have simply set up individual camera entities in HA, and as usual, have then in Lovelace set up as picture entities. Early on in this process, I had enabled the "stream" integration in my configuration.yaml. This was running for at least a year, maybe two. It worked fairly well. I would get the occasional stutter in some of my cameras.

I recently acquired Blueiris, and started using your component. This has many benefits, and I love the ease of configuration. The Lovelace picture card, however, is not working as I'd hoped. I now have two options.... neither of which are great.

Option 1:
I remove the "stream" integration form my configuration, but then I get image grabs from the camera, and we are basically limited to a few(3-5) frames per second. This surely is acceptable, but it feels like a step backward.
Example no-stream

Option 2:
I enable the stream component, and every few seconds I get this strange buffer/compression glitch. I think this is still better than 3-4 fps, but it does lead me to want to see if this can be resolved/improved.
Example with-stream

Unfortunately, my understanding of the mechanics at play is way to simple to really dig into this.
If you perhaps have any guidance that would be great.

I have not seen any errors in the logs pertaining to this.
I don't have many settings I can change (AFAIK).

Restart of HAss Clears BlueIris Server Devices in Automations

Hopefully this makes sense.

I was trying to use the "Device" option while making automations, instead of "State", or "Call Service". Whenever Home Assistant is restarted, the "BlueIris Server" devices are always set to blank in the automations, and break my automations.

I have switched over to using "State" and "Call Service" and the issue has gone away.

Not sure if there's anything that can be done with it, but the "Devices" options are a bit easier to use in some instances.

Sensors icons changed to "Alarm" icon

From commit 4114fc2 all sensors icons are now using "Alarm" icon (mdi:alarm-light)
In commit bf1c280 sensors had the default home assistant icon according to the sensor type (e.g. server-network for connectivity, walk for motion)

Generated scripts minor syntax error

The generate script builds something like this:

  camera_dropdown: 
    name: BlueIris Camera 
    initial: All 
    icon: mdi:camera 
    options: 
      - +All cameras
      - +All cameras cycle
      - camDriveway
      - camNorthside
      - etc

The "Initial" is not consistent with the options and fails the check configuration. This was with the version bcc0ec3 (I don't see a version number) that was current as of 2/23/2020 and current blue iris. 5.1.0.1.

Settings dialog error

After version e0a2b31 there's a possibly just cosmetic error. If you go into the Configuration, Integrations, select BlueIris, then Edit Settings (the gear), the dialog heading says:

Transition Error: The intl string context variable 'host' was not provided to the string 'Options for BlueIris ({host}).'

High network traffic continues after visiting and leaving live view camera

When lovelace card is set to camera view = live, network traffic to hass is > 1.5Mbps. This is expected as we are live streaming. However when you leave the lovelace view, the high network traffic continues. Note that Preload stream is not checked. You can even logout of HA and high traffic into HA continues.

When the camera view is changed back to auto, the high network traffic continues as if there is a background thread still streaming. If I restart hass core the network traffic returns to normal.

image

Network traffic after visiting lovelace with live stream camera, then doing a hass logout.
image

Binary sensors working until HA restart

I had this working nice.
And then I did a restart on Homeassistant. It created a new set of sensors with a _2 suffix.
I cleaned it up and removed everything and started over.
I reinstalled and it went okay and everything is there again but none of the sensors work in the home assistant user interface.
The camera views work just not the sensors.

They show up in mqtt but won't trigger in home assistant.
Here is a copy of what happens when I move in front of the camera:

HiveMQ Messages:
2020-02-16 17:07:10Topic: BlueIris/Cam2/StatusQos: 2{ "type": "MOTION_A", "trigger": "OFF" }
2020-02-16 17:06:57Topic: BlueIris/Cam2/StatusQos: 2{ "type": "MOTION_A", "trigger": "ON" }
2020-02-16 17:06:55Topic: BlueIris/Cam2/StatusQos: 2{ "type": "MOTION_A", "trigger": "ON" }
2020-02-16 17:06:54Topic: BlueIris/Cam2/StatusQos: 2{ "type": "MOTION_A", "trigger": "ON" }
2020-02-16 17:06:49Topic: BlueIris/Cam2/StatusQos: 2{ "type": "MOTION_A", "trigger": "ON" }
2020-02-16 17:06:34Topic: BlueIris/appQos: 2Retainedunexpected stop

Let me know what I can do to help you help me troubleshoot this,
Thanks!

2.0 - Switch Profiles

I can not switch profiles on the new version. If I switch manually via BI the change does not reflect in HASS. If I reboot HASS the status syncs back up correctly but still can not change the profile via the switch.

2020-02-07 15:07:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/blueiris/home_assistant.py", line 41, in async_update
await self._api.async_update()
AttributeError: 'NoneType' object has no attribute 'async_update'
2020-02-07 15:07:44 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/blueiris/home_assistant.py", line 41, in async_update
await self._api.async_update()
AttributeError: 'NoneType' object has no attribute 'async_update'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.