Skip to content

Doorbird Binding ​

Binding for Doorbird D101 and D210x video doorbells.

Supported Things ​

The following thing types are supported:

DeviceThing ID
Doorbird D101/D201/D205/D1101V Doorbelld101
Doorbird D210x Doorbelld210x
Doorbird A1081 Controllera1081

Thing Configuration ​

D101/D201/D205/D1101V and D210x Doorbell ​

The following configuration parameters are available on the Doorbird D101/D201/D205/D1101V and D210x Doorbell things:

ParameterParameter IDRequired/OptionalDescription
HostnamedoorbirdHostRequiredThe hostname or IP address of the Doorbird device.
User IDuserIdRequiredUser Id of a Doorbird user that has permissions to access the API. The User ID and Password must be created using the Doorbird smart phone application.
PassworduserPasswordRequiredPassword of a Doorbird user.
Webhook IP WhitelistwebhookIpWhitelistOptionalWhitelist of IP addresses allowed to trigger webhooks. By default includes IP address of the Doorbird device.
Image Refresh RateimageRefreshRateOptionalRate at which image channel should be automatically updated. Leave field blank (default) to disable refresh.
Doorbell Off DelaydoorbellOffDelayOptionalNumber of seconds to wait before setting doorbell channel OFF after a doorbell event. Leave field blank to disable.
Motion Off DelaymotionOffDelayOptionalNumber of seconds to wait before setting motion channel OFF after a motion event. Leave field blank to disable.
Montage Number of ImagesmontageNumImagesRequiredNumber of images to include in the doorbell and motion montage images. Default is 0.
Montage Scale FactormontageScaleFactorRequiredPercent scaling factor for montage image. Default is 100.

A1081 Controller ​

The following configuration parameters are available on the Doorbird A1081 Controller thing:

ParameterParameter IDRequired/OptionalDescription
HostnamedoorbirdHostRequiredThe hostname or IP address of the Doorbird device.
User IDuserIdRequiredUser Id of a Doorbird user that has permissions to access the API. The User ID and Password must be created using the Doorbird smart phone application.
PassworduserPasswordRequiredPassword of a Doorbird user.
Controller IdcontrollerIdOptionalDoorbird Id of the controller to reliable target the relays of this device. E.g. "gggaaa"

Discovery ​

Auto-discovery is not supported at this time.

Channels ​

The following channels are supported by the binding for the Doorbird D101/D201/D205 and D210x Doorbell thing types.

Channel IDItem TypeDescription
doorbellTriggerGenerates PRESSED event when doorbell is pressed
doorbellTimestampDateTimeTimestamp when doorbell was pressed
doorbellImageImageImage captured when the doorbell was pressed
doorbellHistoryIndexNumberIndex of historical image for doorbell press
doorbellHistoryTimestampDateTimeTime when doorbell was pressed for history image
doorbellHistoryImageImageHistorical image for doorbell press
doorbellMontageImageConcatenation of first n doorbell history images
motionSwitchChanges to ON when the device detects motion
motionTimestampDateTimeTimestamp when motion sensor was triggered
motionImageImageImage captured when motion was detected
motionHistoryIndexNumberIndex of Historical image for motion
motionHistoryTimestampDateTimeTime when motion was detected for history image
motionHistoryImageImageHistorical image for motion sensor
motionMontageImageConcatenation of first n motion history images
lightSwitchActivates the light relay
openDoor1SwitchActivates the door 1 relay
openDoor2SwitchActivates the door 2 relay (D210x only)
imageImageImage from the doorbird camera
imageTimestampDateTimeTime when image was captured from device

The following channels are supported by the binding for the Doorbird A1081 Controller thing type.

Channel IDItem TypeDescription
openDoor1SwitchActivates the door 1 relay
openDoor2SwitchActivates the door 2 relay
openDoor3SwitchActivates the door 3 relay

Audio sink ​

A doorbird thing automatically registers itself as an audio sink in openHAB. Your rules in openHAB can then play audio or text-to-speech sounds to it. It currently supports only ulaw or wav audio data (the later by converting it to ulaw, adding latency).

