First Timer - Try not to Scream at me!

Discussion in 'C-Bus Wiser 1 Controller' started by mrees, Sep 7, 2011.

  1. mrees

    mrees

    Joined:
    May 5, 2007
    Messages:
    25
    Likes Received:
    0
    Location:
    Sydney
    Hello there

    Im very new to all this and I was hoping someone could point me in the right direction

    Im looking to Create an option that can be used on either the iphone wiser app or via a DLT

    What I need to do is to turn on the AC system at 6am to 630am
    But I want this only occur when triggered the night before via the DLT or iPhone (ie: I dont want it happening every day)

    I was just wondering what the best way would be to do this?
    Via a Scene?
    And should I create a new group address just for this device?

    And as far as the scheduling, do I use the scheduler, or in this case would it best to create logic?

    Sorry for the stupod questions, Im just trying to get me head around it all and see how things work to know the best way to program my system

    Thanks in advance!
     
    mrees, Sep 7, 2011
    #1
  2. mrees

    Conformist

    Joined:
    Aug 4, 2004
    Messages:
    787
    Likes Received:
    74
    Location:
    Adelaide, South Australia
    Do you want it at 6.00am or 6.30am? ... lets assume 6.00am

    Yes... But I assume you have a means to switch on already. e.g a C-Bus relay or similar

    if the time isn't going to change, do it in logic

    Create a group that you can use on your DLT or iPhone/Wiser. Let's call it 'A/C enable'

    In the following example, 'AC On' is what is switching the air conditioner on.

    In logic. use the following line.

    once (GetLightingState("A/C Enable") = ON) and (Time = "06:00:00 AM") then
    begin
    SetLightingState("AC On", ON);
    SetLightingState("A/C Enable", OFF);
    end;


    This will also reset the 'A/C enable' so you will need to switch it on again for the next day.
     
    Last edited by a moderator: Sep 7, 2011
    Conformist, Sep 7, 2011
    #2
  3. mrees

    XHPBT1

    Joined:
    Aug 27, 2009
    Messages:
    19
    Likes Received:
    0
    Location:
    Brisbane
    Maybe one option

    In piced create a schedule for the AC set the time and how long etc... But in the option for enable the schedule put group address let's say ac-activate then on ur DLT assgin one button to on /off that AC-activate address then make another schedule to turn off the AC-activate address let's after the timer for the first schedule is finished...

    Hope this makes sense....
     
    XHPBT1, Sep 7, 2011
    #3
  4. mrees

    mrees

    Joined:
    May 5, 2007
    Messages:
    25
    Likes Received:
    0
    Location:
    Sydney
    Thankyou so very much for your help

    Im going to try the Logic version first

    Conformist, what would I need to do to ensure the system turns off at 630am
    (so to confirm: On @ 600am and off at 630am - runs for only 30mins)

    Thanks again for everyones help
     
    mrees, Sep 8, 2011
    #4
  5. mrees

    Conformist

    Joined:
    Aug 4, 2004
    Messages:
    787
    Likes Received:
    74
    Location:
    Adelaide, South Australia
    Now I understand what you meant by stating the two times.

    I would do the following...
    //Set the A/C to on at 6.00am
    once (GetLightingState("A/C Enable") = ON) and (Time = "06:00:00 AM") then
    SetLightingState("AC On", ON);


    //Set the A/C to off and reset the enable at 6.30am
    once (Time = "06:30:00 AM") and (GetLightingState("AC On") = ON) then
    begin
    SetLightingState("AC On", OFF);
    SetLightingState("A/C Enable", OFF);
    end;


    Hope this helps
     
    Conformist, Sep 8, 2011
    #5
  6. mrees

    mrees

    Joined:
    May 5, 2007
    Messages:
    25
    Likes Received:
    0
    Location:
    Sydney
    Thanks Conformist
    Reading thru your logic its starting to make sense to me how this is all falling together. Thankyou

    So what i have is as follows:
    //Set the A/C to on at 6.00am
    once (GetLightingState("A/C Wakeup") = ON) and (Time = "06:00:00 AM") then
    SetLightingState("A/C control", ON);

    //Set the A/C to off and reset the enable control at 6.30am
    once (Time = "06:30:00 AM") and (GetLightingState("A/C control") = ON) then
    begin
    SetLightingState("A/C control", OFF);
    SetLightingState("A/C Wakeup", OFF);
    end;

    However when I hit 'AC Wakeup' It seems to throw on 'AC Control' immediately :confused:

    Doesnt make sense from that logic though
     
    mrees, Sep 8, 2011
    #6
  7. mrees

    Conformist

    Joined:
    Aug 4, 2004
    Messages:
    787
    Likes Received:
    74
    Location:
    Adelaide, South Australia
    I've just put your code through a simulation and it works as expected.

    maybe leave your log running in Toolkit to see what's sending the command onto C-Bus.
     
    Conformist, Sep 8, 2011
    #7
  8. mrees

    mrees

    Joined:
    May 5, 2007
    Messages:
    25
    Likes Received:
    0
    Location:
    Sydney
    Thanx Conformist
    Ill do that when I get home

    Been running these tests from work and its a bit slow over the internets :)
     
    mrees, Sep 8, 2011
    #8
  9. mrees

    mrees

    Joined:
    May 5, 2007
    Messages:
    25
    Likes Received:
    0
    Location:
    Sydney
    Conformist,

    Heres the log:


    DateTime= 8/09/2011 10:06:30 PM App= 056 Lighting Group= 063 A/C Wakeup Unit= 039 PC_CNICI/WISER Event= Group on
    DateTime= 8/09/2011 10:06:30 PM App= 056 Lighting Group= 015 A/C control Unit= 039 PC_CNICI/WISER Event= Group on

    Its just triggering A/C Control un-necessarily, no clue to why :(
    Any thoughts?
     
    mrees, Sep 8, 2011
    #9
  10. mrees

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    A log from the Diagnostic Utility is generally preferable, but this will be OK.

    This shows that both groups "A/C Wakeup" and "A/C Control" are being controlled from unit 39 (the Wiser).

    Did you activate "A/C wakeup" via Wiser, or from the DLT?

    Is there any other logic code related to these groups in the Wiser?
     
    Darren, Sep 9, 2011
    #10
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.