Luup script for Thermostat Scene - newbie

Hi! I have read and read as many posts as I can find on THermostat scenes and am stumped. I have a Trane Thermostat. I have a scene that sets the temp at 10pm and leave it for 10 hours, then sets it to another temp. That seems to be the extent to which the dashboard on the MIos/Vera will let you set temps. I am wondering if I could write a luup script to allow
10pm temp to 76
11pm tempt to 75
8 am temp to 77

?? Anyplace I can go to find how to write this?

Lastly - is there a way to run separate times for M-F and Weekends in the same scene?

I programmed the internal scheudule in the thermostat but it will not work?!?! Neither will switching between NORMAL and ESM. I think its either Vera or internal - it won’t work with both?

Thanks for any an all help

you don’t need Luup scripts to do any of the above… Create more than one scene, each triggered by schedule to do what you want for example:

Scene A to set the AC to 76 at 10 PM workdays.
Scene B to set the AC to 75 at 11 PM workdays.
… and so on.

[quote=“capjay, post:2, topic:176486”]you don’t need Luup scripts to do any of the above… Create more than one scene, each triggered by schedule to do what you want for example:

Scene A to set the AC to 76 at 10 PM workdays.
Scene B to set the AC to 75 at 11 PM workdays.
… and so on.[/quote]

Thx.
Would I have to select “RUN” on each scene every day or would the timer in each automatically run the scene? Also-I have one scene the sets everything when we leave the house-I assume when I " RUN" that scene it will over-ride the multiple HVAC scenes at home?

No. “Run” is meant to force the scene to run now regardless of schedule or triggers. Vera will automatically run the right scene when the time (and triggers) are right.

Your away scene will not override the others. You’ll need a way to tell Vera that you are “away” and that certain scenes should not run when you are away. One way to do this is to use the “virtual switch” plugin. A good example can be found here: http://forum.micasaverde.com/index.php/topic,9897.msg66879.html#msg66879

[quote=“Dtutwiler, post:1, topic:176486”]Hi! I have read and read as many posts as I can find on THermostat scenes and am stumped. I have a Trane Thermostat. I have a scene that sets the temp at 10pm and leave it for 10 hours, then sets it to another temp. That seems to be the extent to which the dashboard on the MIos/Vera will let you set temps. I am wondering if I could write a luup script to allow
10pm temp to 76
11pm tempt to 75
8 am temp to 77

?? Anyplace I can go to find how to write this?

Lastly - is there a way to run separate times for M-F and Weekends in the same scene?

I programmed the internal scheudule in the thermostat but it will not work?!?! Neither will switching between NORMAL and ESM. I think its either Vera or internal - it won’t work with both?

Thanks for any an all help[/quote]

I have the same thermostat.

For the winter heating season I created separate scenes to raise heat and lower heat
Within the scenes add timers

For the summer as long as we are not away the AC remains at 72. If away I set the AC at 78

No. “Run” is meant to force the scene to run now regardless of schedule or triggers. Vera will automatically run the right scene when the time (and triggers) are right.

Your away scene will not override the others. You’ll need a way to tell Vera that you are “away” and that certain scenes should not run when you are away. One way to do this is to use the “virtual switch” plugin. A good example can be found here: http://forum.micasaverde.com/index.php/topic,9897.msg66879.html#msg66879[/quote]

AHA! Thanks for the info!

No. “Run” is meant to force the scene to run now regardless of schedule or triggers. Vera will automatically run the right scene when the time (and triggers) are right.

Your away scene will not override the others. You’ll need a way to tell Vera that you are “away” and that certain scenes should not run when you are away. One way to do this is to use the “virtual switch” plugin. A good example can be found here: http://forum.micasaverde.com/index.php/topic,9897.msg66879.html#msg66879[/quote]

Ok I found two Virtual switch plug ins. When I DL them to my dashboard they look like a toggle switch…no buttons. Now how would I go about configuring the Virtual Switch to turn the HVAC scene on an off. Then how would I point to the switch in an “AWAY” scene?

Click Save/Reload and then refresh your browser page and you should get some buttons turn up.

You can get a scene to trigger from the VirtualSwitch by selecting it with Automation, New scene, TRIGGERS, Add trigger, Please select device, A device is turned on or off, etc.

I was working with mine today. So far I have:
Sunrise, set to 76 degrees
Sunset, set to 74 degrees

Only during the day, if…
Overcast/rain, set to 77 degrees
Cool day <90 , set to 78 degrees ( I’m in Texas btw)

that is 4 scenes total:

Sunrise and sunset are schedules in the scene.
Weather is trigger based from the weather plugin.

Only during the day is a simple Luup code that I added to the weather scenes so night time is consistent.

Still messing with daytime tweaks… Which are based on when I actually want to change the temps.

This was all point-click to set up. The only lua code was for daytime. Weather plugin was used to get weather info.

Hope that helps.