Profiles ​

Using the system default switch profile rawbutton-on-off-switch in a doorbell channel item definition will cause ON/OFF states to be set when the doorbell is pressed and released. See Items example below.

Rule Actions ​

The binding supports the following actions. In classic rules these are accessible as shown in this example (adjust getActions with your ThingId):

void restart() ​

Restarts the Doorbird device.

void sipHangup() ​

Hangs up a SIP call.

String getRingTimeLimit() ​

Get the value of the SIP status parameter RING_TIME_LIMIT.

String getCallTimeLimit() ​

Get the value of the SIP status parameter CALL_TIME_LIMIT.

String getLastErrorCode() ​

Get the value of the SIP status parameter LASTERRORCODE.

String getLastErrorText() ​

Get the value of the SIP status parameter LASTERRORTEXT.

Example

rules
val actions = getActions("doorbird","doorbird:d101:doorbell")
if(actions === null) {
    logInfo("actions", "Actions not found, check thing ID")
    return
 }
 actions.sipHangup()

 var String ringTimeLimit = actions.getRingTimeLimit()

Known Issues ​

The Doorbird uses the UDP protocol on port 6524 to broadcast events for Doorbird actions, such as doorbell pressed, motion detected, etc. If the Doorbird is on a separate subnet or VLAN from openHAB, those UDP packets will not route by default. In that case, the Doorbird binding will not receive those events. Either put the Doorbird and openHAB on the same subnet/VLAN, or set up your network to explicitly route those UDP packets.

Alternatively to UDP broadcast, you can configure the following webhooks in your doorbell:

  • Doorbell webhook (when pressed): http[s]://<openhab-ip>:<openhab-port>/doorbird/<thing-uid>/doorbell
  • Motion webhook: http[s]://<openhab-ip>:<openhab-port>/doorbird/<thing-uid>/motion

For security reasons, you have to specify a whitelist of allowed IP addresses in the thing configuration (webhookIpWhitelist) to restrict which devices can trigger these webhooks. The whitelist by default includes the IP address of the Doorbird device.

Example ​

Things ​

dsl
Thing doorbird:d101:doorbell "Doorbird D101 Doorbell" [doorbirdHost="192.168.1.100",userId="dtfubb0004",userPassword="HG7afc5TvN",imageRefreshRate=60,doorbellOffDelay=3,motionOffDelay=30,montageNumImages=3,montageScaleFactor=35]

Thing doorbird:a1081:controller "Doorbird A1081 Controller" [doorbirdHost="192.168.1.100",userId="dtfubb0004",userPassword="HG7afc5TvN"]

Items ​

