![]() |
|
Day of the Week - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Products (https://www.comfortforums.com/forum-3.html) +--- Forum: Questions on Using Comfort (https://www.comfortforums.com/forum-159.html) +--- Thread: Day of the Week (/thread-2598.html) Pages:
1
2
|
- lwillerton - 11-15-2011 Hi All, I am setting up different times for lamps to come on and off during the evening and just wanted to check that day 1 = Monday day 2 = Tyesday etc I basically want to have a different times depending on the day for the lights to come on each night. At the moment I am using timers but have realised I can just build a response using Do command. This will remove the need to take up timers. Cheers Lee - ident - 11-15-2011 Yes, Day 1 is monday - ident - 11-15-2011 Sorry which DAY are you refering to ? if you mean the statement If Day .. it means day of month there is another condition If Day of Week which starts with Monday = 1 - lwillerton - 11-15-2011 Hi Ident This is what I have done and triggered under misc events sunset. Just adding to this as my lights don\'t seem to be working after the change. Previously I was using a response triggered by sunset to turn my lights on at night, I then set a few timed events to turn the lights off, different times for different days. This seems a bit messy so thought I could do a resonate to cover both the on and off in one go, again started by the sunset mics event. This has been active for a couple of days using the response detailed below, but none of my light have come on. I need to check the timing but I think in principle this should be working can you spot anything I have done wrong. Cheers Lee Cheers Lee - lwillerton - 11-19-2011 Hi Ident, I have put my lights on off back to the previous way I did it, but this does not seem efficiant. Can you advice on the best way? All I want to do is have lights coming on and off after sunset (might add a lux sensor later) so that it gives the impression someone is in. Guess a bit similar to vacation mode. I might change this long term and only trigger this if in away mode as I do find it a bit of a problem at night if I have gone to bed early and the bedside light comes on. The problem I have is we do a lot of caring for our parents and we don\'t have a set routeen so the house can sometimes be in darkness for days....this is one of the main reasons for buying the system. I had a program called e-Homeautomation doing it before but if I can achieve this (which I am sure I can) using comfort alone it makes sense. Also if I am using the sunset trigger and we the time changes for daylight saving how does the system manage that? atomically or do I have to program something? This happened whilst I was away and I never checked the time to see what it was set at before I uploaded a change. Sorry not checked the fourm for the answer. Cheers Lee - ident - 11-19-2011 Your error is a classic one with the use of Timers When you do a Timer action, you start a Timer with a value and set a Response to activate when the timer expires. You can consider a timer as an object with a time register and a Response. This timer register decrements every second and runs the Respone at the end In your Response, you have an action Do KitchenLampOn after 180 seconds using KitSunsetLamp timer Later in the same Response you have Do KitchenLampOFF after 240 seconds using KitSunsetLamp timer You have used the SAME timer after starting the timer in an earlier action. This means that the 2nd action will load the timer with a new value and a new Response Hence the 1st timer and Response does not get a chance to finish Fix this in one of two ways Use 2 different timers for the ON and OFF light actions or use the following Do KitchenLampTemp after 180 seconds using KitSunsetLamp timer In KitchenLampTemp Response = Do KitchenLampOFF after 60 seconds using KitSunsetLamp timer This second option conserves timers. You can use the same timer again if the timer has ended There is a tutorial on Timers at http://www.comfortforums.com/forum83/1680.html When Daylight Saving changes, the time automatically changes. The Sunset and Sunrise times are adjusted accordingly. Hence there is no need to do any additional programming to handle daylight saving. Comfort takes care of it for you See Tutorial on how sunset and sunrise times work with Daylight saving http://www.comfortforums.com/forum92/1004.html - lwillerton - 11-22-2011 Hi Ident, Got this now and have changed all the time. I basically thought that each do after time response followed on from the next one and not that they where running in parallel. Anyway to expand on this I have set the timers to work between 4pm and 11:30ish which is fine for now, however I would like to run this response for my lights all year round. The problem is if I do a response now it could be 7 or 8 hours after sunset (sunset 3:50pm bedtime 11:30), however in the summer it might only be 1 or 2 hours (sunset 8:30 bedtime 11:30). Therefore I was thinking that this might work month = 1 or 12 and if day = 2 or 4 do z-wave on after 7200 seconds month = 2 or 11 and if day = 2 or 4 do z-wave on after 300 seconds In my mind it would be better if I could drive this down to week of the year as the daylight increases steeply in the summer months. In the case I would substitute the month = to iweek = ...could not find that option though. I know this is a lot of programming in the first place but once done it will give a complete security solution all year round without having to keep going on the the box to reduce / increase response delays. Also Is it possible to do a copy of a group of code in a response as this would help build a large set of response code that only changes in one or two places eg A If night <> 0 Do x after x seconds Do y after y seconds Do z after z seconds Copy of A If night = 0 Do x after x seconds Do y after y seconds Do z after z seconds Fundamentally iin my mind f a light is on in a house when it\'s dark that is one big security deterrent, unfortunately that reduces if the light comes on at the same time every day. You only have to watch home alone to see what I mean. Any other ideas welcome. Cheers Lee - ident - 11-22-2011 Why dont you use Time Programs if you want roughly the same time each day and do your conditions adjustment? You can export and import Responses or Scenarios to reuse certain programming, see http://www.comfortforums.com/view_topic.php?id=2185&forum_id=92 - Ingo - 11-22-2011 Can\'t you use the \'Sunset\' variable? This will change the ON time every day but not by much. What I do on Cbus is to use \'Sunset\' time and then add a random number from 1-15 so that every day the time is different. I don\'t know if that\'s possible with Comfort. I also have different scenarios when Armed or Disarmed. Ingo - lwillerton - 11-22-2011 Hi Ingo, Thanks for the response it has made me think a little more about what I am trying to do and basically the only was is to use the sunset trigger to start the process. However, I have no real option other than to use set times to turn things off. I agree that I should treat differently if the system is armed / disarmed so will put my efforts in to that. Thanks Lee |