- Posts: 248
- Thank you received: 33
Is this possible?
- bowlingbeeg
- Offline
- User
-
Less
More
2 years 4 months ago - 2 years 4 months ago #2124
by bowlingbeeg
Replied by bowlingbeeg on topic Is this possible?
I noticed that in your macro the following line is commented out
// SetVariable|{{activeroom_{{clientname}}}}_display_input~HDMI!
But then later you're trying to use that variable in this line
If|isNE##{{{{activeroom_{{clientname}}}}_display_input}}####AV|{{{{activeroom_{{clientname}}}}_display_id}}~source~{{{{activeroom_{{clientname}}}}_display_input}}!
So if you set the "display_input" variable correctly then you don't need to change the input on your F2/F3 button. You can just call the macro and it will automatically switch to the right input.
Unfortunately that doesn't explain why your skyq scene comes back after switching to the shield.
// SetVariable|{{activeroom_{{clientname}}}}_display_input~HDMI!
But then later you're trying to use that variable in this line
If|isNE##{{{{activeroom_{{clientname}}}}_display_input}}####AV|{{{{activeroom_{{clientname}}}}_display_id}}~source~{{{{activeroom_{{clientname}}}}_display_input}}!
So if you set the "display_input" variable correctly then you don't need to change the input on your F2/F3 button. You can just call the macro and it will automatically switch to the right input.
Unfortunately that doesn't explain why your skyq scene comes back after switching to the shield.
Last edit: 2 years 4 months ago by bowlingbeeg.
Please Log in to join the conversation.
- bowlingbeeg
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 4 months ago #2127
by bowlingbeeg
Replied by bowlingbeeg on topic Is this possible?
For the issue where your skyq scene is showing after switching to the shield scene. Is there a command in the properties of the sheildtv.html that could be doing it?
Please Log in to join the conversation.
- PhoenixF15E
- Away
- User
-
Less
More
- Posts: 91
- Thank you received: 3
2 years 4 months ago #2128
by PhoenixF15E
I agree--setting the input variable and changing the input in the activation macros is the cleanest approach. I think we need to see what kind of TV the OP has and what the proper command is for setting it to the proper input.
I also use the activation macro to turn on the associated equipment as well. This parallels what the Harmony does--click on the activity and everything is powered on and set to the correct input. It makes it easier for someone else to pick the remote up and figure out how to use it. I use a long press of the home button to get back to the initial screen with the room devices.
Kyle
Replied by PhoenixF15E on topic Is this possible?
That's the default code in the source activation macros. The display input variable can't be set without knowing what the correct input will be, so it is commented out when the macro is created. If the display variable isn't set, the If statement won't do anything.I noticed that in your macro the following line is commented out
// SetVariable|{{activeroom_{{clientname}}}}_display_input~HDMI!
But then later you're trying to use that variable in this line
If|isNE##{{{{activeroom_{{clientname}}}}_display_input}}####AV|{{{{activeroom_{{clientname}}}}_display_id}}~source~{{{{activeroom_{{clientname}}}}_display_input}}!
So if you set the "display_input" variable correctly then you don't need to change the input on your F2/F3 button. You can just call the macro and it will automatically switch to the right input.
Unfortunately that doesn't explain why your skyq scene comes back after switching to the shield.
I agree--setting the input variable and changing the input in the activation macros is the cleanest approach. I think we need to see what kind of TV the OP has and what the proper command is for setting it to the proper input.
I also use the activation macro to turn on the associated equipment as well. This parallels what the Harmony does--click on the activity and everything is powered on and set to the correct input. It makes it easier for someone else to pick the remote up and figure out how to use it. I use a long press of the home button to get back to the initial screen with the room devices.
Kyle
Please Log in to join the conversation.
- CurlyOscar
- Topic Author
- Offline
- User
-
Less
More
- Posts: 79
- Thank you received: 1
2 years 4 months ago #2132
by CurlyOscar
Replied by CurlyOscar on topic Is this possible?
The TV is a Panasonic. I had to set it up using IR Database, Generic IR & TV IR. Following on from one of your replies I have renamed it (and Sky & Shield) to BedroomTV
Can I ask how to comment or uncomment ?
Neil
Can I ask how to comment or uncomment ?
Neil
Please Log in to join the conversation.
- PhoenixF15E
- Away
- User
-
Less
More
- Posts: 91
- Thank you received: 3
2 years 4 months ago - 2 years 4 months ago #2134
by PhoenixF15E
Replied by PhoenixF15E on topic Is this possible?
If a line in a macro begins with "//" then everything after that until the exclamation point is a comment and is ignored. Bowlingbee showed the commented SetVariable command--if the leading "//" is removed and HDMI is replaced by the proper source for your TV, the later line with the If statement will change the input on your TV,
Now that you've renamed your sources, your activation macros should change names as well.
Just to double check--all three of your devices (Sky Q, Shield, and TV) have unique names?
Now that you've renamed your sources, your activation macros should change names as well.
Just to double check--all three of your devices (Sky Q, Shield, and TV) have unique names?
Last edit: 2 years 4 months ago by PhoenixF15E.
Please Log in to join the conversation.
- CurlyOscar
- Topic Author
- Offline
- User
-
Less
More
- Posts: 79
- Thank you received: 1
2 years 4 months ago #2135
by CurlyOscar
Replied by CurlyOscar on topic Is this possible?
Please Log in to join the conversation.
Time to create page: 0.222 seconds