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

Oh Dear ... ran for a while and then "[DEBUG] 20:32:15: 2019-02-18 20:32:15.136868 [ fatal] I/O error: End of file" when a motion occurred.

  • 0
Posted

Same here. Ran for 15 mins

Then same error.

  • 0
  • Inquirer
  • Posted

    Fibaro can't catch 401 in https mode and throw an exception. :(

     

    it's not good but we can decrease 

    from local tokenRefreshTime = 60 * 50 to  local tokenRefreshTime = 60 * 15

    • 0
    Posted

    It's a pitty that " [ fatal] I/O error: End of file" still occures and the script stops.

    Even if there is no motion. Tried different tokenRefreshTime values.

     

     

    • 0
  • Inquirer
  • Posted

    actually ring,com API sent to client 401 as signal what we need to re-login / get a new token 

    unfortunately, FIBARO https core can't handle this and throw  [ fatal] I/O error: End of file" ]

     

     

    • 0
  • Inquirer
  • Posted

    btw. big facepalm here also, what I hope on xpcall

    what should handle any exception here.

    • 0
    Posted

    I'm having issues with my

    Please login or register to see this link.

    can anyone help?

    • 0
  • Inquirer
  • Posted

    Ring is deep trouble issue by default ;) 

    I curse the day when I bought ring.

    • 0
    Posted

    I had troubles with authentication, got a credentials error. The credentials were correct. Password was the issue (special characters). I changed the oAuth function like this:

     

    Please login or register to see this spoiler.

    Maybe you can include it in your code

    • 0
  • Inquirer
  • Posted

    ring change with again. if honestly I am stop using ring. ring - it was my Big mistake.

    • 0
    Posted

    Hi,

    I bought new ring v3

    and i found your Lua script to connect my new ring to HC2

    But i have an error

     

    Please login or register to see this code.

     

    Can you help me to solve it?

    Thank

     

    • 0
  • Inquirer
  • Posted

    ring now works with OTP token.

    LUA script not udapted for it. alas

    @[email protected]please remove your email from nick... spammers aren't sleeping.

    • 0
    Posted

    @10der

    Yes, you're right, thank for your advice

    but i can't put an alias.

    My account is created and link with my @fibaro account, and i didn't found, how modified my "display name"

     

     

     

    • 0
  • Inquirer
  • Posted
    • 0
    Posted (edited)
    On 5/3/2020 at 4:25 PM, 10der said:

     

    Is there a fix for this as I am getting the same fatal unexpected error

    Edited by red1leader61
    • 0
    Posted
    On 9/27/2020 at 3:49 PM, red1leader61 said:

    Is there a fix for this as I am getting the same fatal unexpected error

    +1

    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...