Author Topic: 1 scene,1device,2 schedules?  (Read 1786 times)

Offline Cor

  • Hero Member
  • *****
  • Posts: 1226
  • Karma: +8/-4
1 scene,1device,2 schedules?
« on: December 09, 2013, 11:00:33 am »
hello all,

A simple question , but not sure if a scene allows this.

A have a thermostate, for example I want it at 21 degrees C at 7:30 and 15 degrees at 23:00.
For the moment I have set up 2 scenes for that ,a schedule @ 7:30 for 21 degrees and a schedule for 15 degrees at 23:00 , works well , no issues.

When I am not at home ( for work I am always several days away) i need to cancel these scenes. that means 2 scenes to untick the scene.

Can I somehow use 1 scene , I only see a delay I can use, but for a specific time I don't see how I can set a new temperature.


Options I can try:
-1 scene: start at 7:30  (21 degrees)  and than a delay for 15 and a half hours  ( set at 15 degrees)
-something with a virtual switch
-Luup code
-PLEG??  but pffff, so difficult , I cannot get the logic in my head  :-\

But maybe there is a very easy solution.



Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: 1 scene,1device,2 schedules?
« Reply #1 on: December 09, 2013, 11:14:52 am »
PLEG is intimidating ... but it's almost as simple as your written statement of the problem.

In PLEG you would create two timer Schedules.
TempAt730         Monday-Sunday  at 7:30 AM
TempAt2300       Monday-Sunday at 23:00

Now some conditions. Which are simple ... each only references a schedule.

SetTempMorning   TempAt730
SetTempEvening    TempAt2300

Add actions to the above two Conditions.
(Sames as specifying commands to run in a Scene, but here we have two conditions, so the equivalent of two scenese)

If this PLEG is only used for this purpose ... Bypass the PLEG when you are gone.
If you already have a Virtual Switch to indicate that you are home ... then add it as a PLEG input:
HOME   Virtual Switch Indicates I am home

Then change the conditions to:
SetTempMorning   HOME AND TempAt730
SetTempEvening    HOME AND TempAt2300


Offline Cor

  • Hero Member
  • *****
  • Posts: 1226
  • Karma: +8/-4
Re: 1 scene,1device,2 schedules?
« Reply #2 on: December 09, 2013, 04:03:16 pm »
I was so afraid PLEG is the only sensible solution  ;)

I have PLEG installed and still struggeling with my gate opener ( threat somewhere here as well)... Good idea to use the virtual switch , I can use this as well for my gate issue ....

Thanks
I will give it a try,
Cor

Offline Cor

  • Hero Member
  • *****
  • Posts: 1226
  • Karma: +8/-4
Re: 1 scene,1device,2 schedules?
« Reply #3 on: December 10, 2013, 10:09:10 am »
I tried to insert it all,Hopefully it works.

I installed a third virtual switch, does it look OK like this ? Is the condition OK , for "Automatic_set_temp AND Temp_on"?

The idea:
When virtual switch = on >> in the morning set temp 20 degrees,in the evening set temp 15 degrees
when virtual switch =off >> do nothing


Thanks,
Cor

Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: 1 scene,1device,2 schedules?
« Reply #4 on: December 10, 2013, 11:58:11 am »
Looks Good!

Offline Cor

  • Hero Member
  • *****
  • Posts: 1226
  • Karma: +8/-4
Re: 1 scene,1device,2 schedules?
« Reply #5 on: December 10, 2013, 01:28:02 pm »
Thanks,

With this thread I got my gate ( see the other thread) working . If this PLEG or the heating system works I will now in the morning ... will it be  freezing in my living room , or a nice temperature? :-)


Thanks for the help,
Cor

Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: 1 scene,1device,2 schedules?
« Reply #6 on: December 10, 2013, 01:47:17 pm »
I should be  able to tell tomorrow by the tone of your comments tomorrow ;)

Offline Cor

  • Hero Member
  • *****
  • Posts: 1226
  • Karma: +8/-4
Re: 1 scene,1device,2 schedules?
« Reply #7 on: December 11, 2013, 08:22:01 am »
Hmmmmm cold  :-[

It didn't work.  But I just see I made a mistake and switched the morning and evening arround.

Tonight a second try ;-)

Cor
 

Offline Cor

  • Hero Member
  • *****
  • Posts: 1226
  • Karma: +8/-4
Re: 1 scene,1device,2 schedules?
« Reply #8 on: December 11, 2013, 03:14:28 pm »
It seems to be working fine now  :-)

I just saw the thermostate changing to 15 degrees for the evening :-)

great !!

Thanks a lot,
Cor