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
Software Geek Extraordinaire
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
  Timed Field Change in Lutron HW8 avtexan 11 2,179 08-06-2018, 11:17 AM
Last Post: Dean Roddey
  event and subsequent countdown timer question dogman 9 1,325 05-03-2018, 06:36 PM
Last Post: dogman
  ELK V2 Driver - AreaArm field & Triggers? sic0048 4 1,657 08-19-2017, 04:46 PM
Last Post: Dean Roddey
  Idea for a different kind of event processing mechanism Dean Roddey 0 698 03-20-2017, 09:29 AM
Last Post: Dean Roddey
  How to pass a variable into a field moniker EST 3 1,286 08-30-2016, 11:01 AM
Last Post: EST
  EventGhost alternatives to getting driver/field *TO* SmartPhone? IVB 37 8,045 08-13-2016, 07:32 PM
Last Post: IVB
  Best Way to Handle Wait Times within a Triggered Event kblagron 9 1,927 06-25-2016, 06:03 PM
Last Post: Dean Roddey
  taRiva cxn issues = maybe changing equipment to a dual-usage approach IVB 20 3,572 01-05-2016, 09:11 AM
Last Post: Dean Roddey
  Field Incr/Decr Button Widget khill 15 3,984 05-17-2015, 01:04 PM
Last Post: dlmorgan999
  Thingspeak event monitor potts.mike 5 1,787 05-09-2015, 06:11 PM
Last Post: wuench

Forum Jump:


Users browsing this thread: 1 Guest(s)