more G-Labs products

Author Topic: Adding automation  (Read 889 times)

September 12, 2015, 06:32:34 PM
Read 889 times

domotica_user

  • *
  • Information
  • Newbie
  • Posts: 14
Hi all,

After adding my current hardware to Homegenie (and writing my first c# program) i now run into a requirement of mine: I would like to have automation "rules" to add "intelligence" to my appartment. E.g.:

- if the humidity is higher than x, switch on y
- if the temperature near the window below x degrees, increase the thermostate by 2 degrees

I cannot seem to find this. Surely this is possible, but how can i do this in HG?
Regards

September 12, 2015, 09:58:15 PM
Reply #1

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
I do this type of logic in my c# code.  not sure where the best place is. you could create a program just for your automation/rules. look at the security system module for how you can check for events happening, then perform some action.

September 12, 2015, 10:36:44 PM
Reply #2

domotica_user

  • *
  • Information
  • Newbie
  • Posts: 14
Thanks. I guess the best way of doing this is "autolearning" using wizard script. That now works for me.

September 13, 2015, 06:33:12 AM
Reply #3

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
IMO, wizard scripts are good for simple actions with little logic.  If you want to do anything advanced, you need to use some kind of scripting.  HG has several languages to choose from, but I think you will find the most examples from C#.