From 5454b721d4cf692f8fdf62af8d6a85189cb0a992 Mon Sep 17 00:00:00 2001 From: Andy Castille Date: Sun, 3 Jun 2018 15:59:11 -0500 Subject: [PATCH] Update for new DoorBird API --- source/_components/doorbird.markdown | 12 +++++------- source/_components/switch.doorbird.markdown | 9 +-------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/source/_components/doorbird.markdown b/source/_components/doorbird.markdown index 9db3c71d864c..f936e46a7936 100644 --- a/source/_components/doorbird.markdown +++ b/source/_components/doorbird.markdown @@ -10,7 +10,7 @@ footer: true logo: doorbird.png ha_category: Hub ha_release: "0.54" -ha_iot_class: "Local Polling" +ha_iot_class: "Local Push" --- The `doorbird` implementation allows you to integrate your [DoorBird](http://www.doorbird.com/) device in Home Assistant. @@ -23,7 +23,7 @@ doorbird: host: DOORBIRD_IP_OR_HOSTNAME username: YOUR_USERNAME password: YOUR_PASSWORD - hass_url_override: HASS_IP + doorbell_events: true ``` Configuration variables: @@ -31,13 +31,11 @@ Configuration variables: - **host** (*Required*): The LAN IP address or hostname of your device. You can find this by going to the [DoorBird Online check](http://www.doorbird.com/checkonline) and entering the information from the paper that was included in the box. - **username** (*Required*): The username of a non-administrator user account on the device. - **password** (*Required*): The password for the user specified. -- **doorbell_events** (*Optional*): Setting this to `true` this will register a callback URL with the device so that events can be published to the event bus when the doorbell rings. +- **doorbell_events** (*Optional*): Setting this to `true` will register a callback URL with the device so that events can be published to the event bus when the doorbell rings. +- **motion_events** (*Optional*): Setting this to `true` will register a callback URL with the device so that events can be published to the event bus when the device detects motion. +- **doorbell_number** (*Optional*): If your DoorBird device is shared and/or has multiple doorbells, specify the number of the doorbell to monitor using this variable. Defaults to 1, which is the only doorbell on most units. - **hass_url_override** (*Optional*): If your DoorBird cannot connect to the machine running Home Assistant because you are using dynamic DNS or some other HTTP configuration (such as HTTPS), specify the LAN IP of the machine here to force a LAN connection. -

-Enabling `doorbell_events` will delete all other registered push notification services with the device every time Home Assistant starts. This will not affect notifications delivered by the DoorBird mobile app. -

- ### Doorbell Sound Examples You can create an automation that triggers on event `doorbird_doorbell` to play a doorbell sound when the Doorbird button is pressed. This should work with any media player. diff --git a/source/_components/switch.doorbird.markdown b/source/_components/switch.doorbird.markdown index cb5b66db171e..6d8a89eadbe7 100644 --- a/source/_components/switch.doorbird.markdown +++ b/source/_components/switch.doorbird.markdown @@ -13,7 +13,7 @@ ha_release: "0.54" ha_iot_class: "Local Push" --- -The `doorbird` switch platform allows you to power relays in your [DoorBird](http://www.doorbird.com/) video doorbell device. +The `doorbird` switch platform allows you to turn on the IR lights and power the relays in your [DoorBird](http://www.doorbird.com/) video doorbell device.

You must have the [DoorBird component](/components/doorbird/) configured to use this switch. @@ -25,11 +25,4 @@ To enable this switch, add the following lines to your `configuration.yaml` file # Example configuration.yaml entry switch: - platform: doorbird - switches: - - light_on - - open_door ``` - -Configuration variables: - -- **switches** (*Required*): A list of switches to include. Possible entries are `light_on` for control of the IR array and `open_door` for control of an electronic door strike or alarm.