Jump to content
C4 Forums | Control4

Variable programming


Recommended Posts

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?

Link to comment
Share on other sites


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.  

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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. 

 

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.