scene 'leave home', switch only when specific conditions are met

Hi,

I want to make a scene ‘leave home’ and ‘return home’ which i can use to switch devices when i leave or come home.

Creating a scene and switch the devices is not the problem, my problem is switching devices only when certain conditions are met.

For example i use scene ‘leave home’
This should switch:

  • thermostat to ‘night’ (no problem)
  • arm motion sensor (no problem)
  • when lights are ‘on’ and it is night dim them to 20% BUT when lights are off or it is daylight stay off, so do NOT dim them to 20% (here is my problem)

Same problem for ‘coming home’
I want:

  • set thermostat to ‘comfort’ (no problem)
  • disarm motion sensor (no problem)
  • when it is evening/night turn lights on to my regular (time) scene which runs normally on the time i now come home BUT during daytime NO lights on ofcourse. (here is my problem)

The problem is switching the lights to a setting i prefer and switch them on home coming to the default time scene what should run normally when i did not switched it off.

Anyone any advise if this can be done and how?

Should be fairly easy to do with PLEG. If you look in the program logic section, there is a new and brilliant ‘how to’ sticky thread

[url=http://forum.micasaverde.com/index.php/board,48.0.html]http://forum.micasaverde.com/index.php/board,48.0.html[/url]

Thx.

Tired it but i do really not understand that plugin, read the manual twice but it is still jibberisch for me

Just post what you’re trying to do in the program Logic Plugin sub forum and people will help you get it going. Once you’ve dealt with a few scenarios using PLEG will become much easier.

[quote=“B3rt, post:3, topic:178584”]Thx.

Tired it but i do really not understand that plugin, read the manual twice but it is still jibberisch for me[/quote]

Also check out the excellent tutorial that RexBeckett put together: http://forum.micasaverde.com/index.php/topic,21603.0.html

and these 2 screencasts that I created:
http://screencast.com/t/fGHSHl6TW
http://screencast.com/t/DokeQWjl

@ih8gates

Nice Video tutorials - have you done any more ?
It would be great to have some of these as stickys on certain board (if not already) ?

These are the only 2. Richard pointed out that I could do some of the condition logic more-efficiently in vid 2. I’m thinking of reading through RexBeckett’s PDF instructs so that I’m more confident, then maybe start over…