Hasnat Posted July 14, 2020 Share Posted July 14, 2020 Hi, Good Day, my room is completely motion based solution by NYCE ncz3041 and occupancy holding time is 5 min. I also create some lighting scene. when i enter the room light will go on for 5 min. if i active lighting scene then motion will be deactivate and when lighting scene will be closed then motion will activate. anyone can give a demo program for this? Quote Link to comment Share on other sites More sharing options...
mstafford388 Posted July 14, 2020 Share Posted July 14, 2020 It would look (crudely) something like this.... Create a boolean variable called "scene active" When motion sensor senses motion If scene active is false -> turn on light When motion sensor stops sensing motion If scene active is false -> turn off light When lighting scene is invoked Set variable scene active to true When lighting scene becomes inactive Set variable scene active to false FYI this falls apart completely if you are activating the same lighting scene with the motion sensors. Hasnat 1 Quote Link to comment Share on other sites More sharing options...
RAV Posted July 14, 2020 Share Posted July 14, 2020 I think what you want is: Normally - motion trigger lights. Manually Activated lights - don't use motion trigger again until lights are turned off manually. When motion activated - ...If lights are off - set variable 'motion' to true turn on lights. When motion deactivate - ...If 'motion' is true, turn off lights and set 'motion' to false. When scene 'room' becomes active, set 'motion' to false Scene 'room' should NOT be the scene called for by the motion sensor. If similar, just change one of the levels by 5% so the "look" the same to the eye, but are different in actual values. Hasnat 1 Quote Link to comment Share on other sites More sharing options...
msgreenf Posted July 14, 2020 Share Posted July 14, 2020 Buy the advanced lighting driver Hasnat 1 Quote Link to comment Share on other sites More sharing options...
Hasnat Posted July 15, 2020 Author Share Posted July 15, 2020 On 7/14/2020 at 8:24 PM, RAV said: I think what you want is: Normally - motion trigger lights. Manually Activated lights - don't use motion trigger again until lights are turned off manually. When motion activated - ...If lights are off - set variable 'motion' to true turn on lights. When motion deactivate - ...If 'motion' is true, turn off lights and set 'motion' to false. When scene 'room' becomes active, set 'motion' to false Scene 'room' should NOT be the scene called for by the motion sensor. If similar, just change one of the levels by 5% so the "look" the same to the eye, but are different in actual values. i can give you an example .. say when i enter room motion will trigger and light will go on for 5 min as per sensor occupancy holding time. after that i press training mode what i created as a scene in my training session.then what will happen? lights will go on as per scene. in that time motion will not trigger again because its hold 5 min. but when 5 min expired then what will happen? motion will trigger again and light will go on as per motion program. then training mode is not having there. so that there will be created awkward moment when everything will be changed during training session. so i need that program when motion trigger again if scene is active motion will not work if scene is notactive motion will work..but primary requirement is when i enter light will go on through motion. i need that program.... i think you will get it. Quote Link to comment Share on other sites More sharing options...
Hasnat Posted July 15, 2020 Author Share Posted July 15, 2020 On 7/14/2020 at 8:19 PM, mstafford388 said: It would look (crudely) something like this.... Create a boolean variable called "scene active" When motion sensor senses motion If scene active is false -> turn on light When motion sensor stops sensing motion If scene active is false -> turn off light When lighting scene is invoked Set variable scene active to true When lighting scene becomes inactive Set variable scene active to false FYI this falls apart completely if you are activating the same lighting scene with the motion sensors. i think it should work. if not i will let you know. Thanks Quote Link to comment Share on other sites More sharing options...
RAV Posted July 16, 2020 Share Posted July 16, 2020 21 hours ago, Hasnat said: i can give you an example .. say when i enter room motion will trigger and light will go on for 5 min as per sensor occupancy holding time. after that i press training mode what i created as a scene in my training session.then what will happen? lights will go on as per scene. in that time motion will not trigger again because its hold 5 min. but when 5 min expired then what will happen? motion will trigger again and light will go on as per motion program. then training mode is not having there. so that there will be created awkward moment when everything will be changed during training session. so i need that program when motion trigger again if scene is active motion will not work if scene is notactive motion will work..but primary requirement is when i enter light will go on through motion. i need that program.... i think you will get it. Right. If off, motion turns light on, no motion turn light off. If off, motion turns light on, you turn scene on (scene going active disables motion). Hasnat 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.