more G-Labs products

Author Topic: Ping me at home - See who's home  (Read 5598 times)

November 08, 2015, 11:25:19 AM
Read 5598 times

gbremmer

  • *
  • Information
  • Newbie
  • Posts: 23
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.

November 08, 2015, 10:37:20 PM
Reply #1

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Hi!

Which HG version? It's works for me with v 1.1 r500.

November 09, 2015, 10:36:21 AM
Reply #2

gbremmer

  • *
  • Information
  • Newbie
  • Posts: 23
Thank you, I also did an upgrade and now it seems to work.
Who can help me with the widget?

November 10, 2015, 11:33:31 AM
Reply #3

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
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.

« Last Edit: November 10, 2015, 07:29:20 PM by KaZe »

November 10, 2015, 07:30:48 PM
Reply #4

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
I upgraded the code, because the status don't refresh, if the status changes, just if I refresh the page.

November 11, 2015, 10:33:55 AM
Reply #5

gbremmer

  • *
  • Information
  • Newbie
  • Posts: 23
Hi Kazu,

Great work! I'm on holiday this week so I can't wait until I'm at home to test it.

November 11, 2015, 08:58:52 PM
Reply #6

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
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! ;)

November 11, 2015, 09:23:13 PM
Reply #7

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
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

November 11, 2015, 10:03:50 PM
Reply #8

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
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.

November 11, 2015, 10:14:24 PM
Reply #9

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Ok that's ok for me, but I didn't think about that.
2 problems :
  • arm: too risky for me because if all the devices are off or shutdown, or...  I don't want to arm at all
  • disarm: in case you arm successfully, but your phone is still on the WiFi, it will disarm but I don't want to...

November 11, 2015, 10:27:54 PM
Reply #10

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
To disarm, I think the solution to wait x minutes (1 minute or more) after arm to take care of pingmeathome result.

November 11, 2015, 11:54:36 PM
Reply #11

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
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.

January 11, 2016, 03:37:21 AM
Reply #12

mellery

  • *
  • Information
  • Newbie
  • Posts: 6
Thanks for this!  Found a tiny typo in v5 on line 5

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

should be PingMe.Name4

January 11, 2016, 09:44:15 AM
Reply #13

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Yes, that was a typo. Thx for your warning. I use only 2 person, so I don't see it.
I corrected.

November 08, 2016, 09:11:43 AM
Reply #14

skl77

  • *
  • Information
  • Newbie
  • Posts: 12
Does anyone Need the ping to home with Host as variable in case of not static IP's?