Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ISY99 - Changing an Enumerated Field in a Scheduled Event
#1
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?
Reply
#2
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
Reply
#3
That was what I was looking for. Just couldn't figure out how to pass that enumerated value to the driver. Thanks Dean!

Blake
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)