Time sensitive light switching

193 views
Skip to first unread message

MartinB

unread,
Dec 6, 2023, 2:58:42 AM12/6/23
to Loxone English
Dear,

It feels like I have a noob question but nevertheless would appreciate your suggestions very much.

The case is: I would like to switch on a light at 19.30 but only when it is dark outside (no daylight, pulse at dusk?). It does not need to be accurate, I simply want to prevent the light switches on during spring/summer.

Then I would like these lights to switch off at 22.30. Basically only when this scene is on, I would like it to switch off. Any other scene should not change status. So when this "evening" scene is on, it should switch off. In case an e.g. "focus" scene is (manually switched) on, it should remain on.

All suggestions are much appreciated.

Martin

Duncan

unread,
Dec 6, 2023, 5:41:54 AM12/6/23
to Loxone English
there are many ways of doing this eg using pulses and AND blocks and comparisons on the current status (M) of the lighting controller.

alternatively you can use a status block which is effectively lots of IF then combinations
in my example 
the I1 of the status is the scheduler being on
the I2 of the status is the current mood output of the lights
the status text is the number of the mood you want to turn on, in this case 1 and 0 (off)
the status value is run through a change detector (combination of memory flag with its delay set to 1 and a comparator - you can use any number its just to detect changes
any change in status value pushes the new mood via the analog memory to the mood input of the lighting controller, this way you cant get any mixing of moods
if the mood has been changed eg the room is in use and another light mood chosen, the lights will not be turned on or off

timed lighting.jpg

Jonathan Dixon

unread,
Dec 6, 2023, 7:08:36 AM12/6/23
to Duncan, Loxone English
A simple way to do this is with the Pulse at Dusk feeding a schedule block, with the "require activation" tick box set, and then the schedule enables a "Presence" input on the lighting block connected to the required mode.
But note  this will NOT activate at all if dusk falls before 19.30. That sounds like it's exactly the behaviour you want: only in summer will lights only come on at dusk. If you want them to turn on year round, but only at whichever is later of [dusk, 19.30] then more complex logic is needed such as that Duncan outlined. (or I'd probably do it with some gates to determine the activation condition for this same schedule block)

Screenshot 2023-12-06 111900.png
Screenshot 2023-12-06 111808.png
Screenshot 2023-12-06 111847.png


--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/7a5e3c50-fc0d-4040-8113-9995987664e2n%40googlegroups.com.

Simon Still

unread,
Dec 6, 2023, 12:25:18 PM12/6/23
to Loxone English
I like problems like this as there are so many different ways of achieving things with Loxone that you always learn something new.

I really some of the simple 'hacks' that achieve things with the minimum of coding.  One of those ways is to control lights outside the lighting controller.  Only issue with this is that the app UI won't show the light as on, but with a schedule of 1930-2230 this would put the garden lights when it got dark and turn them off at 2230, irrespective of inputs to the lighting controller.
evening light on.JPG

On Wednesday 6 December 2023 at 07:58:42 UTC MartinB wrote:

Simon Still

unread,
Dec 6, 2023, 12:37:44 PM12/6/23
to Loxone English
The other way, giving slightly more control is what I actually do for my garden lights - they're on a separate lighting controller (theres some coloured lights, a few white ones that are dimmable) - but the 'on/off' control is a simple on/off switch within the Kitchen Lighting Controller which activates a memory flag.  The garden lights are then On if kitchen lights are on AND its dark  (AND it's not morning so they don't come on at breakfast in winter).   
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages