Help with Logic

Discussion in 'C-Bus Wired Hardware' started by paulwat, May 26, 2012.

  1. paulwat

    paulwat

    Joined:
    Apr 30, 2009
    Messages:
    23
    Likes Received:
    0
    Location:
    Bristol, UK
    Hi all,

    I have had a Wiser for several months now and I am finally getting to the point where enough of the physical CBUS wiring is completed that I can turn my attention to programming the Wiser to do all of the fancy stuff.

    My main problem is that when I did the CBUS course in the UK years ago there weren't any logic based products so I am starting from scratch. I have played a bit with PICED and also looked in the forum at logic examples but am a bit stuck as to where to start as my last experience in programming was over 20 years ago when I was at uni.

    Here's the scenario.

    Landing lights connected to a relay channel
    Light Sensor on outside of house - currently set to turn enable a group address when light level reaches x
    360 PIR in landing ceiling
    Group address operated from multiple switches and screens around house.

    What I want to achieve is as follows:-

    1. During daylight light only operates on the switches

    2. Once light level drops to a specific point light should come on based on PIR movement for a specific time i.e. 5mins- light level determined by logic i.e. light sensor now outputting a light level not just enabling a group address.

    3. If light is switched on via a switch then light should not be influenced by PIR unless if light is on and PIR is not triggered for 15mins then switch off light. - Basically i want to avoid the ability to leave the light switched on all night accidentally

    I have achieved 1 and 2 by simply setting up the light sensor and PIR with a trigger group but the fact that the PIR keeps switching off a light when it detects no movement that has been switched on at the switch is beginning to infuriate my wife!!

    Can someone give me a starting point for this logic which on the face of it seems simple but has me completely baffled currently?

    Once I get my head around the logic I will happily post what I come up with for people to use - no guarantee it will be any good though :)

    Many thanks in advance

    Paul
     
    paulwat, May 26, 2012
    #1
  2. paulwat

    Robbo_VIC

    Joined:
    Jan 24, 2011
    Messages:
    143
    Likes Received:
    0
    Location:
    Melbourne, VIC
    Hi Paul,

    So if you switch the light on manually (and there will be no movement in front of the sensor) it will only be on for 15 mins?

    If the lights have not been turned on manually, you want it to only trigger for 5 mins each time when the sensor picks up movment? If the lights have been manually turned on, is the sensor pulsing for 15 minutes or 5 minutes?

    Michael
     
    Robbo_VIC, Jun 1, 2012
    #2
  3. paulwat

    Robbo_VIC

    Joined:
    Jan 24, 2011
    Messages:
    143
    Likes Received:
    0
    Location:
    Melbourne, VIC
    Just saw your other post.
     
    Robbo_VIC, Jun 1, 2012
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.