Using Fing as a new way to detect smartphone presence

Plugins that users have built. NOTE: plugins that were developed for Indigo versions older than 2022.1 will have to be updated to work with Indigo 2022.1 (Python 3 - see this blog post for details). If the plugin listed here is not in the Plugin Store (which will show updated plugins) then you will need to ask on the appropriate thread below if it has been updated and where you get get the update.
jalves
Posts: 783
Joined: Sun Jun 16, 2013 11:35 am

Re: Using Fing as a new way to detect smartphone presence

Post by jalves »

Interestingly (or not) my Smartphone Radar configuration dialog is different. Since I've got a TimeCapsule, SPR is configured to look at it directly, not a log file.
Running Indigo 2024.2.1 on a 24" iMac M4), OS X 26.0
Jeff
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

you have to " select router: ==> Fing log"
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

the newly posted V 3.1.1 is now a regular plugin.

Additional features:

1. your can setup triggers in Trigger /Type:fingscan event
- new IP Device on network
- IP number of a device has changed
They are regular indigo triggers.
within the trigger action you should check the appropriate variables to see which device has been changed. See examples in read me.
You still can continue to set a trigger directly on the variables ( variable changed, contains ;up; ;down; etc).

2. in menue Plugin/fingscan you can
- save data to a file ... good idea to do this once when you have good and complete data
- restore from file
- and sort devices with increasing IP numbers.

Compared to the applescript version you now MUST enter the password in menu plugins/fingscan/configure.
without that it will not work properly as FING needs your password to run properly.
The password is stored encrypted in the keychain for re-use after reboot etc.

you still can modify the variables .. any text after column "Status" is freely editable and will be kept.

Karl
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by matt (support) »

Karl -- This is terrific. I'm thrilled to see some of your AppleScript solutions now coming to life as plugins. :-)
Image
BassMint
Posts: 105
Joined: Tue Dec 24, 2013 12:53 pm

Re: Using Fing as a new way to detect smartphone presence

Post by BassMint »

kw123 wrote:the newly posted V 3.1.1 is now a regular plugin.

Karl
How does one install the plugin over the older version?
Where is the 3.1.1 version? Only see 3.1.0 in this thread.

thx...
evansgo
Posts: 223
Joined: Fri Nov 29, 2013 10:53 am

Re: Using Fing as a new way to detect smartphone presence

Post by evansgo »

I have a generic request and I've put it in here as it's partly to do with Fingscan (Thanks Karl!)

I am using a combination of fingscan and geohopper to modify variables and would love to hear how other people are using this sort of thing as I kind of have it working but feel that there is a much better way of doing it....

Currently I have fingscan modifying a variable GHome when my iPhone is home and DebHome when my wife is at home. I also have geohopper externally setting these variables via applescript when we get near home.
But then it gets a bit messy, as I am looking for a way to trigger another variable isHome if either of these variables change. isHome being my generic "someone is home" variable, that a load of other actions rely on.
Also I am looking to set isHome to away if we both leave (and visitors, so I need to easily add to it). Now I can do this with separate triggers, but I'm wondering if I can do this in a script - please note this is as much a learning exercise for me as a practical one as I have several other instances where I would like to do something similar.

Thanks all....
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

you need another level: here is how I would do this in general logic terms

if Ipdevicexx changes to ";up;" then set anyonehome = yes
if Ipdeviceyy changes to ";up;" then set anyonehome = yes
if Ipdevicezz changes to ";up;" then set anyonehome = yes
if geodevicestatus changes to "here" then set anyonehome = yes

and the otherway around
4 triggers:
if ipdevicexx changes to ";down;" and all other devices contain =";down;" then set anyonehome = no

in total 8 triggers and one extra variable

in indigo one trigger would look like:
trigger xx-up
- if variable ipDevicexx has any change
- condition: ipDevicexx contains ";up;"
- action: set variable anyonehome to "yes"

and same for yy zz and

trigegr xx-down
- if variable ipDevicexx has any change
- condition: ipDevicexx contains ";down;"
- condition: ipDeviceyy contains ";down;"
- condition: ipDevicezz contains ";down;"
- condition: geodevicestatus contains "away"
- action: set variable anyone home to "yes"


trigegr yy-down
- if variable ipDeviceyy has any change
- condition: ipDeviceyy contains ";down;"
- condition: ipDevicexx contains ";down;"
- condition: ipDevicezz contains ";down;"
- condition: geodevicestatus contains "away"
- action: set variable anyone home to "yes"


and the same for trigger yy-down
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

here is the 3.1.1 version: http://www.perceptiveautomation.com/fil ... words=fing

and it should just install over any version. I would DELETE
1. finscan.app in ../Documents/fing
2. schedule relauchfinscan

Karl

ps . the recent posted version 3.1.1 has a small problem : error message when adding new device which does not prevent it from running, fixes itself within a minute in the next "loop looking for new data"

will fix soon.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

evansgo
Posts: 223
Joined: Fri Nov 29, 2013 10:53 am

Re: Using Fing as a new way to detect smartphone presence

Post by evansgo »

Thank you, I'll give it a go later. I think that I'm over analysing it as I was trying to do it all in as few triggers as possible with a bunch of OR logic...
kw123 wrote:you need another level: here is how I would do this in general logic terms
evansgo
Posts: 223
Joined: Fri Nov 29, 2013 10:53 am

Re: Using Fing as a new way to detect smartphone presence

Post by evansgo »

I have a problem with the nick-names changing randomly. I have sorted them by IP recently, which I've not done before so not sure if that has anything to do with it. But I have about 40 items listed and three or four now have duplicate nicknames along with the hardware tag also being incorrect. My iPhone for instance is now shown as a Nest smoke detector! But the actual functionality does still seem to be correct.

For instance, in the screenshot the Sonos is 10.2, but the 10.1 entry is actually an apple device, I have changed them back and it reverts again after a while.
Attachments
Screen Shot 2014-01-26 at 10.17.25.png
Screen Shot 2014-01-26 at 10.17.25.png (28.82 KiB) Viewed 5282 times
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

will check it out

could you give me some more info when this happens.. e.g. adding a device, deleting a device ..
evansgo
Posts: 223
Joined: Fri Nov 29, 2013 10:53 am

Re: Using Fing as a new way to detect smartphone presence

Post by evansgo »

I don't think that I did anything different, but it has only just started to happen within the last week maybe.
I'll set them back to what they should be and see what happens. Could it be anything to do with the load / save functions, I've only just started to try them out.....

On second thoughts, I did do some pruning of old expired IP's in the last week, it make be linked to that....
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Using Fing as a new way to detect smartphone presence

Post by kw123 »

https://www.dropbox.com/s/7pcogn7xxfuko ... n3-1-3.zip

the code had one "tab" missing.. hope this fixes it. ..
and added some more debugging info .. and some other logic "improvements" hope they don't break anything. I have really tensed things now.


after you (evansgo) test it, I will post on indigo site.

thanks for debugging

Karl
midd
Posts: 374
Joined: Sun Apr 18, 2010 3:00 pm

Re: Using Fing as a new way to detect smartphone presence

Post by midd »

Thanks karl.

I'm using your plugin in conjunction with Matt and Jay's Advanced thermostat adjustment to set my temps when someone is or isn't home.
M4 Mac mini.
Post Reply

Return to “User Plugins”