simple logic in PICED

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Razor2204, Nov 17, 2012.

  1. Razor2204

    Razor2204

    Joined:
    Sep 18, 2010
    Messages:
    15
    Likes Received:
    0
    Location:
    Russian Federation
    sory in adavnce for

    i have a lamp with a clever bell press switch
    so if you press it the lamp switches on
    if you turn the relay chanel off with a LCD pannel
    you can turn it on only with a clever switch (after you turned on relay)

    is it possible to check the state of relay and switch it on if needed?
     
    Razor2204, Nov 17, 2012
    #1
  2. Razor2204

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Is this a C-Bus relay?
     
    Darren, Nov 18, 2012
    #2
  3. Razor2204

    Razor2204

    Joined:
    Sep 18, 2010
    Messages:
    15
    Likes Received:
    0
    Location:
    Russian Federation
    yes it's a cbus relay output assigned to a lightning group
     
    Razor2204, Nov 18, 2012
    #3
  4. Razor2204

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Code:
    if GetLightingState("My Relay") = OFF then
      SetLightingState("My Relay", ON);
     
    Darren, Nov 19, 2012
    #4
  5. Razor2204

    Roosta

    Joined:
    Nov 22, 2011
    Messages:
    560
    Likes Received:
    1
    Location:
    Australia
    Haahahahaha..

    Nice one Darren.. ;-)

    Cheers..
     
    Roosta, Nov 19, 2012
    #5
  6. Razor2204

    jboer

    Joined:
    Apr 27, 2012
    Messages:
    458
    Likes Received:
    35
    Location:
    Sydney
    I want to know what a 'clever' switch is and if it supports ESP? That would be pretty clever...
     
    jboer, Nov 19, 2012
    #6
  7. Razor2204

    Roosta

    Joined:
    Nov 22, 2011
    Messages:
    560
    Likes Received:
    1
    Location:
    Australia
    Indeed J.. No matter how many times i re-read the first post i still cant make sense of it..

    Cheers..
     
    Roosta, Nov 19, 2012
    #7
  8. Razor2204

    jboer

    Joined:
    Apr 27, 2012
    Messages:
    458
    Likes Received:
    35
    Location:
    Sydney
    I have a feeling that he has a lamp that has an inline electronic switch/dimmer possibly touch sensitive (the clever bit) on the cord of his lamp. He is then plugging this into a socket outlet that is controlled by a CBus relay. His problem is that when he turns the outlet on via CBus the lamp isn't turning on until he turns it on with the lamps own 'clever switch'.

    I think what he wants is a way to either, tell that you have turned the lamp on and so CBus automatically turns on the outlet, Or a way for the lamp to tell that you have turned on the outlet and so the lamp turns itself on.

    If all of the above is the case my suggestion is to get rid of the switch on the lamp :)
     
    jboer, Nov 19, 2012
    #8
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.