HomeGenie Forum
General Category => Troubleshooting and Support => Topic started by: petediscrete on September 17, 2015, 04:51:06 PM
-
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.
-
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.
-
Bkenobi that's exactly what I'm after. Any further detail you have on your solution would be much appreciated.
-
The latest version is located here:
http://www.homegenie.it/forum/index.php?topic=241.msg3922#msg3922 (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).
-
Thanks for that. I'll check that out and report back.
-
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.