PIR Motion Detection rules



  • Hi,

    I want a PIR sensor to trigger a few actions to light up selected groups, but only if some other sensor shows that it is actually dark outside. And when PIR sensor sends no motion state I want to delay 1minute before turn off selected groups, but only if it is dark/sun is down.

    I'm guessing this should be fairly simple but no matter how I try to combine Rules/Timers/Operations I cannot get it to work.

    Also, what is the function of "Delay" in Operations? Is there a delay before payload is sent or after? What is the purpose? :trollface:


  • ADMIN

    @Redferne

    , what is the function of "Delay" in Operations? Is there a delay before payload is sent or after? What is the purpose? :trollface:

    Payload will be sent after this delay.

    We can achieve this setup by using a timer, operation and rule.

    1. Create an operation to turn ON a group.
      0_1483984830792_upload-e3a91e62-97ee-48c6-88b8-cd013df1d0d4

    2. Create an operation to turn OFF a group.
      0_1483984949884_upload-67b5213e-41c4-4a66-bab4-05a63d87c683

    3. Create a rule, when a motion detected
      0_1483985146596_upload-574dd7e9-c432-477a-b35c-9eefbf30864b

    4. Create a rule, when no motion detected for a minute
      0_1483985204395_upload-0964ba08-8a58-41e5-bc2b-e0d989222e9e

    5. Create operations to enable rules( 3 and 4)
      0_1483985376251_upload-eb7e1bda-0752-45e3-b56f-fd35f799cace
      0_1483985427090_upload-1b5483bf-6b20-4c95-ac4e-0d501c222541

    6. Create operations to disable rules( 3 and 4)
      0_1483985468149_upload-2ea4369d-92d5-4dc1-9324-5da16119f20f
      0_1483985503533_upload-7db2039e-0317-4812-b83d-293330def3d7

    7. Create a timer to enable rules (3 and 4), on sunsets
      0_1483985580553_upload-942ab5da-a3a5-4a49-a085-2079c3feee15

    8. Create a timer to disable rules (3 and 4), on sunrises
      0_1483985656539_upload-919454c6-a334-42eb-8676-c0d869b19c77

    All done :)



  • Many thanks. Now I'm getting further, however point 4 never fires when dampening active for x minutes. This is a RFLink 433Mhz PIR which is mapped as Status ON/OFF, but I guess it doesn't matter. Thanks!


  • ADMIN

    @Redferne Thank you! There was an issue with active time. I have added the fix, and it is available on SNAPSHOT build. Can you give a try with recent SNAPSHOT version?



  • Works great now! Thank you for your support!


Log in to reply
 

6
Online

442
Users

231
Topics

1389
Posts

Looks like your connection to MYCONTROLLER.ORG was lost, please wait while we try to reconnect.