Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ISY99 - Changing an Enumerated Field in a Scheduled Event
Okay, maybe I am tired, but I have read and searched and can't find what I am looking for.

I have the Insteon ISY controller, and have a light in the office that I would like to control via the scheduled events. What would I need to do to pass an enumerated fieldwrite to change the light to on or off?

I have a scheduled event where I want to turn on a light in my office at dusk, and turn it off at 11pm. I already have my Jandy pool lights set up to do that, but they are not an enumerated field. I just want to add one more line of code to turn on the office light on/off.

If my driver is named Lighting, and the assigned name is Office, how do I add the Fieldwrite command within the scheduled field to change that light to on or off?
I don't know that driver. It looks to me like there's an On field, and you write the name of the one of the devices to it, so something like:

Devices::FieldWrite(Lighting.On, Office, True)

or thereabouts. For off, just change it to the Off field, so:

Devices::FieldWrite(Lighting.Off, Office, True)
Dean Roddey
Explorans limites defectum
That was what I was looking for. Just couldn't figure out how to pass that enumerated value to the driver. Thanks Dean!


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error writing value to field Spot 6 1,535 05-28-2021, 03:22 PM
Last Post: Spot
  Status of Scheduled and Triggered Events gReatAutomation 4 1,740 04-21-2020, 12:58 PM
Last Post: gReatAutomation
  Scheduled Events & Variables gReatAutomation 2 1,510 06-20-2019, 01:31 PM
Last Post: gReatAutomation
  Timed Field Change in Lutron HW8 avtexan 11 6,297 08-06-2018, 11:17 AM
Last Post: Dean Roddey
  event and subsequent countdown timer question dogman 9 5,459 05-03-2018, 06:36 PM
Last Post: dogman
  ELK V2 Driver - AreaArm field & Triggers? sic0048 4 4,331 08-19-2017, 04:46 PM
Last Post: Dean Roddey
  Idea for a different kind of event processing mechanism Dean Roddey 0 1,690 03-20-2017, 09:29 AM
Last Post: Dean Roddey
  How to pass a variable into a field moniker EST 3 2,830 08-30-2016, 11:01 AM
Last Post: EST
  EventGhost alternatives to getting driver/field *TO* SmartPhone? IVB 37 16,233 08-13-2016, 07:32 PM
Last Post: IVB
  Best Way to Handle Wait Times within a Triggered Event kblagron 9 5,216 06-25-2016, 06:03 PM
Last Post: Dean Roddey

Forum Jump:

Users browsing this thread: 1 Guest(s)