dim through serial

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by nickrusanov, May 18, 2007.

  1. nickrusanov

    nickrusanov

    Joined:
    Aug 5, 2004
    Messages:
    308
    Likes Received:
    0
    Location:
    russia
    what I do now is rs232 integration of newest Pronto (through wifi and serial extender talking to PAC). What I need is that pressing pronto button - lamp dims, releasing - endramp.

    i do understand ON-OFF functions from "serial example", but is there any chance to dim, using Logic?

    what I know is SetLightingLevel or State, but no alternatives to Upkey, Downkey or ENDRAMP commands.

    :confused:
     
    nickrusanov, May 18, 2007
    #1
  2. nickrusanov

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    It isn't clear exactly what you are wanting to do. I take it that you want to emulate a "dimmer" key function on a Pronto.

    It should be possible to do this in logic. You would need to get the Pronto to send commands to tell the PAC that the key has been pressed or released. In the PAC, you will need to write code to emulate the "key state machine" to ramp the group level up and down.
     
    Darren, May 21, 2007
    #2
  3. nickrusanov

    nickrusanov

    Joined:
    Aug 5, 2004
    Messages:
    308
    Likes Received:
    0
    Location:
    russia
    you are right about dimming function. dim up or dim down would be good either.

    but as i know at the moment - group could be ramped at _certain_ level, but not UP or DOWN in logic. am I right?
     
    nickrusanov, May 24, 2007
    #3
  4. nickrusanov

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    To ramp a group up :
    SetLightingLevel("Group 1", 100%, "4s");

    To ramp a group down :
    SetLightingLevel("Group 1", 0%, "4s");

    To stop the group ramping :
    SetLightingLevel("Group 1", GetLightingLevel("Group 1"), 0);
     
    Darren, May 25, 2007
    #4
  5. nickrusanov

    nickrusanov

    Joined:
    Aug 5, 2004
    Messages:
    308
    Likes Received:
    0
    Location:
    russia
    oh, thank you =)
     
    nickrusanov, May 29, 2007
    #5
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.