mjcumming Posted May 30, 2018 Posted May 30, 2018 Hi All, have read through many posts and looked at an old how to on keeping keypadlinc buttons synced to match if a current scene is on/off - to use when someone might manually control a light that is part of the scene. Ie. If I have a scene that sets all the kitchen lights to 60% and then someone manually changes one of the lights to another level, I would like to be able to turn off the keypadlinc button that controls that scene. That way, to reset the scene, I just press the button versus press it once to get it off and the press it again to get the scene on. Appreciate any help! Mike
Techman Posted May 30, 2018 Posted May 30, 2018 1 hour ago, mjcumming said: Hi All, have read through many posts and looked at an old how to on keeping keypadlinc buttons synced to match if a current scene is on/off - to use when someone might manually control a light that is part of the scene. Ie. If I have a scene that sets all the kitchen lights to 60% and then someone manually changes one of the lights to another level, I would like to be able to turn off the keypadlinc button that controls that scene. That way, to reset the scene, I just press the button versus press it once to get it off and the press it again to get the scene on. Appreciate any help! Mike You could write a program. This might work. If Status kitchen light is not 60% Then turn off keypad button
lilyoyo1 Posted May 30, 2018 Posted May 30, 2018 To expand on what Techman said, you would need to add every device to your program's if statement. For example: If status kitchen 1 is not 60% And status kitchen 2 is not 60% And status kitchen 3 is not 60% Then set kpl button C off
larryllix Posted May 31, 2018 Posted May 31, 2018 5 hours ago, lilyoyo1 said: To expand on what Techman said, you would need to add every device to your program's if statement. For example: If status kitchen 1 is not 60% And status kitchen 2 is not 60% And status kitchen 3 is not 60% Then set kpl button C off I think those should be "ORs" to cause Then to run on any level being changed.
lilyoyo1 Posted May 31, 2018 Posted May 31, 2018 50 minutes ago, larryllix said: I think those should be "ORs" to cause Then to run on any level being changed. Either way could work. Since all of them would need to be at the same level for the light to stay on, should any device change the light would turn off.
larryllix Posted May 31, 2018 Posted May 31, 2018 (edited) If status kitchen 1 is not 60% 50% is not 60% = True And status kitchen 2 is not 60% 60% = False And status kitchen 3 is not 60% 60% = False Then set kpl button C off True AND False AND False = False = Run Else, but the scene setting have been disturbed OR logic is required to detect any status has changed from 60%. Then set kpl button C off True OR False OR False = True = Run Then, the scene settings have been disturbed Edited May 31, 2018 by larryllix
mjcumming Posted June 13, 2018 Author Posted June 13, 2018 That is what I ended up doing - multiple programs to catch and change in status of a light controlled by that button and then updating the button as required. Works but painful! Thank you for the suggestions.
Recommended Posts