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:
    145
    Likes Received:
    1
    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
  2. sjfp

    sjfp

    Joined:
    Oct 31, 2004
    Messages:
    145
    Likes Received:
    1
    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
  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:
    271
    Likes Received:
    97
    Location:
    Sydney, NSW, Australia
    pm me
     
    lcrowhurst, Mar 5, 2019
    #5
  6. sjfp

    Thomas

    Joined:
    Nov 25, 2004
    Messages:
    252
    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
  7. sjfp

    mick

    Joined:
    Mar 20, 2021
    Messages:
    4
    Likes Received:
    0
    Has anyone ever got this to work
    Enabling/disabling a schedule from a cbus button would be very handy rather than going though the the scheduler and doing it manually via the checkbox
    Thinking we could use this for an away mode
     
    mick, Mar 21, 2021
    #7
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.