Closed danielsza closed 2 years ago
doorbird documentation doorbird source (message by IssueLinks)
Hey there @oblogic7, @bdraco, mind taking a look at this issue as it has been labeled with an integration (doorbird
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
@danielsza you wrote: "The doorbird shows and API error" can you add the error and any additional logs? It will be hard to understand what is the problem without it. Thanks
here is
the issue
Please enable debug logs (https://www.home-assistant.io/integrations/logger/), restart, and post them.
Thanks 👍
logger:
default: info
logs:
requests: debug
requests.packages.urllib3: debug
urllib3.connectionpool: debug
urllib3: debug
doorbirdpy: debug
homeassistant.components.doorbird: debug
HACS (Home Assistant Community Store)
2022-01-22 14:19:05 INFO (SyncWorker_4) [homeassistant.loader] Loaded light from homeassistant.components.light
2022-01-22 14:19:05 INFO (MainThread) [homeassistant.setup] Setup of domain counter took 1.4 seconds
2022-01-22 14:19:05 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
2022-01-22 14:19:05 INFO (MainThread) [zeroconf] Address in use when adding (('fe80::cd88:f2a6:6585:43ee', 0, 3), 3) to multicast group, it is expected to happen on some systems
2022-01-22 14:19:05 INFO (MainThread) [homeassistant.setup] Setup of domain input_text took 1.4 seconds
2022-01-22 14:19:05 INFO (MainThread) [homeassistant.setup] Setup of domain input_select took 1.4 seconds
2022-01-22 14:19:05 INFO (MainThread) [homeassistant.setup] Setup of domain tag took 1.2 seconds
2022-01-22 14:19:05 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.energy
2022-01-22 14:19:05 INFO (MainThread) [homeassistant.setup] Setting up doorbird
2022-01-22 14:19:05 INFO (MainThread) [homeassistant.setup] Setup of domain doorbird took 0.0 seconds
2022-01-22 14:19:05 INFO (MainThread) [homeassistant.setup] Setting up zwave_js
2022-01-22 14:19:05 INFO (MainThread) [homeassistant.setup] Setup of domain zwave_js took 0.0 seconds
2022-01-22 14:19:05 INFO (SyncWorker_0) [homeassistant.components.rpi_power.binary_sensor] Voltage normalized. Everything is working as intended.
2022-01-22 14:19:05 INFO (SyncWorker_4) [homeassistant.loader] Loaded switch from homeassistant.components.switch
2022-01-22 14:19:05 INFO (MainThread) [homeassistant.setup] Setting up ipp
2022-01-22 14:19:05 INFO (MainThread) [homeassistant.setup] Setup of domain ipp took 0.0 seconds
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setting up myq
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain myq took 0.0 seconds
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 1.0 seconds
2022-01-22 14:19:06 DEBUG (SyncWorker_5) [urllib3.connectionpool] Starting new HTTP connection (1): 192.168.0.40:80
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain input_datetime took 2.3 seconds
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain timer took 2.1 seconds
2022-01-22 14:19:06 DEBUG (SyncWorker_5) [urllib3.connectionpool] http://192.168.0.40:80 "GET /bha-api/info.cgi HTTP/1.1" 200 172
2022-01-22 14:19:06 DEBUG (SyncWorker_5) [urllib3.connectionpool] http://192.168.0.40:80 "GET /bha-api/info.cgi HTTP/1.1" 200 172
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setting up samsungtv
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain samsungtv took 0.0 seconds
2022-01-22 14:19:06 INFO (SyncWorker_0) [homeassistant.loader] Loaded notify from homeassistant.components.notify
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.adguard
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.components.zwave_js] Z-Wave JS add-on is not running. Starting add-on
2022-01-22 14:19:06 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Z-Wave JS' for zwave_js integration not ready yet: None; Retrying in background
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain input_number took 2.4 seconds
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 2.4 seconds
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain input_boolean took 2.4 seconds
2022-01-22 14:19:06 DEBUG (SyncWorker_3) [urllib3.connectionpool] http://192.168.0.40:80 "GET /bha-api/favorites.cgi HTTP/1.1" 401 0
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setting up switch
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 0.0 seconds
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 1.4 seconds
2022-01-22 14:19:06 INFO (SyncWorker_4) [homeassistant.loader] Loaded remote from homeassistant.components.remote
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setting up media_player
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain media_player took 0.0 seconds
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setting up ssdp
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain ssdp took 0.0 seconds
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setting up script
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setting up automation
2022-01-22 14:19:06 WARNING (MainThread) [homeassistant.config_entries] Config entry '192.168.0.40' for doorbird integration not ready yet: None; Retrying in background
2022-01-22 14:19:06 INFO (MainThread) [custom_components.hacs] Loaded 11 tasks
2022-01-22 14:19:06 INFO (MainThread) [custom_components.hacs] Stage changed: HacsStage.SETUP
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.components.switch] Setting up switch.adguard
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setting up mobile_app
2022-01-22 14:19:06 INFO (MainThread) [custom_components.hacs] Executing task: restore_data
2022-01-22 14:19:06 INFO (MainThread) [custom_components.hacs] Executing task: setup_frontend
2022-01-22 14:19:06 INFO (MainThread) [custom_components.hacs] Executing task: verify_api
2022-01-22 14:19:06 INFO (MainThread) [custom_components.hacs] Executing task: setup_websocket_api
2022-01-22 14:19:06 INFO (MainThread) [custom_components.hacs] Executing task: clear_old_storage
2022-01-22 14:19:06 INFO (MainThread) [custom_components.hacs] Executing task: check_constrains
2022-01-22 14:19:06 INFO (MainThread) [custom_components.hacs] Executing task: setup_sensor
2022-01-22 14:19:06 INFO (MainThread) [custom_components.hacs] Executing task: activate_categories
2022-01-22 14:19:06 INFO (SyncWorker_0) [custom_components.hacs] Enable category: integration
2022-01-22 14:19:06 INFO (SyncWorker_0) [custom_components.hacs] Enable category: plugin
2022-01-22 14:19:06 INFO (SyncWorker_0) [custom_components.hacs] Enable category: theme
2022-01-22 14:19:06 INFO (SyncWorker_0) [custom_components.hacs] Enable category: appdaemon
2022-01-22 14:19:06 INFO (SyncWorker_0) [custom_components.hacs] Enable category: netdaemon
2022-01-22 14:19:06 INFO (SyncWorker_5) [custom_components.hacs] LovelaceMode.AUTO_GEN mode, cache for /hacsfiles/: False
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setting up remote
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.setup] Setup of domain remote took 0.0 seconds
2022-01-22 14:19:06 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.samsungtv
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.setup] Setting up homekit
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.setup] Setup of domain homekit took 0.0 seconds
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.setup] Setting up homekit_controller
2022-01-22 14:19:07 INFO (SyncWorker_3) [homeassistant.loader] Loaded weather from homeassistant.components.weather
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.setup] Setup of domain mobile_app took 0.8 seconds
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.setup] Setting up weather
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.setup] Setup of domain weather took 0.0 seconds
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.setup] Setup of domain homekit_controller took 0.2 seconds
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.setup] Setting up notify
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 0.0 seconds
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.ipp
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.ipp
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 1.2 seconds
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.setup] Setup of domain script took 1.3 seconds
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.components.weather] Setting up weather.met
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.setup] Setting up device_tracker
2022-01-22 14:19:07 INFO (MainThread) [custom_components.hacs] Restore started
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.mobile_app
2022-01-22 14:19:07 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.mobile_app
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.components.notify] Setting up notify.mobile_app
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 0.5 seconds
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.setup] Setting up light
2022-01-22 14:19:08 INFO (SyncWorker_4) [homeassistant.loader] Loaded fan from homeassistant.components.fan
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.setup] Setting up default_config
2022-01-22 14:19:08 INFO (SyncWorker_2) [homeassistant.loader] Loaded stream from homeassistant.components.stream
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.mobile_app
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.4 seconds
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.setup] Setting up fan
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.setup] Setup of domain fan took 0.0 seconds
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.components.light] Setting up light.homekit_controller
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.components.light] Setting up light.homekit_controller
2022-01-22 14:19:08 INFO (MainThread) [custom_components.hacs] Restore done
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.components.fan] Setting up fan.homekit_controller
2022-01-22 14:19:08 INFO (MainThread) [custom_components.hacs] Stage changed: HacsStage.STARTUP
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.setup] Setting up stream
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.setup] Setup of domain stream took 0.0 seconds
2022-01-22 14:19:08 INFO (MainThread) [custom_components.hacs] Executing task: load_hacs_repository
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.setup] Setup of domain default_config took 0.5 seconds
2022-01-22 14:19:08 INFO (MainThread) [custom_components.hacs] Stage changed: HacsStage.WAITING
2022-01-22 14:19:08 INFO (MainThread) [custom_components.hacs] Setup complete, waiting for Home Assistant before startup tasks starts
2022-01-22 14:19:08 INFO (MainThread) [custom_components.hacs] HACS is enabled
2022-01-22 14:19:08 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.hacs
2022-01-22 14:19:09 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that uses str for device registry entry_type. This is deprecated and will stop working in Home Assistant 2022.3, it should be updated to use DeviceEntryType instead. Please report this issue.
Stack (most recent call last):
File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/src/homeassistant/homeassistant/main.py", line 331, in
The integration is getting a 401
calling the favorites.cgi
api. Are you sure the user you are using has the right permissions?
Yes, if I roll back to 2021.10.6 everything works correctly with no other changes
Sent from my iPhone
On Jan 22, 2022, at 15:30, J. Nick Koston @.***> wrote:
The integration is getting a 401 calling the favorites.cgi api. Are you sure the user you are using has the right permissions?
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.
We likely need the full output of the http call to /bha-api/favorites.cgi
to figure out why the device is rejecting the call
Can you get a tcpdump
?
Your user is definitely missing the operator permission. This is required. It only worked before because we did not check and some things were likely not working as expected.
Yes that’s was the issue.
Thank you
Sent from my iPhone
On Jan 22, 2022, at 17:30, J. Nick Koston @.***> wrote:
Your user is definitely missing the operator permission. This is required. It only worked before because we did not check and some things were likely not working as expected.
https://www.home-assistant.io/integrations/doorbird/#setup
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.
The problem
When running 2021.12.9 (and possibly older) The doorbird shows and API error. And does not connect, nor show and video or still images .
rolling back to 2021.12.6 with no other changes works as expected
What version of Home Assistant Core has the issue?
2021.12.9
What was the last working version of Home Assistant Core?
2021.12.6
What type of installation are you running?
Home Assistant OS
Integration causing the issue
DoorBird integration
Link to integration documentation on our website
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response