Jump to content
Guides for the Forum Read more... ×
Poradniki na Forum Read more... ×
  • 0
froogle

Stand Alone Presence Phone Checker

Question

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.

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0
  • Inquirer
  • 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.

    Share this post


    Link to post
    Share on other sites
    • 0

    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

    Share this post


    Link to post
    Share on other sites
    • 0
  • Inquirer
  • 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

    Share this post


    Link to post
    Share on other sites
    • 0

    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/wink@2x.png 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.

    Share this post


    Link to post
    Share on other sites
    • 0
  • Inquirer
  • 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.

    Share this post


    Link to post
    Share on other sites
    • 0

    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/wink@2x.png 2x" width="20" height="20" />

    Share this post


    Link to post
    Share on other sites
    • 0
  • Inquirer
  • 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.

    Share this post


    Link to post
    Share on other sites
    • 0

    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=";-)" />

    Share this post


    Link to post
    Share on other sites
    • 0

    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.

    Share this post


    Link to post
    Share on other sites
    • 0

    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?

    Share this post


    Link to post
    Share on other sites
    • 0
  • Inquirer
  • 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?

     

     

    Share this post


    Link to post
    Share on other sites
    • 0

    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)

    Share this post


    Link to post
    Share on other sites
    • 0

    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"

    Share this post


    Link to post
    Share on other sites
    • 0
  • Inquirer
  • 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?

    Share this post


    Link to post
    Share on other sites
    • 0

    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/wink@2x.png 2x" width="20" height="20" />

    Share this post


    Link to post
    Share on other sites
    • 0
  • Inquirer
  • Ok got it now, thanks 

    Please login or register to see this image.

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

    Share this post


    Link to post
    Share on other sites
    • 0

    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

    Share this post


    Link to post
    Share on other sites
    • 0
  • Inquirer
  • 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.

    Share this post


    Link to post
    Share on other sites
    • 0

    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.

    Share this post


    Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

    ×