Jump to content

Help with door open lights on program


Blackbird

Recommended Posts

I want to open my bedroom door between 1am and 6am and when it is open the bathroom lights turn on at 1%

 

I currently have a program running but being that the bedroom door is normally open during the day, when 1am hits and the door is still open, the lights come on in the bathroom.

 

 

Bedroom door open night bathroom light on

If
        Status  'Bedroom Door-Opened' is On
    And From     1:00:00AM
        To       6:00:00AM (same day)
 
Then
        Set 'Bathroom Light' 1%
 
Else
   - No Actions - (To add one, press 'Action')
 

 

 

 

 

 

 

 

Link to comment

I want to open my bedroom door between 1am and 6am and when it is open the bathroom lights turn on at 1%

 

I currently have a program running but being that the bedroom door is normally open during the day, when 1am hits and the door is still open, the lights come on in the bathroom.

 

 

Bedroom door open night bathroom light on

If

        Status  'Bedroom Door-Opened' is On

    And From     1:00:00AM

        To       6:00:00AM (same day)

 

Then

        Set 'Bathroom Light' 1%

 

Else

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

 

 

I'm not sure If I understand what the problem is? Can you maybe rephrase it a little better? On the surface I would be using *Control* as the (IF) condition but this assumes the door is open and closed during that time period. If you use *Status* the last state or any other elements can cause it to run like a program etc. Lastly, are these incandescent lights that are turned on at 1%?

 

I've only seen a handful of LED lights that do in fact turn on and dim to 1%. If so would like to know what the brand and model is LED assuming that's what is in use.

Link to comment

I want to open my bedroom door between 1am and 6am and when it is open the bathroom lights turn on at 1%

 

I currently have a program running but being that the bedroom door is normally open during the day, when 1am hits and the door is still open, the lights come on in the bathroom.

 

 

Bedroom door open night bathroom light on

If

Status 'Bedroom Door-Opened' is On

And From 1:00:00AM

To 6:00:00AM (same day)

 

Then

Set 'Bathroom Light' 1%

 

Else

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

 

You should use Control instead of Status. Because the door is already open, the Status will report that it is open.

 

Sent from my Nexus 6P using Tapatalk

Link to comment

As per Gary above.

When you use "control /switched" it is never true except when the event happens and the program is being evaluated due to that event.

 

The time frame used will be evaluated as True at 1:00 AM and if Status is True (door open), Then will run. With control / switched that line will be False.

 

When the time frame is evaluated as False at 6:00 AM nobody cares because you have nothing in the Else section. It only acts to be true during it's time frame like a filter for the door opening.

 

Make sense?

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...