Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

RING DOORBELL by RING.COM


Question

Posted (edited)

before:

create two global vars, please

"RingToken" - used by the script internally

 

"Doorbell" - for user actions.

0 - nothing

1 - motion detected

2 - ding-dong

 

happy using!

 

 

 

 

 

Edited by 10der
  • Like 2
  • Thanks 1

Recommended Posts

  • 0
Posted

Well Done and Many Thanks

On 2/6/2019 at 8:15 PM, 10der said:

function authenticate(accessToken, nextFunction)

 

 There are several of us who have been searching for a solution. May I ask where you were able to gain the information that populates this section or is it the same for every user?

 

It seemed to work briefly but now I get 

 

[DEBUG] 09:44:40: Connecting...
[DEBUG] 09:44:40: CONNECT STATUS: 401
[DEBUG] 09:44:40: ERR"

 

Any ideas?

 

Cheers

 

  • 0
  • Inquirer
  • Posted

    1st - its common solution

    2nd as I can understand (form python forum where I found python code for ring doorbel) 

     

    Please login or register to see this code.

    it's wrong. we should use 10 or 15-sec delay. 

    • 0
  • Inquirer
  • Posted
    9 minutes ago, PepsiMac said:

    DEBUG] 09:44:40: Connecting...
    [DEBUG] 09:44:40: CONNECT STATUS: 401
    [DEBUG] 09:44:40: ERR"

     

    btw my code doesn't have this lines. lol

    • 0
    Posted

     

    Thanks for the fast feedback.

     

    What I attached was the debug results I was getting when I ran the scene which I thought may be coming from the data input in these sections which seem tailed to an individual

    Please login or register to see this code.

    Please login or register to see this code.

     

    • 0
  • Inquirer
  • Posted (edited)
    3 minutes ago, PepsiMac said:

    postData["device[os]"] = "android"

    no 

    it's a common header for ring api calling 

    ring api doesn't check it at all.

    Actually, never mind. 

    Edited by 10der
    • 0
    Posted

     

    4 minutes ago, 10der said:

    it's a common header for ring api calling 

     

    OK Thanks. I will take a closer look and see if I can work out what is causing the scene to fail for me.

    • 0
  • Inquirer
  • Posted (edited)
    2 minutes ago, PepsiMac said:

     

     

    OK Thanks. I will take a closer look and see if I can work out what is causing the scene to fail for me.

    please change timeout!

    as I know (now) ring ban (401) accessing if accessing less than 10-15 secs

    I have updated 1st post with source

    Edited by 10der
    • 0
    Posted

    There is also a bug in line 68 or 69.

    function parameter should be "err" instead of "error" or the variable name should be "error" instead of "err.

     

    • 0
  • Inquirer
  • Posted

    fixed

    v2 in header

    • 0
    Posted

    Hi @10der, please be advised that I downloaded the v2 file but got "Operation could not be performed successfully and was interrupted. Error text: Malformed vfib file".

     

    The HC2 in question is running the 4.530 os.

    • 0
  • Inquirer
  • Posted
    21 minutes ago, PepsiMac said:

    Malformed vfib file".

    WUT?

     

    scene!!! 

    • 0
    Posted

    Sorry, will switch on brain....

    OK, cut and paster as a scene with password etc updated.

     

     

    [DEBUG] 17:52:08: FIBARO ring doorbell checker started...
    [DEBUG] 17:52:08: 2019-02-18 17:52:08.620508 [ fatal] I/O error: End of file

     

    Could it be because I use the original Ring Doorbell?

    • 0
    Posted
    5 minutes ago, PepsiMac said:

    Sorry, will switch on brain....

    OK, cut and paster as a scene with password etc updated.

     

     

    [DEBUG] 17:52:08: FIBARO ring doorbell checker started...
    [DEBUG] 17:52:08: 2019-02-18 17:52:08.620508 [ fatal] I/O error: End of file

     

    Could it be because I use the original Ring Doorbell?

    im getting same error and i also have the origional ring doorbell from 2016

    • 0
  • Inquirer
  • Posted (edited)
    8 minutes ago, morpheus75 said:

    ] 17:52:08: 2019-02-18 17:52:08.620508 [ fatal] I/O error: End of file

    it's Fibaro @T.Konopka error since 2017y.

    support answered me officially what SSL supported partially. 

     

    just create a new scene and run it

     

    Please login or register to see this image.

     

     

    if you wonder 

    my doorbell

     

    0l65QcOOt9.png

     

     

     

    Edited by 10der
    • 0
    Posted

    same problem when i created a new scene.

    i do remember it working a while ago when i tested it last time

    • 0
  • Inquirer
  • Posted

    hey guys

     

    can you set

    local debug = true

     

    thank you!

    • 0
    Posted

    Please login or register to see this image.

    /monthly_2019_02/image.png.288e7ccf3520aa8e82dc6cfcc8f87078.png" alt="image.png.288e7ccf3520aa8e82dc6cfcc8f87078.png" />

    • 0
  • Inquirer
  • Posted

    aaha!!

     

    uncomment 1st line

     

    fibaro:setGlobal("RingToken", "")

     

    please!

    @morpheus75

    • 0
    Posted
    1 hour ago, 10der said:

    fibaro:setGlobal("RingToken", "")

     

    Mine working now, think that solved the problem, uncommenting that which was on line 193 for me. 

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...