more G-Labs products

Author Topic: HG alarm system and x10 MS13a movement sensors  (Read 1411 times)

September 17, 2015, 04:51:06 PM
Read 1411 times

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
Just wondering if anyone is using the alarm system program in conjunction with x10 MS13 movement sensors. If so would anyone have a C# program available written for this purpose that I could use and tweak to suit my own setup.

My basic aim is to have the x10 MS13a sensors, which have a house code of A1, detect movement, report it to the alarm system system program which will in turn alert me by email to this fact. In fact, any solution would be more than welcome.

Now that I'm getting a little more comfortable with HG, albeit very slowly, I'm starting to realise the the power and expandability of this great little program. Very few other applications out there offer such a range of integrated features and even fewer under Linux.

September 17, 2015, 04:57:45 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I'm not sure if anything is posted for that, but the commands that you might be able to use to get that working can be pulled from either the built in "Smart Lights" APP or my "Advanced Smart Lights" APP.  The one that's built in is designed to work with motion sensors that report a motion type event.  I use MS16A motion sensors (similar to yours) and so I modified the code slightly to work better with those.

September 17, 2015, 07:51:58 PM
Reply #2

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
Bkenobi that's exactly what I'm after. Any further detail you have on your solution would be much appreciated.

September 17, 2015, 08:07:36 PM
Reply #3

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
The latest version is located here:
http://www.homegenie.it/forum/index.php?topic=241.msg3922#msg3922

Basically just look at the WhenParameterIsChanging logic and it should be pretty self explanatory what you need to check for.  If you look at the built in version, the logic uses a different value in the same logic location looking at motion sensor values rather than module values.  Also, in my code I have it set up so that you can specify a motion sensor by base name and allow for multiple actual modules (e.g., front door motion 1, front door motion 2, etc).

September 17, 2015, 10:29:08 PM
Reply #4

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
Thanks for that. I'll check that out and report back.

September 21, 2015, 06:08:23 PM
Reply #5

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
Bkenobi, I downloaded your advanced smart lights hgx file you directed me to.Thanks for that.Look very impressive but it's a little advanced for me at the moment. I'll revisit it when i become more profecient in C# programming.

Basically what I've done now is to edit the switch widget. I've assigned it the x10 A1 address which is the address of the MS13A x10 movement sensor I have installed. This widget is down as "run when armed" on the security system. Any movement detected on the MS13A issues an x10 command to turn on A1 which effectively is the trigger to send me an email notification once the "on" command is issued.

I've managed to achieve this without any programming at all. I know that in order to develop HG any further I'll need to get my hands dirty programming wise. I'd appreciate any help you or anyone else on the forum can give me incorporating the attached Raspberry PI CSI camera module into the alarm system.