Jump to content

Programming Help


ldrinc

Recommended Posts

Posted (edited)

Hi All

 

Need help with a simple program.  I'd like my hidden door sensor to trigger a hallway light to come for 5 minutes when the sensor is switched on. This is what I have so far

test sensor - [ID 014B][Parent 0032]

If
        Status  '32.7A.4D.1 - Door Sensor' is Off
 
Then
        Set 'Master Bedroom / M/Bedroom light' On
 
Else
   - No Actions - (To add one, press 'Action')


Edited by ldrinc
Posted

You want to use "Control" rather than status.  The hidden door sensor sends an off signal when door is closed.

 

 

Jon...

Posted (edited)

Hi 

Update the If statement to use Control / switched on (as jerlands suggested), and add the 2 lines to the then clause

 

test sensor - [ID 014B][Parent 0032]

If
        Control '32.7A.4D.1 - Door Sensor' is switched On
 
Then
        Set 'Master Bedroom / M/Bedroom light' On    

        Wait 5 minutes

        Set 'Master Bedroom / M/Bedroom light' Off

Else
   - No Actions - (To add one, press 'Action')

Edited by paulbates
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.5k
×
×
  • Create New...