Jump to content

Follow Up to "Good Night" Scene


hyounker

Recommended Posts

If needed, here's the original post:

viewtopic.php?f=27&t=9006

 

 

We have accidentally pushed the "Good Night" button and all the lights in the scene go out. Is there a way to set it up so that you have to push the button twice in a predetermined amount of time?

 

The scene is titled "Night Time". The button is labeled "Good Night".

 

This controls the scene:

 

If

Status 'Good Night' is On

 

Then

Set Scene 'Night Time' On

 

Else

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

 

 

This controls the indicator:

 

If

Status 'Antler Chandelier' is not Off

Or Status 'Kitchen KPL Kitchen Lights' is not Off

Or Status 'Brkfst Table Lights' is not 40%

Or Status 'Mstr Bedroom Fan Lights' is not Off

Or Status 'Patio Door Lights' is not Off

 

Then

Set Scene 'Night Time Indicator' Off

 

Else

Set Scene 'Night Time Indicator' On

 

 

The light behind the "Good Night" button indicates if the house is in "Night Time" mode (with all the above conditions met). If the conditions are met, the light turns on. So, at night, if the light is off, we push it to turn the "Night Time" scene on and the light behind the button turns on when all conditions have been met.

 

Thanks,

 

H

Link to comment

Hello hyounker,

 

If I followed your post correctly and this is still part of the program controlling the goodnight scene then you could change this:

If
Control 'Good Night' is switched On

to:

If
Control 'Good Night' is switched Fast On

This will require a rapid two button press to execute the program.

 

Tim

Link to comment
I see nothing here that would cause a scene "night time" to turn off for any reason. I could only speculate on possible explanations.

Oberkc, the problem is that we are accidently pressing the button. I am looking for a "safety" of sorts, to keep this from happening.

 

