elad-bar / ha-blueiris

Integration with Blue Iris Video Security Software
184 stars 43 forks source link

This integration has no devices after latest update #63

Closed iptvcld closed 4 years ago

iptvcld commented 4 years ago

This integration has no devices after latest update

elad-bar commented 4 years ago

can you please provide more details? step / logs

elad-bar commented 4 years ago

Released new version, can you please check if it works for you?

iptvcld commented 4 years ago

So this time I was able to see my sensors. But the behaviour was the same as the first issue. When I disable all sensors and just leave cams on and then go to enable 1 motion. It hangs and everything adds back!

elad-bar commented 4 years ago

Will check it again

iptvcld commented 4 years ago

Thank you! Let me know and i will test it out. By default it would be nice that only cams are enabled and everything else disabled. And then we can choose what to turn on

officiallybob commented 4 years ago

I can confirm that the release before the most recent wasn't including any cameras. Updating to the newest did not correct it immediately. However once I deleted the integration, restarted Home Assistant, and then re-added the integration, all my devices were added back.

elad-bar commented 4 years ago

tried to reproduced it, working great, are you on the latest version?

iptvcld commented 4 years ago

I will uninstall the integration and install again and report back

iptvcld commented 4 years ago

when i go to disables sensors; and then just add 1 or 2- it hangs and says no items and then adds all the sensors back..

Log 2020-04-28 16:19:43 WARNING (MainThread) [homeassistant.helpers.entity] Entity switch.blueiris_profile_inactive is incorrectly being triggered for updates while it is disabled. This is a bug in the blueiris integration. 2020-04-28 16:19:43 WARNING (MainThread) [homeassistant.helpers.entity] Entity switch.blueiris_profile_active is incorrectly being triggered for updates while it is disabled. This is a bug in the blueiris integration. 2020-04-28 16:19:43 WARNING (MainThread) [homeassistant.helpers.entity] Entity switch.blueiris_profile_blueiris is incorrectly being triggered for updates while it is disabled. This is a bug in the blueiris integration. 2020-04-28 16:19:43 WARNING (MainThread) [homeassistant.helpers.entity] Entity switch.blueiris_profile_night is incorrectly being triggered for updates while it is disabled. This is a bug in the blueiris integration. 2020-04-28 16:19:43 WARNING (MainThread) [homeassistant.helpers.entity] Entity switch.blueiris_profile_profile_4 is incorrectly being triggered for updates while it is disabled. This is a bug in the blueiris integration. 2020-04-28 16:19:43 WARNING (MainThread) [homeassistant.helpers.entity] Entity switch.blueiris_profile_profile_5 is incorrectly being triggered for updates while it is disabled. This is a bug in the blueiris integration. 2020-04-28 16:19:43 WARNING (MainThread) [homeassistant.helpers.entity] Entity switch.blueiris_profile_profile_6 is incorrectly being triggered for updates while it is disabled. This is a bug in the blueiris integration. 2020-04-28 16:19:43 WARNING (MainThread) [homeassistant.helpers.entity] Entity switch.blueiris_profile_profile_7 is incorrectly being triggered for updates while it is disabled. This is a bug in the blueiris integration. 2020-04-28 16:19:43 WARNING (MainThread) [homeassistant.helpers.entity] Entity binary_sensor.blueiris_basement_motion is incorrectly being triggered for updates while it is disabled. This is a bug in the blueiris integration. 2020-04-28 16:19:43 WARNING (MainThread) [homeassistant.helpers.entity] Entity binary_sensor.blueiris_basement_connectivity is incorrectly being triggered for updates while it is disabled. This is a bug in the blueiris integration. 2020-04-28 16:19:43 WARNING (MainThread) [homeassistant.helpers.entity] Entity binary_sensor.blueiris_alerts is incorrectly being triggered for updates while it is disabled. This is a bug in the blueiris integration.

iptvcld commented 4 years ago

