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

Doorbird auth and event data #16504

Closed
wants to merge 8 commits into from
Closed

Conversation

oblogic7
Copy link
Contributor

@oblogic7 oblogic7 commented Sep 9, 2018

Description:

Require token to be used as auth by Doorbird devices . Add video URLs as event data to make them available to event handlers and automations.

Related issue (if applicable): #15376

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#6245

Example entry for configuration.yaml (if applicable):

doorbird:
  token: RANDOM_STRING
  devices:
    - host: x.x.x.x
      username: USERNAME
      password: PASSWORD
      name: Front Door
      monitored_conditions:
        - doorbell
        - motion

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

Add video URLs as event data to make them available to event handlers and automations.
@@ -126,16 +142,20 @@ def subscribe_events(hass, doorstation):

doorstation.device.subscribe_notification(event_type, url)

#Register a dummy listener so event is listed in GUI

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

block comment should start with '# '

homeassistant/components/doorbird.py Show resolved Hide resolved
homeassistant/components/doorbird.py Show resolved Hide resolved
import voluptuous as vol

from homeassistant.components.http import HomeAssistantView
from homeassistant.components.http import KEY_AUTHENTICATED, HomeAssistantView

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'homeassistant.components.http.KEY_AUTHENTICATED' imported but unused

homeassistant/components/doorbird.py Show resolved Hide resolved

import asyncio

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'asyncio' imported but unused

@oblogic7
Copy link
Contributor Author

Upon further investigation, these changes will need to be reapplied after #14933 is merged. Closing this PR and will include auth updates on #14933.

@oblogic7 oblogic7 closed this Oct 21, 2018
@ghost ghost removed the in progress label Oct 21, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants