This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Closed Official

[APP] DoorBird for Homey

13

Comments

  • hansjehansje Member
    edited December 2017
    I forgot to send the draft. That is why my response was so late.
    I even went further, because I noticed that sometimes flows vanishes. I did a factory reset and then installed only doorbird. Same result. Again I runned the test: {"BHA": { "RETURNCODE": "1", "NOTIFICATIONS": []}}. Even I can see that the JSON array returned only an error.
  • PhuturistPhuturist Member
    edited December 2017
    hansje said:
    I forgot to send the draft. That is why my response was so late.
    I even went further, because I noticed that sometimes flows vanishes. I did a factory reset and then installed only doorbird. Same result. Again I runned the test: {"BHA": { "RETURNCODE": "1", "NOTIFICATIONS": []}}. Even I can see that the JSON array returned only an error.
    @hansje, do you know how to do a local command line installation. I could create a custom app that will do some extra debug logging so I can see what is going on.

    I did notice that something in the DoorBird notification API has changed. It seems that they are in the progress of moving these notifications it over to the DoorBird smartphone app (under Administration > HTTP calls). You can only set a doorbell notification here however and the API documentation is not updated yet. I'll email them to get more info.
  • @Phuturist I'm a (old) php programmer and I know how to RTFM. So I downloaded the API file and tried to exec some commands. 
    http://192.168.1.44/bha-api/image.cgi?http-user=ghbfei0001&http-password=w5DYFxbLgC
    Success
    http://192.168.1.44/bha-api/image.cgi?http-user=ghbfei0001&http-password=w5DYFxbLgC&index=1&event=doorbell
    Success
    http://192.168.1.44/bha-api/monitor.cgi?http-user=ghbfei0001&http-password=w5DYFxbLgC&check=doorbell
    Returned empty page
    http://192.168.1.44/bha-api/monitor.cgi?http-user=ghbfei0001&http-password=w5DYFxbLgC&ring=doorbell
    Browser request keeps polling for a minute, then empty page
    So could you provide me a script or something so I can help find the problem?

  • hansje said:
    @Phuturist I'm a (old) php programmer and I know how to RTFM. So I downloaded the API file and tried to exec some commands. 
    http://192.168.1.44/bha-api/image.cgi?http-user=xxx0001&http-password=xxx
    Success
    http://192.168.1.44/bha-api/image.cgi?http-user=xxx0001&http-password=xxx&index=1&event=doorbell
    Success
    http://192.168.1.44/bha-api/monitor.cgi?http-user=xxx0001&http-password=xxx&check=doorbell
    Returned empty page
    http://192.168.1.44/bha-api/monitor.cgi?http-user=xxx0001&http-password=xxx&ring=doorbell
    Browser request keeps polling for a minute, then empty page
    So could you provide me a script or something so I can help find the problem?

    First, please remove your username and password in your previous post. You dont want those here in public.

    When trying to write some manual instructions for you I may have found the issue. It looks like a certain API call is not working since DoorBird firmware 1.0.9. I use this API call to get some info on the DoorBird. Could you tell me the outcome of this URL: http://192.168.1.44/bha-api/info.cgi
  • Phuturist said:
    hansje said:
    @Phuturist I'm a (old) php programmer and I know how to RTFM. So I downloaded the API file and tried to exec some commands. 
    http://192.168.1.44/bha-api/image.cgi?http-user=xxx0001&http-password=xxx
    Success
    http://192.168.1.44/bha-api/image.cgi?http-user=xxx0001&http-password=xxx&index=1&event=doorbell
    Success
    http://192.168.1.44/bha-api/monitor.cgi?http-user=xxx0001&http-password=xxx&check=doorbell
    Returned empty page
    http://192.168.1.44/bha-api/monitor.cgi?http-user=xxx0001&http-password=xxx&ring=doorbell
    Browser request keeps polling for a minute, then empty page
    So could you provide me a script or something so I can help find the problem?

    First, please remove your username and password in your previous post. You dont want those here in public.

    When trying to write some manual instructions for you I may have found the issue. It looks like a certain API call is not working since DoorBird firmware 1.0.9. I use this API call to get some info on the DoorBird. Could you tell me the outcome of this URL: http://192.168.1.44/bha-api/info.cgi
    First: I knew you would warn me about passwords, but trust me, when it works I change it anyway.
    Second: The json output is {"BHA": { "RETURNCODE": "1", "VERSION": [{"FIRMWARE": "000109","BUILD_NUMBER": "15120529","WIFI_MAC_ADDR": "1CCAE370E77C","RELAYS":["1"],"DEVICE-TYPE": "DoorBird D101"}]}}
    Third: Keep up the good work, thanx
  • hansje said:
    Phuturist said:
    hansje said:
    @Phuturist I'm a (old) php programmer and I know how to RTFM. So I downloaded the API file and tried to exec some commands. 
    http://192.168.1.44/bha-api/image.cgi?http-user=xxx0001&http-password=xxx
    Success
    http://192.168.1.44/bha-api/image.cgi?http-user=xxx0001&http-password=xxx&index=1&event=doorbell
    Success
    http://192.168.1.44/bha-api/monitor.cgi?http-user=xxx0001&http-password=xxx&check=doorbell
    Returned empty page
    http://192.168.1.44/bha-api/monitor.cgi?http-user=xxx0001&http-password=xxx&ring=doorbell
    Browser request keeps polling for a minute, then empty page
    So could you provide me a script or something so I can help find the problem?

    First, please remove your username and password in your previous post. You dont want those here in public.

    When trying to write some manual instructions for you I may have found the issue. It looks like a certain API call is not working since DoorBird firmware 1.0.9. I use this API call to get some info on the DoorBird. Could you tell me the outcome of this URL: http://192.168.1.44/bha-api/info.cgi
    First: I knew you would warn me about passwords, but trust me, when it works I change it anyway.
    Second: The json output is {"BHA": { "RETURNCODE": "1", "VERSION": [{"FIRMWARE": "000109","BUILD_NUMBER": "15120529","WIFI_MAC_ADDR": "1CCAE370E77C","RELAYS":["1"],"DEVICE-TYPE": "DoorBird D101"}]}}
    Third: Keep up the good work, thanx
    Ok, now try to set the notifications manually and see if that works. You will need to set a notification URL for all events (doorbell, motion and door relay). This notification URL needs to point to your Homey and each event will have its own notification URL. These look like below where you need to replace the IP with your Homey IP.

  • hansjehansje Member
    edited December 2017
    oeps, sent a wrong message
  • executed: http://192.168.1.34/api/app/com.doorbird/doorbell/1CCAE370E77C/

    response: {"status":200,"result":"Not authorised, incoming IP address (192.168.1.33) does not match DoorBird IP address (192.168.1.35) or MAC address of incoming request does not match DoorBird MAC address."}

    192.168.1.33 = my laptop
  • hansje said:
    executed: http://192.168.1.34/api/app/com.doorbird/doorbell/1CCAE370E77C/

    response: {"status":200,"result":"Not authorised, incoming IP address (192.168.1.33) does not match DoorBird IP address (192.168.1.35) or MAC address of incoming request does not match DoorBird MAC address."}

    192.168.1.33 = my laptop
    I never asked to access that URL in the browser, please read my previous message again. It does however potentially show the issue. According to this error message you have registered your DoorBird device under the IP address 192.168.1.35 later you suggest the IP of your DoorBird is 192.168.1.44. Did you perhaps change the IP of your DoorBird after adding it as device in Homey? If so, you also need to update your DoorBird device settings in Homey.
  • hansjehansje Member
    edited December 2017
    I did not know I had to set the url in the app, so I did.

    Next I saved it and entered this in the browser
    http://192.168.1.35/bha-api/notification.cgi?url=http://192.168.1.34/api/app/com.doorbird/doorbell/1CCAE370E77C/&event=doorbell&subscribe=1&relaxation=10

    Got a 400 Bad Request: The request had bad syntax or was inherently impossible to be satisfied.
    Typo?

    The IP's changed. Has to do with my ancient installation. I live in Spain and have to deal with an ancient adsl router. Every time the power drops (and that happens a lot), the dhcp ip table is lost and the devices don't always get their former ip addresses. That's why I did a factory reset and connected only my pc, the homey and the doorbird to exclude errors and to make sure the ip's are right. 
  • I never mentioned you had to set the URL in the DoorBird app. This functionality has been added with firmware 1.0.9 and the new DoorBird smartphone app but is not very well documented yet. I asked the DoorBird company about it.

    The syntax from your notification URL is correct. I just tested it myself again with my own DoorBird IP, Homey IP and DoorBird MAC address. Works fine for me. If this does not work for you something is going on with your DoorBird and I wont be able to help you any further as it's beyond my Homey app. One thing I can suggest is to reboot the DoorBird (either cut the power or use the restart option from the administration settings) and then try again. If it still not works I suggest you contact the DoorBird company about this.
  • Since a couple of weeks I have the problem that with each time someone rings the bell I get about 4 emails from homey with picture. I know for sure I only have 1 flow. 
    Is this a known problem?
  • OGS said:
    Since a couple of weeks I have the problem that with each time someone rings the bell I get about 4 emails from homey with picture. I know for sure I only have 1 flow. 
    Is this a known problem?
    That also seem to be caused by the latest changes related to firmware 1.0.9. It seems that users that have set the notifications through the api and updated their Doorbird (which is automatically) had these notifications copied to the http calls available in the administration area of the DoorBird smartphone app. Now both the "old" api notifications and the "new" http calls notifications are send to Homey. I have emailed DoorBird about this to get a better understanding of what they are going to change. At the moment it does not make a lot of sense as the functionality added by the http calls is incomplete.

    You can either disable the api notification through the settings area of my DoorBird app or change / remove the new HTTP calls (which or copied from the old api notifications) or it's schedule in the DoorBird smartphone app to avoid double notifications being send to Homey.
  • Phuturist said:
    OGS said:
    Since a couple of weeks I have the problem that with each time someone rings the bell I get about 4 emails from homey with picture. I know for sure I only have 1 flow. 
    Is this a known problem?
    That also seem to be caused by the latest changes related to firmware 1.0.9. It seems that users that have set the notifications through the api and updated their Doorbird (which is automatically) had these notifications copied to the http calls available in the administration area of the DoorBird smartphone app. Now both the "old" api notifications and the "new" http calls notifications are send to Homey. I have emailed DoorBird about this to get a better understanding of what they are going to change. At the moment it does not make a lot of sense as the functionality added by the http calls is incomplete.

    You can either disable the api notification through the settings area of my DoorBird app or change / remove the new HTTP calls (which or copied from the old api notifications) or it's schedule in the DoorBird smartphone app to avoid double notifications being send to Homey.
    I wish I had multiple notifications  :#
  • cautjecautje Member
    edited March 2018
    Hi Doorbird experts!
    I have an doorbird question, nog realy an Homey question i hope someone can help me.
    I bought a doorbird via Marktplaats, which is already used.
    I read that the digital passport can no longer be used.
    The doorbird does get an ip but there is no web page available.
    All ports 554 and 5000 are available.
    How can I install this doorbird?

    This is not working but i can ping the device.

    Just go to http://xxx/bha-api/view.html (where xxx is the current IP address of the Video Door Station in your LAN) with your favourite web browser and enjoy a new way of door communication. Alternatively log in at http://www.doorbird.com/checkonline and follow the html5 widget link. For the html5 widget to work in your browser window, your PC must be connected in the same Local Area Network (LAN) […] as the DoorBird IP Video Door Station. Enter the same user name and password that you are using to add the Video Door Station to the DoorBird iOS or Android App. 

    Thanks!
  • cautje said:
    Hi Doorbird experts!
    I have an doorbird question, nog realy an Homey question i hope someone can help me.
    I bought a doorbird via Marktplaats, which is already used.
    I read that the digital passport can no longer be used.
    The doorbird does get an ip but there is no web page available.
    All ports 554 and 5000 are available.
    How can I install this doorbird?

    This is not working but i can ping the device.

    Just go to http://xxx/bha-api/view.html (where xxx is the current IP address of the Video Door Station in your LAN) with your favourite web browser and enjoy a new way of door communication. Alternatively log in at http://www.doorbird.com/checkonline and follow the html5 widget link. For the html5 widget to work in your browser window, your PC must be connected in the same Local Area Network (LAN) […] as the DoorBird IP Video Door Station. Enter the same user name and password that you are using to add the Video Door Station to the DoorBird iOS or Android App. 

    Thanks!
    You need to install the DoorBird smartphone app and use the digital passport to register the device within the app. The digital passport should still work so I hope you received those details from the previous owner.
  • @Phuturist
    yep, got it. 
    But you can only use this login once.
    i wrote an email to doorbird for support  
    THX! 
  • cautje said:
    @Phuturist
    yep, got it. 
    But you can only use this login once.
    i wrote an email to doorbird for support  
    THX! 
    I often flash s new ROM on my phone and have to register my DoorBird again. Always works without any hassle. Not sure why it works for me then.
  • cautjecautje Member
    edited March 2018
    Yes i have the digital password.
    Afther entering it says:

  • In a miraculous way I got the Doorbird communicating with the Homey. After trying with different relaxation times both the doorbell as the action triggers the Homey now. Except the relaxation time itself. Pushing the button within 1 second triggers the Homey, despite the time set. The same is with the action sensor. While determing movents it triggers the function approx every 4 seconds. How to solve this?
  • hansje said:
    In a miraculous way I got the Doorbird communicating with the Homey. After trying with different relaxation times both the doorbell as the action triggers the Homey now. Except the relaxation time itself. Pushing the button within 1 second triggers the Homey, despite the time set. The same is with the action sensor. While determing movents it triggers the function approx every 4 seconds. How to solve this?
    I still need to rewrite the app and make it compatible with the latest API changes. Unfortunately the new API still isn't complete and stable but I hope to finish it in the next couple of weeks but I'm busy with other stuff. I don't think there is a relaxation time anymore. I might built this into the app because I don't know why they dropped this but for now you should handle this in your flows (use a count down for instance). The new API isn't an improvement at this point as far as I can tell.
  • PhuturistPhuturist Member
    edited April 2018

    Latest version - 2018-04-08 -- v2.2.0

    • UPDATE: rewritten some parts to be compatible with the new Doorbird API (DoorBird firmware 0110 and higher, read the app store description for more details)

    @hansje, this should fix your issues. Please read the instructions in the app store or the opening post.
  • Hi @Phuturist
    I stil cant connect, ip and login are ok.
    Can i do something else to check teh connection?
    THX!

  • cautje said:
    Hi @Phuturist
    I stil cant connect, ip and login are ok.
    Can i do something else to check teh connection?
    THX!

    Do you know your way around the command line? I could create a version that will spit out extra logging on the command line so you could run that and try to add your DoorBird and perhaps see more on what is going on.
  • That would be nice!
    Do you mean Windows commandline or homey commandline?
    Thx! 
  • cautje said:
    That would be nice!
    Do you mean Windows commandline or homey commandline?
    Thx! 
    Homey CLI tool. I'll see if I can fix this in the upcoming days.
  • PhuturistPhuturist Member
    edited April 2018
    cautje said:
    That would be nice!
    Do you mean Windows commandline or homey commandline?
    Thx! 
    Here you go: https://github.com/jghaanstra/com.doorbird/tree/debug

    Use 'athom app run' and try to pair your DoorBird. It should spit out extra info onto the console the should give more insights on what is going on.
  • Great!
    I wil dive into this.
    THX!!!
  • Hello,
    I had some issues to get my Doorbird talking to the com.doorbird app.
    Diving into the issue, I found the problem in the sourcecode for the app. 
    I created an issue in github for this (with a solution).

    Basically the handling of the MAC of the Doorbird in the app is incorrect.
    After solving this, communication between Doorbird and Homey works perfectly, flows are triggered,
    everything ok.

    Still very happy with this app. Thanks for all the hard work creating it :-)
This discussion has been closed.