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

Stand Alone Presence Phone Checker


Question

Posted

I am wondering how this is setup 

Please login or register to see this link.

 

I've tried using google translate to read the site but it's difficult because for some reason it won't let me login.

 

I downloaded the virtual device, but I can't see how to use it.

 

Can someone please provide step by step instructions on installation?

 

thanks in advance.

Recommended Posts

  • 0
Posted

I am wondering how this is setup 

Please login or register to see this link.

 

I've tried using google translate to read the site but it's difficult because for some reason it won't let me login.

 

I downloaded the virtual device, but I can't see how to use it.

 

Can someone please provide step by step instructions on installation?

 

thanks in advance.

 

Could you attach the VD, I can try and help...

  • 0
  • Inquirer
  • Posted

    Please see attachments

     

    thanks

    Please login or register to see this link.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    • 0
    Posted

    First you have to register and after this there is a section to say hello.

    then the moderators will approve and you good to go on the site and download and reply.

     

    the VD:

    in the general tab on IP adres >>  here you put the MAC adres of your phone.. no capitals

     

    ad a global Predefined variables with 0 and 1

    the name of the global is found in button 1

    Please login or register to see this code.

    debug of button 1 looks like this

    Please login or register to see this code.

    al credits to domotique / sebcbien

    • 0
  • Inquirer
  • Posted

    Thanks for the reply D-Vine.

     

    I imported the VD yesterday, set the mac address but didn't set a global variable.

     

    Where do I see the debug information?

     

    I take it variable 0 and 1 means away or home?

     

    I already have a global variable set for home, away or holiday.

     

    I wanted to use this VD to check if me or my wife's phones were home. If they were the variable would be set to home. If neither detect it would be set to away.

     

    How would I do this?

     

    thanks

    • 0
    Posted

    see the debug...

    device has been found  ... gloabl set to   ...    

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

     

    you already give the answer yourself:

    It's putting it to logic.

     

    If neither of us are home   read this as global_phone x = 0 and global_phone y = 0 then set global presence = away

    if phone x OR phone y is 1 (so one of them is 1)  then presence = Home.

     

    you can do it with simple block scene to test it.

    • 0
  • Inquirer
  • Posted

    Hi

     

    I seen your debug and can follow it. I wasn't sure where to find the debug information on my HC2.

     

    What would the block scene be?

     

    Being new to this I didn't realise I needed to create a block scene :-s I just thought putting the VD was enough... sorry for my newbie questions.

    • 0
    Posted

    you can select with a block scene global variables. 

    global variable phone_x - 0

    and global variable phone_y - 0

    then global presence = away.

     

    suggest you play with block scene first..  make scene's lot of them with different scenario's to get the feeling with it.

    like motion sensor is breached then light x set on. 

    motion sensor is safe 120sec. then light off.

     

    motion sensor is breached and global xxxx = xx then light set value xx

    and so on..

     

    you can trigger scene's with conditions depending on globals like this one. And lot's of other things.

     

    Please login or register to see this link.

     

     

    Please login or register to see this link.

     

    google is your friend

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
  • Inquirer
  • Posted

    I have a couple of block scenes already but they're very basic.

     

    I have 1 to turn my front and back lights on at sunset and off again an sunrise.

     

    I also have a few others turning lights on at a certain time and off again, these are just basic block scenes.

    • 0
    Posted

    ah I see, well sunrise and sunset are sort of global variable also, but a variable that changes with time.

    And in scene's you can make them like I told with only globals also.

    1 scene to put a global in a value.. other scene that is a trigger when a global is set..      

    With all these combinations you can make lot's of things.

     

    But it's good to start with simple basics, then expand a block scene with more conditions..      every time little step forwards and before you know your hole house is automatic 

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    • 0
    Posted

    i added a little feature to this code from line 140 on main button to write previous status to a separate variable before your main variable is set. The can be useful for example if you appear in range as you drive home and you want to open the garage door

    Please login or register to see this code.

    • 0
    Guest FredrikKarlsson
    Posted

    Hi,

    Ok, I feel a bit stupid for asking this, but how do I put the icons in place so that it is changed once the global variable is changed?

    There are sonfigurations options like this:
     

    Please login or register to see this code.

    But how do I find out which id:s the icons I uploaded into the virtual device have?

    • 0
  • Inquirer
  • Posted

    Ok I have the VD working. If I set the global variable to 0 and wait a minute or so it is changed back to 1 when it detects my MAC. It also does this for my wife's phone.

     

    I created a block scene called "Set home" that says "Phone_XX1 = 1 or Phone_XX2 = 1 then PresentState = Home"

     

    I created a second block scene called "Set Away" that says "Phone_XX1 = 0 or Phone_XX2 = 0 then PresentState = Away"

     

    Is this the correct block scene?

     

     

    • 0
    Posted

    Hi,

    Ok, I feel a bit stupid for asking this, but how do I put the icons in place so that it is changed once the global variable is changed?

    There are sonfigurations options like this:

     

    Please login or register to see this code.

    But how do I find out which id:s the icons I uploaded into the virtual device have?

    youripadress\api\icons\

     

    There you can find the id´s of the icons you uploaded (latest numbers)

    • 0
    Posted

    To froogle :

     

    It should be rather 

     

     "Set home" that says "Phone_XX1 = 1 or Phone_XX2 = 1 then PresentState = Home"

     

    and 

     

     "Set Away" that says "Phone_XX1 = 0 and Phone_XX2 = 0 then PresentState = Away"

    • 0
  • Inquirer
  • Posted

    To froogle :

     

    It should be rather 

     

     "Set home" that says "Phone_XX1 = 1 or Phone_XX2 = 1 then PresentState = Home"

     

    and 

     

     "Set Away" that says "Phone_XX1 = 0 and Phone_XX2 = 0 then PresentState = Away"

     

    Ahh so not 2 scenes, just 1?

    • 0
    Posted

    To froogle :

     

    It should be rather 

     

     "Set home" that says "Phone_XX1 = 1 or Phone_XX2 = 1 then PresentState = Home"

     

    and 

     

     "Set Away" that says "Phone_XX1 = 0 and Phone_XX2 = 0 then PresentState = Away"

     

    2 scenes..   mistake was in the or - and  

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
  • Inquirer
  • Posted

    Ok got it now, thanks 

    Please login or register to see this image.

    /emoticons/default_icon_biggrin.gif" alt=":-D" />

    • 0
    Posted

    Hi,

     

    basically this works. However, I noticed the problem that - if an iPhone goes into sleep mode - pinging the MAC address seems not to work, i.e. the device is not found. Seems I have to revert to the (unreliable) GPS version of presence checking

    Please login or register to see this image.

    /emoticons/default_icon_sad.gif" alt=":-(" />

     

    Cheers

     

    Alfons

    • 0
  • Inquirer
  • Posted

    There is some information on the original thread about enabling push notifications or installing sonus app to fix that.

     

    I'm using on android and it seems to be working.

     

    I can't however figure out how to get the icons working. I've spent the last 1 hour trying to figure it out but can't seem to find the ID of the images. I've checked /ip/api/icons/ and can't see where the icon would be.

    • 0
    Posted

    use HC2 toolkit 1.2.03  (search here on forum to download)  to get raw data, there you see icon id's

    [ select VD - right click - get API raw data ]

     
    I don't know if icon change is working..  but icon ID's you can get them this way
     
    (first you have upload a icon then the toolkit to get id in VD )
     

    little example of the toolkit

    Please login or register to see this code.

    or soloution of lambik

     

    You can see the ID of the icon by going to the add icon page (with your browser), right-click on the desired icon, choose save as. A name will be preset like User320, then 320 is the id of the Icon.

     

    I use Firefox where you can use, on the icon page, press <ctrl>+<i> (page info). In the new  window choose tab media. There you can scroll through all icons/pictures/media with showing there links. Probably there are similar options for other browsers.

     

     

    edit:

     

    the sonos app or some kind of app that opens a port is not for this solution. But for one with ping a device, this need a open port on the mobile.

     

    This solution is MAC checking only needed.

    Android no problem Iphone yes.

     

    domotique have something about it.. can't test it or know if this works.

     

    Please login or register to see this link.

     

    It's all about the same prevent getting your phone wifi into sleep modes..  always active that's the clue.

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