TJF1960, I started with "Control", rather than "Status", but I was unable to use MobiLinc to control the scene. Is there a way to maintain my MobiLinc control of the scene (I really don't need the "safety" in MobiLinc), while using the Fast On command, rather than On, at the KPL?

 

Thanks for the help,

 

hyounker

Link to comment

Ah, I see what you mean. Can you turn the program on and off from mobilink?

 

edit: I just looked over your programs again in the prev. thread, not sure if they have changed any. Are you trying to turn on the scene by controlling the kpl thru mobilink or thru the night time scene in mobilink?

Can you post your programs again please?

Thanks,

Tim

Link to comment

Nothing has changed with the programs as posted above.

 

As is, I can switch into night time mode from MobiLinc using the scene. MobiLinc reports the KPL button as "Status Only Device" and there is no means to turn it on or off.

 

There is really no "Off" to the scene, as we are using it. We simply push the button to turn most lights off and dim one. If I push the button to turn the scene on, all the lights respond correctly and the button illuminates. If I push it again, turning it off, the light that was dimmed by the scene goes off and the others remain off.

 

hyounker

Link to comment
TJF1960, I started with "Control", rather than "Status", but I was unable to use MobiLinc to control the scene. Is there a way to maintain my MobiLinc control of the scene (I really don't need the "safety" in MobiLinc), while using the Fast On command, rather than On, at the KPL?
As is, I can switch into night time mode from MobiLinc using the scene.
Ok, this is where I am getting confused. If you are using mobilink to turn the Night Time scene on and off it should work regardless of whether you are using "status" or "control" of the kpl button in the program. When you are using the scene in mobilink or the scene in the ISY to control the scene, the program should not be called to run.

 

MobiLinc reports the KPL button as "Status Only Device" and there is no means to turn it on or off.
Right, the kpl secondary buttons cannot be used as a control and turned on or off other than locally. Is this what you were wanting to do? To control the kpl button from the device section of mobilink?
Link to comment
Oberkc, the problem is that we are accidently pressing the button. I am looking for a "safety" of sorts, to keep this from happening.

 

The point I was trying to make was that I see NOTHING that would cause "NIGHT TIME" scene to go off, accidentally or otherwise. I suspect there are things going on in programs or scenes that you have not mentioned or described.

Link to comment

TJF1960,

 

Yeah, I'm sort of getting confused as well. My lack of knowledge and inability to follow your thinking is obviously hurting our progress here. My apologies.

 

Let's sort of start over.

 

As it stands now, I have 5 lights involved in this scene. Using programs, I have also involved one KPL button and it's associated LED. The goal is for the KPL button LED to alert the status of our "Night Time" scene. The LED should be on when the conditions of the scene are met. The LED goes out when any of the conditions of the scene are not met. When the scene is on, four lights go out and one is dimmed to 40%. When the LED is off, and we want to go into "Night Time", we push the button, turning on the scene, and subsequently the LED on the button.

 

The scene is set to control the lights in a fashion as detailed in the "Night Time Indicator" program. I'm not sure how to post the contents of a scene.

 

The KPL button is labeled "Good Night".

 

The scene is controlled by the KPL with the following "Night Time" program:

 

If
       Status  'Good Night' is On

Then
       Set Scene 'Night Time' On

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


 

The LED behind the KPL button is controlled with the following "Night Time Indicator" program:

 

If
       Status  'Antler Chandelier' is not Off
    Or Status  'Kitchen KPL Kitchen Lights' is not Off
    Or Status  'Brkfst Table Lights' is not 40%
    Or Status  'Mstr Bedroom Fan Lights' is not Off
    Or Status  'Patio Door Lights' is not Off

Then
       Set Scene 'Night Time Indicator' Off

Else
       Set Scene 'Night Time Indicator' On


 

So, if the KPL Button LED is off, pressing it initiates the "Night Time" scene and all the lights respond correctly. Then, the KPL button LED is turned on by the above program. This all works properly.

 

If the KPL button LED is on, indicating that we are already in the "Night Time" scene, and the button is pressed, then, the only light that is dimmed by the scene, is turned off. The KPL button LED is also turned off.

 

In the ISY Contol, if any of the devices are in a state other their "Night Time" state, I can press either "On" or "Fast On" and the scene is immediately initiated and all lights respond correctly.

 

In MobiLinc, if any of the devices are in a state other than their "Night Time" state, I can click the scene symbol and the scene is immediately initiated and all lights respond correctly. Occasionally, when a light in the scene is dimmed, the scene will report the level (for example, 19%) of the light that is dimmed. Clicking on the scene symbol then also initializes the scene and all lights respond correctly. If MobiLinc is reporting that the scene is "On", clicking on the scene symbol will then turn the dimmed light off (just as it does with the KPL button and the ISY control).

 

All this seems to work in an acceptable way and we've great success with it. However, occasionally, we will accidentally press the KPL button for the scene, turning it on at undesirable times. My goal for this post is to find a way to require more than on press of the button, so that the requirements for initiating the scene are more defined, hopefully elimimating turning this scene on accidentally.

 

Hopefully this clears something up! Sorry, again, I'm still learning and I hope my past responses didn't lead you astray.

 

Thanks again,

 

hyounker

Link to comment

TJF1960,

 

I just changed my "Night Time" program as follows (changed from "Status" to "Control"):

 

If
       Control 'Good Night' is switched On

Then
       Set Scene 'Night Time' On

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


 

Everything works exactly as described in my very last post for the ISY, MobiLinc, and the KPL button.

 

hyounker

Link to comment
The point I was trying to make was that I see NOTHING that would cause "NIGHT TIME" scene to go off, accidentally or otherwise. I suspect there are things going on in programs or scenes that you have not mentioned or described.

 

The scene is not going off, the lights are. We are accidentally pressing the button, turning the scene on, which turns the lights off.

 

hyounker

Link to comment
If the KPL button LED is on, indicating that we are already in the "Night Time" scene, and the button is pressed, then, the only light that is dimmed by the scene, is turned off. The KPL button LED is also turned off.
I am with you right up to this statement. This leads me to believe that the kpl button is included in the scene, otherwise I am not seeing a reason for this to happen in the two programs. Is the kpl button part of the scene?
Link to comment
TJF1960,

 

I just changed my "Night Time" program as follows (changed from "Status" to "Control"):

 

If
       Control 'Good Night' is switched On

Then
       Set Scene 'Night Time' On

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


 

Everything works exactly as described in my very last post for the ISY, MobiLinc, and the KPL button.

 

hyounker

 

If changing from status to control in this program hasn't changed the way everything works then you should be able to change it to:

If
       Control 'Good Night' is switched Fast On

Then
       Set Scene 'Night Time' On

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

This will require the kpl button to be pressed twice rapidly in order to run this program.

Link to comment

Okay, I changed it to "Fast On", but now I have another problem with the accidental pressing of the button.

 

If I press the button just once, it turns the LED on, indicating (falsely) that the "Night Time" scene is active and that all the conditions are met.

 

I have some ideas about how I can fix this, but your input will be helpful and appreciated.

 

Thanks,

 

hyounker

Link to comment
If

Control 'Good Night' is switched On

 

Then

Wait 2 seconds

Set Scene 'Night Time Indicator' Off

 

Else

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

 

This works to turn the LED back off after an accidental "one press".

 

Do you see any problems elsewhere with this?

 

hyounker

Link to comment

Try these programs out. Set up the first program like this:

If
       Control 'Good Night' is switched Fast On

Then
       Set Scene 'Night Time' On

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

Next define a State variable such as sNiteScene. Then change your Night Time Indicator program to:

If
       Status  'Antler Chandelier' is not Off
    Or Status  'Kitchen KPL Kitchen Lights' is not Off
    Or Status  'Brkfst Table Lights' is not 40%
    Or Status  'Mstr Bedroom Fan Lights' is not Off
    Or Status  'Patio Door Lights' is not Off

Then
       Set sNiteScene = 0

Else
       Set sNiteScene = 1

Create two other programs like:

If
       Status  'Good Night' is On
And   sNiteScene is 0

Then
       Wait 5 seconds
       Set Scene 'Night Time' Off

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

If
       Status  'Good Night' is Off
And   sNiteScene is 1

Then
       Wait 5 seconds
       Set Scene 'Night Time' On

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

 

Now when your first program turns true by a fast on at the kpl button it will turn the scene on. When the scene turns on, the second program will turn false setting the variable to 1 indicating the scene is active. Programs 3 and 4 will evaluate to false...doing nothing basically.

Now when your second program turns true by a light being turned on locally or otherwise, program two will evaluate true and will set the variable to 0 indicating the scene is not active. Then program 3 will turn true and turn the kpl button off in 5 seconds. I used a wait to make sure all scene commands finished. You can probably shorten the time to 1 or 2 seconds.

Now if you control the scene via mobilink programs 3 or 4 will evaluate and set the kpl button to the correct status as well.

At least in theory :D

 

Tim

Link to comment
If

Control 'Good Night' is switched On

 

Then

Wait 2 seconds

Set Scene 'Night Time Indicator' Off

 

Else

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

 

This works to turn the LED back off after an accidental "one press".

 

Do you see any problems elsewhere with this?

 

hyounker

I don't see any problems with this.

Looks like I tried to over-engineer again :oops:

 

Although, in my defense, the reason I went the long way around was that your original Night Time program will evaluate every time a light is turned on or off or faded. The program will either be sending out an On or Off to the kpl button every time it evaluates...which just increases data line comm., and the possibilities of collisions.

Link to comment

TJF1960,

 

I appreciate your effort! This is probably the next step for me: understanding the use of variables.

 

Your program(s) will help me apply some real scenarios to the learning process. I will try to create the programs as you have outlined, if for no other reason than to take another spin on the learning curve.

 

Thanks again,

 

hyounker

Link to comment

Archived

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


×
×
  • Create New...