timekiller Posted May 13, 2016 Posted May 13, 2016 Just curious- I can control scenes in a "then" section of a program, but I can't use them for conditionals in the "If" section. Is this expected? If so, why? I'd like to run a program based on the current state of a scene, but can't seem to
Techman Posted May 13, 2016 Posted May 13, 2016 (edited) Just curious- I can control scenes in a "then" section of a program, but I can't use them for conditionals in the "If" section. Is this expected? If so, why? I'd like to run a program based on the current state of a scene, but can't seem to The ISY has no way to know the state of a scene. The scenes don't report their status back to the ISY. The scenes reside in the PLM which also allows them to function even if the ISY is offline. Edited May 13, 2016 by Techman
oberkc Posted May 13, 2016 Posted May 13, 2016 I would state it slightly different. While it may be true that the ISY has no way of knowing the state if a scene, I would go further as to suggest that there is no such thing as a scene state within the very definitions of insteon. Regardless of yhe controller chosen, there is no concept of scene state.
stusviews Posted May 13, 2016 Posted May 13, 2016 In any scene, it's possible to set one device to be On and another to be Off when the scene if "On." If the scene is turned off then the On device will be turned off, but so will the off device, so the state of the scene is meaningless. Use the state of a device in the scene in your If statement, preferably a device that's not in any other scene.
larryllix Posted May 14, 2016 Posted May 14, 2016 (edited) I use about 8 scenes in my Gathering Room. They all have numbers assigned to them with 8 different programs that trigger when a number is inserted into the controlling variable. If $sGathRm.mode = $cMODE.TV <---variable set to some permanent number Then set TV.scene On To turn the scene on I insert this line in any program: $sGathRm.mode = $cMODE.TV and it magically just happens. Some of the triggered programs contains dozens of line setting 12 coloured Hue and MiLight bulbs on with various colours along with the Insteon scenes for regular lights. Programs can test the control variable for what scene is on at any moment. Edited May 14, 2016 by larryllix
Recommended Posts