Jump to content
C4 Forums | Control4

Media Source Switching Help


Jaffacree

Recommended Posts

Hello,

In my Living Room i have my TV and Music on/off toggles on a keypad.  The TV portion works just fine, but when I want to listen to music, I have to hit the button dozens of times in order for it to activate and play music.  Attached are the screenshots of my programming.  Where am I going wrong?

Tv On-Off.PNG

Music On-Off.PNG

Link to comment
Share on other sites


In the programming for the music, you’re turning on the Sonos, then you have a conditional that turns the Sonos off if it is on.

I would expect the result of this programming would be to turn the Sonos on, then immediately turn it back off.

I don’t know what you’re doing with the timer, but consider trying this:

  • Move the light timer programming to the top (so it’ll run no matter what).
  • Put a programming stop command after (and on the same level as) the play Sonos command at the end of the first conditional. This will quit running programming after turning on the Sonos, so it’s not immediately turned back off. 

I’m not super familiar with the best/most efficient way to call up and play a Sonos favorite, but I’ll assume that choosing the favorite (based on the day/date conditional), then pressing play works ok. If so, the changes above should be an easy way to prevent your programming from cancelling itself out.

I’m guessing roku and Sonos are the only sources you’ll use? What happens (or should happen) if you push the music button while the roku is playing? Does the TV turn off? If not, consider putting a room off command as the first thing under the condition, before your day/date logic.

You seem to have keypad lights for on/off state, but it’s not clear to me that the TV on/off led is going to be set properly if you push the music button while the roku is playing. I like to remove that from button programming and do it with a macro - have a macro that sets the keypad leds based on the current selected devices and have it run whenever the room’s selected device changes. That way, you can edit that behavior separately from the on/off programming, and it’ll always be right (even if you change the source from the app or remote).

Link to comment
Share on other sites

16 hours ago, Dr. Venkman said:

In the programming for the music, you’re turning on the Sonos, then you have a conditional that turns the Sonos off if it is on.

I would expect the result of this programming would be to turn the Sonos on, then immediately turn it back off.

I don’t know what you’re doing with the timer, but consider trying this:

  • Move the light timer programming to the top (so it’ll run no matter what).
  • Put a programming stop command after (and on the same level as) the play Sonos command at the end of the first conditional. This will quit running programming after turning on the Sonos, so it’s not immediately turned back off. 

I’m not super familiar with the best/most efficient way to call up and play a Sonos favorite, but I’ll assume that choosing the favorite (based on the day/date conditional), then pressing play works ok. If so, the changes above should be an easy way to prevent your programming from cancelling itself out.

I’m guessing roku and Sonos are the only sources you’ll use? What happens (or should happen) if you push true music button while the roku is playing? Does the TV turn off? If not, consider putting a room off command as the first thing under the condition, before your day/date logic.

You seem to have keypad lights for on/off state, but it’s not clear to me that the TV on/off led is going to be set properly if you push the music button while the roku is playing. I like to remove that from button programming and do it with a macro - have a macro that sets the keypad leds based on the current selected devices and have it run whenever the room’s selected device changes. That way, you can edit that behavior separately from the on/off programming, and it’ll always be right (even if you change the source from the app or remote).

That is it.  I added in a break and that solved it.  Yes the scheduling programming works the way it should.  It was just creating a loop that it couldnt get out of.  Appreciate the help.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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