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
Software Geek Extraordinaire
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
  ELK V2 Driver - AreaArm field & Triggers? sic0048 4 871 08-19-2017, 04:46 PM
Last Post: Dean Roddey
  Idea for a different kind of event processing mechanism Dean Roddey 0 418 03-20-2017, 09:29 AM
Last Post: Dean Roddey
  How to pass a variable into a field moniker EST 3 730 08-30-2016, 11:01 AM
Last Post: EST
  EventGhost alternatives to getting driver/field *TO* SmartPhone? IVB 37 4,819 08-13-2016, 07:32 PM
Last Post: IVB
  Best Way to Handle Wait Times within a Triggered Event kblagron 9 1,039 06-25-2016, 06:03 PM
Last Post: Dean Roddey
  taRiva cxn issues = maybe changing equipment to a dual-usage approach IVB 20 2,200 01-05-2016, 09:11 AM
Last Post: Dean Roddey
  Field Incr/Decr Button Widget khill 15 2,599 05-17-2015, 01:04 PM
Last Post: dlmorgan999
  Thingspeak event monitor potts.mike 5 1,265 05-09-2015, 06:11 PM
Last Post: wuench
  Renderer field in Media Info (Auto-Gen) Andre 2 1,233 02-19-2015, 07:00 PM
Last Post: rtarver
  event scheduler ellisr63 8 1,371 04-11-2014, 02:43 PM
Last Post: ellisr63

Forum Jump:

Users browsing this thread: 1 Guest(s)