2020-04-28 16:30:28 WARNING (MainThread) [homeassistant.helpers.entity] Entity camera.blueiris_backyard is incorrectly being triggered for updates while it is disabled. This is a bug in the blueiris integration. 2020-04-28 16:30:39 INFO (MainThread) [homeassistant.config_entries] Reloading configuration entries because disabled_by changed in entity registry: 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.home_assistant] Removing current integration - 192.168.2.9 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.device_manager] Deleting device BlueIris Server 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.device_manager] Deleting device +All cameras (Index) 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.device_manager] Deleting device +All cameras cycle (@Index) 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.device_manager] Deleting device MainDoor (MainDoor) 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.device_manager] Deleting device FrontDoor (FrontDoor) 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.device_manager] Deleting device Driveway (Driveway) 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.device_manager] Deleting device Backyard (Backyard) 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.device_manager] Deleting device Basement (Basement) 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.device_manager] Deleting device SidePath (SidePath) 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.device_manager] Deleting device Foyer (Foyer) 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.device_manager] Deleting device InsideHallway (InsideHallway) 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.device_manager] Deleting device Garage (Garage) 2020-04-28 16:30:39 INFO (MainThread) [custom_components.blueiris.managers.home_assistant] Current integration (192.168.2.9) removed 2020-04-28 16:30:42 INFO (MainThread) [custom_components.blueiris.managers.home_assistant] Finalizing initialization of integration (192.168.2.9) at 2020-04-28 20:30:42.001141+00:00 2020-04-28 16:30:42 INFO (MainThread) [custom_components.blueiris.managers.home_assistant] Handling ConfigEntry change: {'entry_id': 'c9ef293f8e9546839e80157f34119900', 'version': 1, 'domain': 'blueiris', 'title': '192.168.2.9', 'data': {'ssl': False, 'host': '192.168.2.9 ', 'username': 'admin', 'password': 'gAAAAABeqI7lYZ0kCweEV6Xpjh1uIZkKfrflkA9Cj_quurbGkPELYUJsuC6dXcAlIlEbcWqgwarO9KpNpSsMZklsCdMypur1WQ==', 'port': 81}, 'options': {}, 'system_options': {'disable_new_entities': False}, 'source': 'user', 'connection_class': 'local_poll', 'unique_id': None} 2020-04-28 16:30:42 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Initializing BlueIris 2020-04-28 16:30:42 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Performing login 2020-04-28 16:30:42 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Retrieving session ID 2020-04-28 16:30:42 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.blueiris 2020-04-28 16:30:42 INFO (MainThread) [homeassistant.components.camera] Setting up camera.blueiris 2020-04-28 16:30:42 INFO (MainThread) [homeassistant.components.switch] Setting up switch.blueiris 2020-04-28 16:30:42 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Retrieving camera list 2020-04-28 16:30:42 INFO (MainThread) [custom_components.blueiris.api.blue_iris_api] Retrieving status

iptvcld commented 4 years ago

so all i did was go into a camera; disable (Cam, motion and connectivity) then went in and enabled Cam. CRASH!

elad-bar commented 4 years ago

By disabling the alert binary sensor you are disabling the ability to get motion, audio and connectivity sensors

iptvcld commented 4 years ago

So right now all I did was leave everything on including the alert sensor. And went into one of my cams. Disabled the camera, motion and connection sensors. Went back in and just enabled camera, saved. Stay on that page for 30 seconds and crash! Starts all over again

elad-bar commented 4 years ago

can you define crash? HA not working? component is not working?

iptvcld commented 4 years ago

Crash as in the integration reloads it self from the start.

iptvcld commented 4 years ago

I can make this happen everytime so it's not a one off.

elad-bar commented 4 years ago

Ok, so that's not a crash, crash is when something is stopping to work.

I released new version with a feature might solve the issue by allowing you to control which components are being created, all details are in the README and below

Available in integration's options UI:

Control component's creation New feature to control which of the components will be created:

Component's drop-downs NONE option - work-around As workaround for UI not allowing submitting the form without all fields with values, First option in each drop-down is NONE, as long as this option is checked, it will not allow checking other items

iptvcld commented 4 years ago

MUCH BETTER!! There we go; now this is amazing and works perfect! Love the new option layout! It is now very easy to select which sensors/cams to leave on and off. Thank you for your work!