Program steps sunrise + sunset + timers

i want to create the following program on a VMBGPOD panel

1- on sunset => cancel forced off a channel
2- at time 8pm => forced of the same channel
3- at time 6:30am => cancel forced of the same channel
4- on sunrise => forced of the channel

step 1 and 2 is simple, this will always work

but 3 and 4 does only work if 6:30am < sunrise
if 6:30 am > sunrise the system will be on the whole day

any advise on how to program this?

Hi

Could I suggest that instead of 2 fixed times, you change them to…

Sunrise +2hrs

Sunset -1hr

(Or anything that suits your better)

Just a thought.

Cheers,

Stuart

no that will not work, i really need the described scenario

Okay.

So that I/we understand what you’re looking for.

If I’m reading your post correctly, you have a button on your glass panel that you only want to be active between…

Sunset & 8pm

And sunrise & 6:30, unless sunrise is after 6:30

I’ve re-read your post a couple of times and tried to work out what you’re trying to achieve, but I keep getting stuck with the logic.
Can you double check that what you’ve typed is what you’re looking for please?

Are you trying to disable a button or a relay channel?

Do you want whatever it is to be active between 2 time slots?

Cheers,

Stuart

its verry simple:

1- channel not forced off between 8pm and sunset if sunset is coming before 8pm
2- channel not forced off between 6:30 am and sunrise if sunrise is not coming before 6:30 am
3- all other moments channel forced off

its as simple as that but programming this on velbus is not simple at all

Hi

Okay, that clears it up.

Do you have a spare virtual relay channel free?

Cheers,

Stuart

yes i have some of those channels free

Good morning,

I think I’ve cracked it, but you’ll need to double check my logic as I haven’t run this on my installation.

What I’ve identified is that you absolutely need is the relay channel to be locked out between 8pm and 06:30Am, no matter what else happens.

Also the channel must be locked out between SunRise and SunSet.

The issue is when SunRise is before 06:30Am and SunSet is after 8PM.

However, once I looked at the logic on a clock face, it suddenly became much clearer.

So, I propose that you use a Virtual relay channel to lock out the real relay channel between 8PM and 06:30, using a FORCE OFF WHEN CLOSED command.

Virtual relay channel >> Real relay channel – “Force off when closed”

Then use 4 commands / buttons to do the following:-

@SunSet - “Force off” real relay channel
@SunRise - “Cancel Force off” real relay channel
@8pm - “ON” the virtual relay channel
@6:30am - “OFF” the virtual relay channel

Then it’s just a matter of setting the timers correctly within the glass panel / VMB8PBU etc (Which ever you have used)

SunSet button @SunSet - 0.25sec - every day
SunRise button @SunRise - 0.25sec - every day
8pm button @20:00 - 0.25sec - every day
6:30am button @06:30 - 0.25sec - every day

Does that make sense?

I’ve uploaded an example VLP file here with the logic programmed.

{Right Click – Save as…}
mdar.eu/dl/vlp/8Pm_LX_lockout.vlp

Please let me / us know if this works for you.

Cheers

Stuart

Hello again.

I’ve changed my mind, I’m not keen on the suggestion now.

I’ve tweaked it a bit.

What I’ve identified is that you absolutely need the relay channel to be locked out between 8pm and 06:30am, no matter what else happens.

Also the channel must be locked out between SunRise and SunSet.

The issue is when SunRise is before 06:30Am and SunSet is after 8PM.

However, once I looked at the logic on a clock face, it suddenly became much clearer.

So, I propose that you use a Virtual relay channel to lock out the real relay channel between SunRise and SunSet, using a FORCE OFF WHEN CLOSED command.

Virtual relay channel >> Real relay channel – “Force off when closed”

Then use 3 commands / buttons to do the following:-

@SunSet - “Off” Virtual relay channel
@SunRise - “On” Virtual relay channel
@8pm - “Force OFF when closed” the real relay channel

Then it’s just a matter of setting the timers correctly within the glass panel / VMB8PBU etc (Which ever you have used)

SunSet button @SunSet - 0.25sec - every day
SunRise button @SunRise - 0.25sec - every day
8pm button @20:00 - 10Hrs & 30Mins - every day

This effectively means that the real relay channel is being locked off by two independent ‘Momentary’ actions.
Both must be ‘released’ for the relay channel to be active and operational.

(You’ve probably worked out already that the inhibit function does something completely different)

Does that make sense?

I’ve uploaded an example VLP file here with the logic programmed.

{Right Click – Save as…}
mdar.eu/dl/vlp/8Pm_LX_lockoutV2.vlp

Please let me / us know if this works for you.

Cheers

Stuart

Hi

I’ve been doing some work on a clients configuration and realised that there is an even easier way to resolve both their issue and yours.

Without using a virtual relay channel :slight_smile:

So, try this logic for size…

We need two buttons (on something, somewhere, which don’t have to be visible)

One button will be for ‘SunDown’ and we’ll make it active between Sunset and Sunrise.

The other well be for the fixed times you want.

Both buttons will have exactly the same action associated with the single channel of your relay, which will be ‘Forced Off when closed’.

What we’re doing is creating two conditions where the relay channel is to be locked out.

Only one has to be active to lockout the channel, but both must be removed for the relay channel to operate again.

The real magic happens in the timer programming.

We need to create 4 timer events.

1 - The sundown button is to send a ‘Press’ signal at Sunset -this can be found at the bottom of the time out list in the top right hand corner, when setting up the timer event.

2 - The sundown button to send a ‘Release’ at Sunrise.

3 - Overnight button (8PM-6:30AM) to send a ‘Press’ at 22:00

4 - Overnight button to send a ‘Release’ at 06:30

Again, I’ve uploaded an example VLP file to have a look at.

Good luck,

Stuart

{Right Click – Save as…}
mdar.eu/dl/vlp/8Pm_LX_lockoutV3.vlp

Hi Cereal,

Could you let me know if this logic is working for you?

Cheers,

Stuart