Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register

Using Nighttime Flag
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Monday Jul 15th, 2019 11:26 am
   PM  Quote  Reply 
1st Post
darnold
Member
 

Joined: Thursday Feb 26th, 2009
Location: United Kingdom
Posts: 20
Status: 
Offline

  back to top

I have several Responses that use the NightTime flag to perform various tasks. For example:
If SecurityMode = AwayMode Then
    If NightTime <> 0 Then
        Do DynEXPrmtrOn ! Turn on Perimeter Lights
    End If
End If

However, the NightTime flag no longer appears to be working.  I am on a Comfort II running firmware 7.153 and UCM 7.110.
Do I need to define NightTIme as a flag?  I notice in the Sunrise/Sunset Time there are Night Time Properties.  Do I need to create/set the NightTime flag there or is it a global flag?



 Posted: Monday Jul 15th, 2019 12:04 pm
   PM  Quote  Reply 
2nd Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5498
Status: 
Offline

  back to top

Night time flag should work, and it does not need to assign a flag to itHowever it helps to assign a flag so you can check if it is Night time by testing the flag
Test the program by executing the Response after you check the Night flag



 Posted: Monday Jul 15th, 2019 12:21 pm
   PM  Quote  Reply 
3rd Post
darnold
Member
 

Joined: Thursday Feb 26th, 2009
Location: United Kingdom
Posts: 20
Status: 
Offline

  back to top

I'm not sure I follow you.  
The NightTime variable use to work and now it does not.  
I have included my config file

Attachment: CasaVistaLindav4_9.cclx (Downloaded 3 times)



 Posted: Monday Jul 15th, 2019 01:14 pm
   PM  Quote  Reply 
4th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5498
Status: 
Offline

  back to top

The file seems OK.

In order to find out why it does not seem to work, I suggested to map the Night time flag to a Comfort flag eg Flag 1.

Currently in your file there is no way to know if the Night time flag is set or not. If you map to a flag eg 1, then you can check the flag 1 status to know if you are really in Night time.

There are many reasons why it would seem not to work, and did before eg comfort time is not correct, the sunrise/sunset times are wrong or other conditions may play a part
Also note that the Night time flag does not work if you manually change the Comfort time to after sunset. The time must actually go past the sunset time to set the Night time flag.

So if you map to Flag 1, then check status of Flag 1 at this time (Comfort Registers check status box to see the state of the flags). if it is set that means the Night time flag is also set and vice versa.
Then Execute the Gate Entry Response (which is the one that checks the night flag),  and see if the Perimeter lights turn on









 Posted: Monday Jul 15th, 2019 03:19 pm
   PM  Quote  Reply 
5th Post
darnold
Member
 

Joined: Thursday Feb 26th, 2009
Location: United Kingdom
Posts: 20
Status: 
Offline

  back to top

Thanks, that makes sense.  

I may need to move this to a different thread but what I have now determined is that I no longer believe it is a problem with the NightTime flag, rather it is the Comfort to Dynalite gateway. 
The reason I did not suspect this is that I am able to control Comfort through Dynalite--i.e., commands sent from Dynalite go through the gateway and execute correctly on Comfort. 

However, I now believe that the UCM for some reason is not sending the Dynet commands to the DNG232.  The manual says that the D12 LED on the UCM should flash when a message is sent to Dynalite via Comfort.  No blinking occurs.

Anything else I can check or do before declaring the UCM has gone bad? 



 Posted: Tuesday Jul 16th, 2019 02:52 am
   PM  Quote  Reply 
6th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5498
Status: 
Offline

  back to top

This requires an upgrade to UCM 7.119 see http://comfortforums.com/view_topic.php?id=5034&forum_id=4&jump_to=24418#p24418



 Current time is 12:56 pm
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems