HomeGenie Forum
General Category => Troubleshooting and Support => Topic started by: Maximo on February 17, 2015, 01:43:05 PM
-
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
-
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.
-
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
-
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.
-
On my side, I use the built in script. Name "smartlight" in the light group in automation part.
-
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.