Author Topic: Timed and respond to event  (Read 2025 times)

rperre

  • Guru
  • ****
  • Posts: 264
    • View Profile
Timed and respond to event
« on: April 26, 2010, 05:18:20 am »
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

apagg

  • Veteran
  • ***
  • Posts: 60
    • View Profile
Re: Timed and respond to event
« Reply #1 on: April 26, 2010, 10:10:57 am »
Quote
Is 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

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Timed and respond to event
« Reply #2 on: April 26, 2010, 10:41:48 am »
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: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

rperre

  • Guru
  • ****
  • Posts: 264
    • View Profile
Re: Timed and respond to event
« Reply #3 on: April 26, 2010, 05:10:20 pm »
Cool i'll try this, thank you.

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

Richard

bongowongo

  • wants to work for LinuxMCE
  • **
  • Posts: 826
    • View Profile
Re: Timed and respond to event
« Reply #4 on: April 26, 2010, 05:58:56 pm »
Mine too

rperre

  • Guru
  • ****
  • Posts: 264
    • View Profile
Re: Timed and respond to event
« Reply #5 on: April 28, 2010, 04:17:54 pm »
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

apagg

  • Veteran
  • ***
  • Posts: 60
    • View Profile
Re: Timed and respond to event
« Reply #6 on: April 28, 2010, 08:56:45 pm »
could you post some screen shots from webadmin of your events?

rperre

  • Guru
  • ****
  • Posts: 264
    • View Profile
Re: Timed and respond to event
« Reply #7 on: April 29, 2010, 04:01:27 am »
Scenario


Event


Richard

apagg

  • Veteran
  • ***
  • Posts: 60
    • View Profile
Re: Timed and respond to event
« Reply #8 on: April 29, 2010, 05:35:05 pm »
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

  • Guru
  • ****
  • Posts: 264
    • View Profile
Re: Timed and respond to event
« Reply #9 on: April 30, 2010, 05:32:13 pm »
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