elad-bar / ha-blueiris

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

devices not available after update 1.0.10 to 1.0.11 #152

Closed nrpetonr closed 2 years ago

nrpetonr commented 2 years ago

after the update from 1.0.10 to 1.0.11, the devices are not more available. i tried remove and add integration again, it does connect to the server, but no devices. after downgrading to 1.0.10, everything is OK again.

kramttocs commented 2 years ago

Hey. Can you turn the logging to debug and provide the log? Thanks

kramttocs commented 2 years ago

And in Blue Iris, what is the value of the System Name in Options?

nrpetonr commented 2 years ago

in blue iris application, the name is equal to BI integration name in homeassistant.

log is attached home-assistant.log .

akerrichardt commented 2 years ago

Same problem here works when moved back to 1.0.10.

kramttocs commented 2 years ago

The cause for the logger.set_level error is that it Logging isn't turned on in HA so that service doesn't exist. In your configuration.yaml add this:

logger: default: warning

Save and restart. You can set the default to another level if you'd like. Do note that if you change the log level via the Blue Iris options back to Default (after we solve this issue :) ) you will need to restart HA.

nrpetonr commented 2 years ago

figured out meanwhile :-) find the log in my previous post.

kramttocs commented 2 years ago

Thanks! I'll take a look this afternoon.

kramttocs commented 2 years ago

Can you take the files from here: https://github.com/kramttocs/ha-blueiris/tree/fix-for-1.0.11 and add the log again? Thanks

kramttocs commented 2 years ago

Actually, wait to do that as I have another change I'd like you to test all at once. Your camera named KrnovPRACOVNA. If you go to the settings of that one and then the Video tab. What radio button is selected for the Device Type?

nrpetonr commented 2 years ago

radio button under device type? not sure which setting you mean, there is nothing like that under video - device type. however that camera is usb, firewire, analog.

kramttocs commented 2 years ago

Perfect. Thanks! I'll get code updated shortly and you can test if you'd like (I'll let you know when it's ready). I'll push out a new official release hopefully this evening that fixes this.

nrpetonr commented 2 years ago

Perfect. Thanks! I'll get code updated shortly and you can test if you'd like (I'll let you know when it's ready). I'll push out a new official release hopefully this evening that fixes this.

sure, i can test, no problem

kramttocs commented 2 years ago

Here you go: https://github.com/kramttocs/ha-blueiris/tree/fix-for-1.0.11/custom_components/blueiris Please take the files from there and overwrite yours. The only files you really need are

managers\device_manager.py managers\home_assistant.py managers\entity_manager.py helpers__init__.py helpers\const.py

Download these, copy them over your existing ones, restart HA and let me know if it works. You may need to delete and re-add the integration. Assuming the devices are created you should be able to visit them and see the camera type listed under the name.

nrpetonr commented 2 years ago

Here you go: https://github.com/kramttocs/ha-blueiris/tree/fix-for-1.0.11/custom_components/blueiris Please take the files from there and overwrite yours. The only files you really need are

managers\device_manager.py managers\home_assistant.py managers\entity_manager.py helpersinit.py helpers\const.py

Download these, copy them over your existing ones, restart HA and let me know if it works. You may need to delete and re-add the integration. Assuming the devices are created you should be able to visit them and see the camera type listed under the name.

do so after updating to buggy 1.0.11 or on working 1.0.10?

kramttocs commented 2 years ago

Sorry, yes - on 1.0.11

nrpetonr commented 2 years ago

Sorry, yes - on 1.0.11

it is working. good job, thx

kramttocs commented 2 years ago

Great! I'll get this pushed out as soon as I run a few more tests. Make sure you turn debug off - I added a lot of messages in those files :)

kramttocs commented 2 years ago

Fixed with release 1.0.12

akerrichardt commented 2 years ago

Mine is working on 1.0.12. Thanks

kramttocs commented 2 years ago

Mine is working on 1.0.12. Thanks

Glad to hear it! Sorry about that.