jstjohnz Posted January 12, 2017 Posted January 12, 2017 I am a newbie at ISY programming, and to be honest I'm finding it to be quite different than what I expected, but I'm slowly finding my way. I have a KeypadLinc that I want to be able to use as 7 general purpose buttons and 7 general purpose indicator lights. I have defined a scene for each light such that I can turn each button light on or off by turning the corresponding button light scene on or off. So, I am good as far as the lights. I have the buttons configured for non-toggle ON mode. I have a scene defined for each button where the corresponding button press turns on that scene. The intent was to create programs like: if button-scene B is on then do whatever button B is supposed to do turn button scene B off My confusion is how to detect a button press in a program. I don't see an option to set a program condition as "IF SCENE XXX IS ON" for example. All assistance will be most appreciated.
stusviews Posted January 12, 2017 Posted January 12, 2017 (edited) Scenes cannot be used as triggers because scenes can have multiple controllers and/or responders. What if a scene turns the device off? Does turning the button off again trigger the scene or does turning it on trigger the scene which intent is to turn the button off? So, use a device to trigger the scene. If Control/Status 'button B' is ... Control requires the the button be pressed manually. Each time the button pressed, On or Off, your choice, the scene will be triggered. If another scene turns the button on (or off). the program will not be triggered. Status will trigger the program is the state of the button chances no matter what changed the state. If the same command occurs, such as pressing on twice, nothing will happen. The state has to change for the program to trigger. Edit: term corrected Edited January 12, 2017 by stusviews
jstjohnz Posted January 12, 2017 Author Posted January 12, 2017 Thanks for that. I get CONTROL, testing for CONTROL ON senses button presses of my non-toggle ON buttons. I don't understand SENSE, though, I don't see SENSE in the drop-down for conditions.
stusviews Posted January 12, 2017 Posted January 12, 2017 (edited) My error, STATUS not SENSE. Edited January 12, 2017 by stusviews
larryllix Posted January 12, 2017 Posted January 12, 2017 (edited) Control detects the signal. Status detects the last known state from the signals received previously. If you press a button On five times, five control/switched On signals will be received by ISY, Status will only change the first time. Only changes in the watched element will cause the program to run. You can detect a button press but you cannot detect a scene change. Edited January 12, 2017 by larryllix
Recommended Posts