dsl
Switch Doorbell_Pressed "Doorbell Pressed [%s]" <switch> ["Switch"] { channel="doorbird:d101:doorbell:doorbell" [profile="rawbutton-on-off-switch"] }
DateTime Doorbell_PressedTimestamp "Doorbell Pressed Timestamp [%1$tA, %1$tm/%1$td/%1$tY %1$tl:%1$tM %1$tp]" <time> { channel="doorbird:d101:doorbell:doorbellTimestamp" }
Image Doorbell_PressedImage "Doorbell Pressed Image [%s]" { channel="doorbird:d101:doorbell:doorbellImage" }
Switch Doorbell_Motion "Doorbell Motion [%s]" <switch> ["Switch"] { channel="doorbird:d101:doorbell:motion" }
DateTime Doorbell_MotionTimestamp "Doorbell Motion Timestamp [%1$tA, %1$tm/%1$td/%1$tY %1$tl:%1$tM %1$tp]" <time> { channel="doorbird:d101:doorbell:motionTimestamp" }
Image Doorbell_MotionDetectedImage "Motion Detected Image [%s]" { channel="doorbird:d101:doorbell:motionImage" }
Switch Doorbell_Light "Doorbell Light [%s]" <switch> ["Switch"] { channel="doorbird:d101:doorbell:light", expire="5s,command=OFF" }
Switch Doorbell_OpenDoor1 "Doorbell Open Door 1 [%s]" <switch> ["Switch"] { channel="doorbird:d101:doorbell:openDoor1", expire="5s,command=OFF" }
Image Doorbell_Image "Doorbell Image [%s]" { channel="doorbird:d101:doorbell:image" }
Number Doorbell_DoorbellHistoryIndex "Doorbell History Index [%.0f]" <none> { channel="doorbird:d101:doorbell:doorbellHistoryIndex" }
DateTime Doorbell_DoorbellHistoryTimestamp "Doorbell History Timestamp [%1$tA, %1$tm/%1$td/%1$tY %1$tl:%1$tM %1$tp]" <time> { channel="doorbird:d101:doorbell:doorbellHistoryTimestamp" }
Image Doorbell_DoorbellHistoryImage "Doorbell History Image [%s]" { channel="doorbird:d101:doorbell:doorbellHistoryImage" }
Number Doorbell_MotionHistoryIndex "Motion History Index [%.0f]" <none> { channel="doorbird:d101:doorbell:motionHistoryIndex" }
DateTime Doorbell_MotionHistoryTimestamp "Motion History Timestamp [%1$tA, %1$tm/%1$td/%1$tY %1$tl:%1$tM %1$tp]" <time> { channel="doorbird:d101:doorbell:motionHistoryTimestamp" }
Image Doorbell_MotionHistoryImage "Motion History Image [%s]" { channel="doorbird:d101:doorbell:motionHistoryImage" }
Image Doorbell_DoorbellMontage "Doorbell History Montage [%s]" { channel="doorbird:d101:doorbell:doorbellMontage" }
Image Doorbell_MotionMontage "Motion History Montage [%s]" { channel="doorbird:d101:doorbell:motionMontage" }

Sitemap ​

dsl
Frame {
    Text label="Doorbird" {
        Frame label="Image" {
            Image item=Doorbell_Image
        }
        Frame label="Events" {
            Text item=Doorbell_Pressed
            Text item=Doorbell_PressedTimestamp
            Image item=Doorbell_PressedImage
            Text item=Doorbell_Motion
            Text item=Doorbell_MotionTimestamp
            Image item=Doorbell_MotionImage
        }
        Frame label="Actions" {
            Switch item=Doorbell_OpenDoor1
            Switch item=Doorbell_Light
        }
        Frame label="History" {
            Setpoint item=Doorbell_DoorbellHistoryIndex minValue=1 maxValue=50 step=1
            Switch item=Doorbell_DoorbellHistoryIndex label="Reset Index []" mappings=[1="Reset"]
            Text item=Doorbell_DoorbellHistoryTimestamp
            Image item=Doorbell_DoorbellHistoryImage
            Setpoint item=Doorbell_MotionHistoryIndex minValue=1 maxValue=50 step=1
            Switch item=Doorbell_MotionHistoryIndex label="Reset Index []" mappings=[1="Reset"]
            Text item=Doorbell_MotionHistoryTimestamp
            Image item=Doorbell_MotionHistoryImage
        }
        Frame label="Doorbell Montage" {
            Image item=Doorbell_DoorbellMontage
        }
        Frame label="Motion Montage" {
            Image item=Doorbell_MotionMontage
        }
    }
}

Rule ​

Using the doorbell trigger channel to detect if the doorbell has been pressed:

rules
rule "Doorbell Button Pressed"
when
    Channel "doorbird:d101:doorbell:doorbell" triggered PRESSED
then
    // Do something when the doorbell is pressed
end

Alternatively, detecting a doorbell press using an item that references the rawbutton-on-off-switch profile:

rules
rule "Doorbell Button Pressed"
when
    Item Doorbell_Pressed received command ON
then
    // Do something when the doorbell is pressed
end

Using the doorbell motion channel to detect motion:

rules
rule "Motion Detected"
when
    Item Doorbell_Motion received command ON
then
    // Do something when motion is detected
end