@geddy,
The program is supposed to change the variable to 0 when the lights are turned off, if I use "not off", this is the opposite of what I am trying to do. Also, this dimmer is a Lutron Dimmer using the plug in. The status options are only 0% to 100% in 1% increments. So for On I use "Is not 0%" and for Off I use "Is equal to 0%" The Lutron switches seem to work fine. I have identical programs with the Insteon switches that are giving me issues. From what I understand, control for Insteon is from a manual push of the switch and status is for any change in the switch regardless if it was manual or otherwise. So when the switch is turned on by motion, it runs a program for a 1 minute time off and if it was turned on manually, it runs a program for a 30 minute time off. This all works fine until I use Alexa to turn on a light. When this happens, the variables don't change and no programs are triggered. I want the Alexa command to be treated the same as manually turning on the switch. If I add Status of the switch call the 30 minute time off, it overides the 1 minute program I have for the motion. When the motion sensor senses motion, it sets a variable to 1. It appears my easiest solution is just to continue down the path of replacing the Insteon with Lutron.