Posted: Monday Sep 3rd, 2012 08:08 am |
|
1st Post |
Dash 8
Member
Joined: | Monday Aug 27th, 2012 |
Location: | |
Posts: | 7 |
Status: |
Offline
|
back to top
|
Hello
I have managed to program my alarm so far that the bathroom lights go on when you enter the bathroom. The PIR in the bathroom sends command to cbus. My problem is I can not get this to work at night time only.
I have done the following so far.
I have st the sunrise and sunset times according to my country.
At the moment the on response for the zone PIR looks as follow:
Cbus on CBUS 11 ( puts light on when entering bathroom)
Do CBus 1 after 180 seconds (Puts lights off after 180 seconds)
This works fine but as soon as I add the night time the weels fall off.
If Night Time = 0 Then
Cbus on CBUS 11
Do CBus 1 after 180 seconds
End if
Now it does not work. I set the PC time to night to simulate night conditions and send it to the comfort so he thinks it is night.
Anny suggestions. I can always wire a Day/night switch into a spare zone, but there should be an easier way.
Thanks
|
Posted: Monday Sep 3rd, 2012 11:27 am |
|
2nd Post |
cleaner
Member
Joined: | Monday Oct 3rd, 2011 |
Location: | China |
Posts: | 23 |
Status: |
Offline
|
back to top
|
"If Night Time = 0 "
means NOT Night Time
"If Night Time <> 0 " means Night Time
|
Posted: Tuesday Sep 4th, 2012 05:50 am |
|
3rd Post |
Dash 8
Member
Joined: | Monday Aug 27th, 2012 |
Location: | |
Posts: | 7 |
Status: |
Offline
|
back to top
|
Thanks for the reply. I have tried "If Night Time <> 0 " , forgot to mention it in my mail, but it still does not work.
|
Posted: Tuesday Sep 4th, 2012 07:34 am |
|
4th Post |
Ingo
UCM Pi Users
Joined: | Sunday Jan 21st, 2007 |
Location: | South Africa |
Posts: | 560 |
Status: |
Offline
|
back to top
|
There might be another way of doing things but I have two responses, one called Sunrise and one called Sunset. Inside these I Set and Clear a Flag called NightTime.
You can verify if it works by using Comfigurator and selecting the Flag and then check the Status checkbox to see if the flag status is what you expect.
There might also be a minimum firmware version required, just check the firmware history if you aren't running the latest.
Ingo
|
Posted: Tuesday Sep 4th, 2012 07:53 am |
|
5th Post |
slychiu
Administrator
Joined: | Saturday Apr 29th, 2006 |
Location: | Singapore |
Posts: | 5495 |
Status: |
Offline
|
back to top
|
The method described by Ingo should work, but the built in Night Time Flag automatically sets Night Time based on Sunrise and sunset times
Can you send the cclx file so that we can check to support@cytech.biz
|
Posted: Tuesday Sep 4th, 2012 08:09 am |
|
6th Post |
Dash 8
Member
Joined: | Monday Aug 27th, 2012 |
Location: | |
Posts: | 7 |
Status: |
Offline
|
back to top
|
Thanks for the reply guys, will send the file to support now.
regards
|
Posted: Tuesday Sep 4th, 2012 11:58 am |
|
7th Post |
ident
Administrator
Joined: | Wednesday Aug 9th, 2006 |
Location: | Singapore |
Posts: | 3493 |
Status: |
Offline
|
back to top
|
There is nothing wrong with the response.
Your firmware is shown as Ultra 5.027?
Can you verify what the firmware version is? Do Transfer > System Information
The Night Flag was only implemented in firmware 5.180
If your firmware is less than 5.100, it can only be upgraded by buying a MPU01 plug in module. This will have the lagtest Firmware version 6 which can be upgraded using Comfigurator and UCM
|
Posted: Tuesday Sep 4th, 2012 12:39 pm |
|
8th Post |
Dash 8
Member
Joined: | Monday Aug 27th, 2012 |
Location: | |
Posts: | 7 |
Status: |
Offline
|
back to top
|
I can confirm that I have the firmware version 5.027 as you mentioned.
Ok now this make sense. Is there any other solution I can use except this nightime flag? I would not like to wire an Day/night switch into my alarm if necessary.
I would not mind upgrading firmware module but shipping to South Africa is normally very expensive.
Is there a sunrise/sunset flag available that I can use?
regards
|
Posted: Tuesday Sep 4th, 2012 12:47 pm |
|
9th Post |
ident
Administrator
Joined: | Wednesday Aug 9th, 2006 |
Location: | Singapore |
Posts: | 3493 |
Status: |
Offline
|
back to top
|
Sunrise/sunset times do not work for that old firmware
You will have to use Time Programs to set and clear the Night flag based on fixed times of day but modified by month. That means you need your own logic to set the sunrise and sunset times
|
Posted: Tuesday Sep 4th, 2012 12:50 pm |
|
10th Post |
Dash 8
Member
Joined: | Monday Aug 27th, 2012 |
Location: | |
Posts: | 7 |
Status: |
Offline
|
back to top
|
Ok thanks very much
|
|