HomeGenie Forum

Automation Program Plugins and Wizard Scripting => APP Contributions => Topic started by: gbremmer on November 08, 2015, 11:25:19 AM

Title: Ping me at home - See who's home
Post by: gbremmer on November 08, 2015, 11:25:19 AM
I would like to upgrade the Ping me at home to see who's home and optionally greet the person that enters the house (add this later-on).

I've added a new variable: Persons. This string will contain names of the persons that are at home. The old variables i've kept the same, so everything should still work. 

Only error i've got is that i get the message: "Object reference not set to an instance of an object". Can somebody check what i've done wrong.

Additionally, I would like to create an widget that will display the names on the home page of Homegenie.
Title: Re: Ping me at home - See who's home
Post by: KaZe on November 08, 2015, 10:37:20 PM
Hi!

Which HG version? It's works for me with v 1.1 r500.
Title: Re: Ping me at home - See who's home
Post by: gbremmer on November 09, 2015, 10:36:21 AM
Thank you, I also did an upgrade and now it seems to work.
Who can help me with the widget?
Title: Re: Ping me at home - See who's home
Post by: KaZe on November 10, 2015, 11:33:31 AM
Hi!

You inspired me.  ::)

I think, this is, what you want.
I creat a Ping Me at Home Extended program, which show, who's at home. And I add the widget, where you can see this informations. I modify the Status widget to show the informations well. the modification is: I move the big INFO icon to the header. You must copy this files (status widget.zip) to your homegenie folder. (..\HomeGenie\html\pages\control\widgets\homegenie\generic\). Replace the existing files.
Then import the program, and config it. IP addresses + Names...and enjoy.  ;D

Edit:
I found a bug in the code. I repaired it.

Title: Re: Ping me at home - See who's home
Post by: KaZe on November 10, 2015, 07:30:48 PM
I upgraded the code, because the status don't refresh, if the status changes, just if I refresh the page.
Title: Re: Ping me at home - See who's home
Post by: gbremmer on November 11, 2015, 10:33:55 AM
Hi Kazu,

Great work! I'm on holiday this week so I can't wait until I'm at home to test it.
Title: Re: Ping me at home - See who's home
Post by: KaZe on November 11, 2015, 08:58:52 PM
Hi!

I modify the program code. So no need widget change. It use Sensor widget no Status widget. You can set 4 devices to ping. The widget only show the devices, what is can ping. And you can see the persons history in Android Plus app! ;)
Title: Re: Ping me at home - See who's home
Post by: nolio on November 11, 2015, 09:23:13 PM
Hi KaZe,

I install your program and i like it :).
Did you use pingathome to disarm alarm ?
If yes, how to do you do to arm without disarming  with pingathome ?

Bye
Title: Re: Ping me at home - See who's home
Post by: KaZe on November 11, 2015, 10:03:50 PM
Hi KaZe,

I install your program and i like it :).
Did you use pingathome to disarm alarm ?
If yes, how to do you do to arm without disarming  with pingathome ?

Bye

The simple way to aauto arm your security is the new program (wizard script). I attach the config. You must set up the trigger code to PingMeatHomeExtended program PingMe parameter, and set up the program code to security program control.On paramter. The disarm is the opposite.
Title: Re: Ping me at home - See who's home
Post by: nolio on November 11, 2015, 10:14:24 PM
Ok that's ok for me, but I didn't think about that.
2 problems :
Title: Re: Ping me at home - See who's home
Post by: nolio on November 11, 2015, 10:27:54 PM
To disarm, I think the solution to wait x minutes (1 minute or more) after arm to take care of pingmeathome result.
Title: Re: Ping me at home - See who's home
Post by: KaZe on November 11, 2015, 11:54:36 PM
To disarm, I think the solution to wait x minutes (1 minute or more) after arm to take care of pingmeathome result.

Hi!

I think this programs help you.
1. is a virtual switch program. It create 1 virtual switch. (you can modify to create more then 1 virtual switches)
2. is an auto arm/disarm program. The program run only, when the virtual switch is on.

So, if you don't want to arm or disarm automatically the security system, just turn off the virtual switch. BTW, it arm automatically the AWAY mode.

cheers.
Title: Re: Ping me at home - See who's home
Post by: mellery on January 11, 2016, 03:37:21 AM
Thanks for this!  Found a tiny typo in v5 on line 5

string param4 = "Sensor." + Program.Option("PingMe.Name3").Value;

should be PingMe.Name4
Title: Re: Ping me at home - See who's home
Post by: KaZe on January 11, 2016, 09:44:15 AM
Yes, that was a typo. Thx for your warning. I use only 2 person, so I don't see it.
I corrected.
Title: Re: Ping me at home - See who's home
Post by: skl77 on November 08, 2016, 09:11:43 AM
Does anyone Need the ping to home with Host as variable in case of not static IP's?
Title: Re: Ping me at home - See who's home
Post by: pim555 on January 06, 2017, 03:57:06 PM
I would be interested in a ping me at home modification that does not rely on the absolute IP address as I typically use dynamic IP addresses for mobile devices at home. Not sure how to do this?
Title: Re: Ping me at home - See who's home
Post by: pinie_pinie on February 22, 2017, 10:21:45 PM
Hello,
A great program from you.
"Ping me at home" works. The phone is found.
Unfortunately, I do not get the ad in the Widgets.
Do you have a hint for me?
Many Thanks!

Thoralf
Title: Re: Ping me at home - See who's home
Post by: KaZe on February 22, 2017, 10:31:42 PM
Hello,
A great program from you.
"Ping me at home" works. The phone is found.
Unfortunately, I do not get the ad in the Widgets.
Do you have a hint for me?
Many Thanks!

Thoralf


Hi!

Unfortunately the new widget (v525) don't show the unique sensor parameters, so you must add parameters manually to the widget.
http://www.homegenie.it/forum/index.php?topic=2140.msg11468#msg11468 (http://www.homegenie.it/forum/index.php?topic=2140.msg11468#msg11468)
Title: Re: Ping me at home - See who's home
Post by: pinie_pinie on February 23, 2017, 08:04:10 AM
Hello,
This is a logical explanation. Unfortunately, I do not understand where I need to adjust the widget (which line needs to be changed)
Can you please send me the customized sensor widget?
Many Thanks.

Thoralf
Title: Re: Ping me at home - See who's home
Post by: KaZe on February 23, 2017, 12:18:17 PM
Hello,
This is a logical explanation. Unfortunately, I do not understand where I need to adjust the widget (which line needs to be changed)
Can you please send me the customized sensor widget?
Many Thanks.

Thoralf

This lines must be modify. I can'4 send the customized sensor, because it's unigue for me.
Title: Re: Ping me at home - See who's home
Post by: raptorjr on February 23, 2017, 04:38:52 PM
I don't know anything about this. But could it be possible to somewhere else set the parameter context to something that isn't unknown? Why is the value unknown? Feels like this is a solution to the symptom and not the disease.
Title: Re: Ping me at home - See who's home
Post by: claton on March 30, 2017, 06:27:03 PM
Hello,

I'm having a problem with pingmeathome extended.  The program crashes with the error, "Network is unreachable" sometimes within a few minutes to as long as perhaps a day.

Raspberry Pi, jesse lite, HG version 1.1 beta r525 direct ethernet connection.

Can someone help with this problem?

Also, if we could identify devices by MAC number, dynamic ip would work.

PS. Suggestion - I use this to check if my Chromecast device is present.  This gives me an indication if the TV is on or off.  Very handy.