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

Netatmo welcome -> stop surveillance


Question

Posted

Dear all,

 

If someone comes home, I'm using the "person is at home" function with fibaro. But I'd like to stop surveillance as soon as someone is at home. Is there an option for that? In the netatmo app, you can stop the surveillance but I can't see an option with the API.


Thank you for your help.

 

Dani

8 answers to this question

Recommended Posts

  • 0
Posted

Yes, it is possible. I switch on the Netatmo Welcome only if my alarm system is on.

via the following call. Works very good.

Please login or register to see this code.

 

Please login or register to see this code.

 

BR,

oliver

  • 0
  • Inquirer
  • Posted

    @obendig that sounds great, thank you for the hint. Could you please send me the whole LUA script you us for that? 

     

    I mean it should be like that, isn't it?

    Please login or register to see this code.

    Thank you!


    Dan

    • 0
    Posted

    Here is the Script that I'm using. I have changed an exisiting script from someone else to me needs.

    I'm using the a Global Variable with the Name "NetatmoPower" as a Trigger. My Alarm Scene puts it NetatmoPower = 1 to switch on the Netatmo and 0 to switch off.

     

    Appologies for the German comments in the code. :-)

    You need to add your credentials and API information in the oAuth Function section.

     

    local client_id = 'YOURID'
    local client_secret = 'YOUR-CLIENT-SECRET'
    local username = 'YOUR USERNAME'
    local password = 'YOUR PASSWORD'

     

    Please login or register to see this code.

     

    • Thanks 1
    • 0
  • Inquirer
  • Posted (edited)

    @obendig that works perfect, thank you very much! And because I'm also German speaking, it's absolutely no issue. :-) Thanks again!

    Edited by Danielos
    • 0
  • Inquirer
  • Posted

    @obendig Oh, still a little problem. I created 2 scenes to switch the status. First script:

     

    Please login or register to see this code.

     

    Second Script:

     

    Please login or register to see this code.

     

    The idea is to set the variable to 0 or 1 and afterwards, start your scene you posted. Strange is, that it works sometimes perfect and very often, the Variable "NetatmoPower" isn't changed and so nothing happened. :-(

     

    What could that be? Or do you have a better / more reliable way to manage that?

     

    Thank you for your help.

     

    Dan

     

    • 0
    Posted

    If I look at your trigger scene, I guess you trigger the scene multiple times. 

     

    If you create a trigger scene that changes the variable Netatmo Power to 1 or 0, then you do not need to have the variable as trigger for the trigger scene :-)

    And you don't need to start the scene from your trigger scene via fibaro:startScene, if you keep my original scene. It gets automatically started by variable change of NetatmoPower. The change of the variable is the trigger of my scene.

     

    The following should work if you want to add a trigger scene that you start manually.

     

    Please login or register to see this code.

     

     

    • 0
  • Inquirer
  • Posted

    @obendig: That works brillant, thanks!!!

     

    • 0
    Posted

    @

    Please login or register to see this link.

     

    Hi

     

    I'm a new user on HC2.

     

    I want to integrate my welcome cam. I created a new scene from your script on my HC2.

     

    Alsa I created a a global variable with 2 values (0 and 1).

     

    But on debug I receive always:

     

    Kamera Status: off
    Netatmo Welcome wird angeschaltet
    Variable steht nicht auf ON, deshalb wird Kammera nicht angeschaltet

     

     

    Were I wrong?

     

     

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