News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Timed and respond to event

Started by rperre, April 26, 2010, 05:18:20 AM

Previous topic - Next topic

rperre

Hello all,

Trying to accomplish the following. I have an in ground pool and setup some Zwave switches to turn on/off my pool pump and Polaris pump. The Polaris pump should never be running if the pool pump is off. The switches work great when i do this manually, now i would like to automate it.

With that said. I would like to create an event (or multiple) that turns on my pool pump at say 10:00. Than i would want to turn my Polaris Pump on 2 hours after the pool pump is on and turn it off 3 hours later. Than at 1900 at night i want the pool pump to turn off again.

The only thing i could find was to make 4 timed events to do the above, but i'm not feeling good about the system not checking if the pool pump is on.... before turning the Polaris pump on.

Is there a way to make a timed event in response to a device state?

Any suggestions?

Thank you,

Richard
My setup at: [url="http://wiki.linuxmce.com/index.php/User:Rperre"]http://wiki.linuxmce.com/index.php/User:Rperre[/url]

apagg

QuoteIs there a way to make a timed event in response to a device state?
I don't think this is possible at the moment (someone correct me if I am wrong)

That said you have a couple of options:

1. Create a Delayed event http://wiki.linuxmce.org/index.php/User:Apagg#Delayed_event that will turn on the pool pump and wait xx minutes before turning on the Polaris pump.

2. Use your setup whit 4 Timed Events and make the event that turns on the Polaris pump also turn on the Pool pump.

nite_man

You can create a one scenario for pool pump and Polaris Pump and add between them DCERouter command 'Delay'. In that case, the first command will be pool pump On, then delay, then Polaris Pump on then delay again, then Polaris Pump off etc.
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

rperre

Cool i'll try this, thank you.

Miraculously my pump came on at 10:00 this morning :)

Richard
My setup at: [url="http://wiki.linuxmce.com/index.php/User:Rperre"]http://wiki.linuxmce.com/index.php/User:Rperre[/url]

bongowongo


rperre

alright,

I first made an irrigation scenario turning my pumps on with delays in between.
I also made a timed event to run this scenario at a certain time each day.

First thing i noticed is that the scenario does not show up anywhere in the menu's.
Second it never got started with the timed event.

I'm trying the same thing now, but this time made it a climate scenario. this scenario does show up under climate. I'm waiting to test the timed event.

Anybody have any clue on why it didn't start my scenario?

BTW clicking the Test button does start my pool pump, so i think the scenario works fine. Question is, how do i stop a scenario from running while in the middle of it?

Richard
My setup at: [url="http://wiki.linuxmce.com/index.php/User:Rperre"]http://wiki.linuxmce.com/index.php/User:Rperre[/url]

apagg

could you post some screen shots from webadmin of your events?

rperre

My setup at: [url="http://wiki.linuxmce.com/index.php/User:Rperre"]http://wiki.linuxmce.com/index.php/User:Rperre[/url]

apagg

Your scenario and event looks nearly identical to the one I use, only difference I can see is that you have checked two rooms for alarm clock.

You could try putting all the commands directly into the timed event, that should work to.

rperre

actually today the pool pump came on, i'm suspecting the command is send but not received by the zwave switch sometimes. It showed as "ON" in lmce but it was actually off outside.

I am also thinking, because i'm working on the system and resetting stuff the whole time it messes up the scenarios ofcourse, i'll let it run it's course this weekend and see what happens.

If not satisfied i'm going to build a timed event and make sure i turn the pool pump on "again" when turning on the polaris pump.

Thanks

Richard
My setup at: [url="http://wiki.linuxmce.com/index.php/User:Rperre"]http://wiki.linuxmce.com/index.php/User:Rperre[/url]