Jump to content
C4 Forums | Control4

Newbie Question of the day


Recommended Posts

Hello:

I am learning programming on HE as we speak and have a random question. Unfortunately, I have a feeling I will have several questions along the way, all of which I will post here rather than junk up the forum. Any help would be greatly appreciated.

Today, I created a custom lighting scene that would cut on my bathroom lights and bathroom fan. I have the EV Sonos driver installed, and it is linked in with my Sirius XM account.

Next, I created a custom button in my Master bedroom called "Shower" and set it to launch my lighting scene when it is selected.

First, I am trying to determine how to program the system to play a certain Sonos /Sirius station when I select this custom button.

Next, when I select the custom button, the scene launches and then immediately cuts off again. What am I missing that is causing the scene/programming to act this way?

Thanks!

Link to comment
Share on other sites


The code is as follows:

When Custom Button HR Shower on Screen Lighting in Master is Pressed, Execute Scene HRShower - ON

When Custom Button HR Shower on Screen Lighting in Master is Released, Execute Scene HRShower - OFF

I figured out the obvious.... when I press the custom button, the scene executed. Immediately when i release the button, the scene stops executing. Correct me if I am wrong, but it seems like I need an If/Then conditional....

If Scene HRShowe is ON and Custom Button HR Shower on Screen Lighting in Master is Pressed, Executed Scene HRShower - OFF

Let me know what you think.

Link to comment
Share on other sites

^You would not use the "conditional" function. Just do what #5 says and place it in the script for the custom button in question.

I am not sure what you mean. I will admit, I am very new to this. Trust me, one time around the block, and I assure you, I will get it down pat.

How do I place an if/then in the script if I am not using a conditional?

Link to comment
Share on other sites

create a boolean variable "Harry's Shower"

create a lighting scene "Harry's Shower"......u have the scene already

then in programming:

on the programming side goto your variable "Harry's Shower"

on the action side goto your variable "Harry's Shower"........put in (2) if statements............(1) for true and (1) for false......under conditionals

on the action side goto your lighting scene "Harry's Shower"

select Harry's Shower-On ......nest under the true if statement

select Harry's Shower-Off for ..nest under the false if statement

then back over to the programming side select your custom button.....pressed

then back to the action side select your "Harry's Shower" variable.........select the toggle action

Link to comment
Share on other sites

now he has options, or at the very least learned how to toggle a lighting scene...pre-advanced scene toggle

which is great for keypads, using 1 button

but hear ya!!

Why would you not use Advanced Lighting Scenes on a keypad button? The whole point of them is that they can track the state of the scene and create an actual toggle binding complete with LED tracking.....

Link to comment
Share on other sites

now he has options' date=' or at the very least learned how to toggle a lighting scene...pre-advanced scene toggle

which is great for keypads, using 1 button

but hear ya!![/quote']

Why would you not use Advanced Lighting Scenes on a keypad button? The whole point of them is that they can track the state of the scene and create an actual toggle binding complete with LED tracking.....

If I use Advanced Lighting Scenes, can I also program the scene to work with Sonos? Again, it's not just the lighting... I want my music, etc. running as well.

Thanks for all the help, and sorry for being a tootle noobie on this.... I have to start somewhere, and you have all been extremely helpful.

Link to comment
Share on other sites

We all had to start somewhere.

And yes, you would just start the lighting scene (advanced or otherwise) AND do whatever else you wanted off of that button.

My previous comment is more geared towards keypad buttons, not touchscreen custom buttons.

Link to comment
Share on other sites

now he has options' date=' or at the very least learned how to toggle a lighting scene...pre-advanced scene toggle

which is great for keypads, using 1 button

but hear ya!![/quote']

Why would you not use Advanced Lighting Scenes on a keypad button? The whole point of them is that they can track the state of the scene and create an actual toggle binding complete with LED tracking.....

Wasnt sure what version he was on, that's why it says "pre-advanced scene toggle"

Link to comment
Share on other sites

I am on 2.4. If it is better to use an Advanced Lighting Scene, let me know. I want to make sure, however, that I can program other things (sonos) with an advanced lighting scene.

Godzilla: when building the if/then statements you mentioned, should I put a stop after the first if/then as suggested earlier?

It seems there could be a lot of bolleans in a project if you do a lot of programming.

Link to comment
Share on other sites

you dont need the stop in the above example.

advanced ltg scenes are easier, for the 1 button toggle, because it creates 1 for you, so you dont have to program the above example, just becareful in creating scenes (on what makes them active or inactive)....can be confusing for some

the older ltg scenes still work just fine....so either way you should be good

Link to comment
Share on other sites

I understand that if I go to Lighting --> Scenes, the button is already created and, when I press it, the lighting scene executes.

What I have done, however, is created a custom button on the home page of my master bedroom touchscreen called "Lighting" where I have the most used scenes in one list. This way, I don't ever need to leave the main home screen.

If I use an advanced lighting scene, the scene executes. However, I want to be able to integrate my Sonos (with my EV Sonos driver) into the programming so that the lighting scene executes and the Sonos automatically tunes to a certain channel in the master bathroom. Is this possible with an advanced lighting scene, or do I need to set it up via a custom button?

Thanks!

Link to comment
Share on other sites

You can do it two ways, either add the music option under the same custom button OR have the lighting scene itself execute the music - the latter means that however you trigger the lighting scene - the music starts playing.

This can be done using either normal or advanced.

Biggest difference (other than the advanced features that is) is that a light can be in less advanced lighting scenes than it can be in "normal" lighting scenes, something to keep in mind.

16 Advanced (including any "toggle" you create for that lighting scene) vs 32 is I THINK the number per light.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

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