Schedule Events - Enable/Disable from Script

Discussion in 'C-Bus Automation Controllers' started by sjfp, Apr 23, 2018.

  1. sjfp

    sjfp

    Joined:
    Oct 31, 2004
    Messages:
    114
    Likes Received:
    0
    Location:
    UK
    Hi trying to find how I can enable and disable Schedulers from scripts.
    Need to Disable various schedules when a particular action occurs.

    Any help would be appreciated.
     
    sjfp, Apr 23, 2018
    #1
    1. Advertisements

  2. sjfp

    sjfp

    Joined:
    Oct 31, 2004
    Messages:
    114
    Likes Received:
    0
    Location:
    UK
    solution found on the net
    There is a library on the net, which provides controls
    scheduler.eventenable('Name') or scheduler.eventdisable('Name')
    scheduler.enable('Name') or scheduler.disable('Name')
     
    sjfp, Apr 23, 2018
    #2
    1. Advertisements

  3. sjfp

    desd

    Joined:
    Jul 7, 2005
    Messages:
    42
    Likes Received:
    0
    Location:
    NZ
    Hi sjfp
    Did this work? If so, can you show syntax used?
    Cheers,
     
    desd, Apr 27, 2018
    #3
  4. sjfp

    PapaSmurf

    Joined:
    Oct 10, 2018
    Messages:
    2
    Likes Received:
    0
    Hi sjfp
    Hope you can help I have been trying to find the library with these controls but all my searching has come up blank. I would really appreciate a link if possible
    Thanks
     
    PapaSmurf, Mar 5, 2019
    #4
  5. sjfp

    lcrowhurst

    Joined:
    Dec 2, 2004
    Messages:
    149
    Likes Received:
    43
    Location:
    Sydney, NSW, Australia
    pm me
     
    lcrowhurst, Mar 5, 2019
    #5
  6. sjfp

    Thomas

    Joined:
    Nov 25, 2004
    Messages:
    248
    Likes Received:
    0
    Hi,

    I have been trying to get this going as well, and I suppose the same as above, not been able to get this going.

    From the information I have one can either enable or disable a whole schedule, or a sub event by using the following:

    scheduler.enable('Name') or scheduler.disable('Name')
    scheduler.eventenable('Name') or scheduler.eventdisable('Name')

    I tried this via an event based script, but cannot see any change in the "active" or "inactive" tick box in the schedules.
    Does this actually work?
     
    Thomas, Mar 18, 2019
    #6
    1. Advertisements

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.