I have a set of curtains controlled by a Cbus Shutter Relay (L5501RBCP). I can control this by means of the two following Responses.
CloseCurtains - Cbus Off UCNBus 54 ! Close Curtains
OpenCurtains - Cbus On UCNBus 54 ! Open Curtains
These Responses operate the curtains if executed from the .cclx file or by means of Time Programs set up in the Scedule Section
I also set up a further Response to test the Sunset operation as follows
NightCurtainClos - If Night Time <> 0 Then
Do CloseCurtains ! Close Curtains
This Response can be executed from the .cclx file at times after the local Sunset time as in the Schedule Section but will not close the curtains automatically.
Is there something fundamental I am doing wrongly
In order to have a Response execute, it has to be triggered by an event
You have a Time Program to execute Open and Close Curtain this so these will work
Your response to check if Night Time Close curtains also need to be triggered by an event.
If that were not the case then all Responses would run by themselves eg output 1 On, Output 1 off, output 2 On, Output 2 off etc
If your intention is to close the curtain at Sunset then make a Sunset Response in Misc Events - Close CurtainThere are Sunrise and Sunset Responses in Misc Events that triiger at Sunrise and Sunset
As it is triggered by the Sunset Response there is no need to check if Night Time