more G-Labs products

Author Topic: Motion Sensor  (Read 1844 times)

February 17, 2015, 01:43:05 PM
Read 1844 times

Maximo

  • ***
  • Information
  • Full Member
  • Posts: 84
Hello Everyone,

I'm new to HG but not to Home Automation, I've used various software applications over the past few years. As HG looks to be very stable and user friendly I thought I'd give it a go. So I've installed it on my Raspberry PI and Aeon Labs Z Stick.

I pretty much have the basics in place, all my devices are detected and controllable as expected.

The issue I have is no doubt very simple to resolve but as I'm new here please forgive me.

In my Garage I have an Aeon Labs Multi Sensor and an X10 din switch. What I'd like to do is activate my X10 switch when the Multi Sensor detects movement. How would I go about this in HG?

Thanks

Garry

February 17, 2015, 04:03:07 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
The simplest thing to do is to use a Wizard script.  You'd set the trigger as your motion sensor and have the command be to activate the X10 command desired.  If you want more control, you can build a script with one of the programming languages instead.  There's lots of examples of using C#, but the others will work just as well depending on what you prefer to code in.

February 17, 2015, 04:44:29 PM
Reply #2

Maximo

  • ***
  • Information
  • Full Member
  • Posts: 84
Thanks for your reply.

I'd rather not code at all if I can help it, coding is not one of my stronger points. I'll take a look at triggers and see if I can get something going.

Cheers,

Garry

February 17, 2015, 06:50:10 PM
Reply #3

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Wizard scripts aren't coding.  You simply select an event that you want to use as a trigger (module change for instance) and then an action(s) (turn on garage switch).  If you want to do something simple, you can set 2 of these for the on and off state of motion for your sensor and then turn the device on/off accordingly.

If you want to have a bit more control, I have a suite of scripts that I've put together that use one or more motion sensors to control one or more light or chime.  It's probably far more than what you need, so I'd look at a simple Wizard script for now.

February 18, 2015, 07:51:44 AM
Reply #4

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
On my side, I use the built in script. Name "smartlight" in the light group in automation part.

February 18, 2015, 03:50:59 PM
Reply #5

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
That script works great as long as you have a luminance sensor or don't plan on having it work with day/night.  The Smart Light script was the basis for my code, so functionally they work the same.