- Posts: 373
- Thank you received: 3
IP and IR
- bitzerjd
- Topic Author
- Offline
- User
-
Less
More
4 months 2 weeks ago #4830
by bitzerjd
IP and IR was created by bitzerjd
I was bored and decided to play with IP control for my ATV again. I setup a system variable (ATVcontrol) and set it to IR or IP. Depending on the variable it loads a scene for either the IP or IR control. I then modified it so the logic was in the button. Each button calls a macro, the macro has an ISequal statement that does a simple If, Then, Else. If ATVcontrol = IR run the IR command, if not IR, run the IP command.
I then added a button to the ATV scene that toggles the ATVcontrol variable and displays the current "control". I like using IP control, but with the ATV I found previously that it would break when the ATV was updated. With this setup, if that happens, I can simply press a button and switch it over to IR.
Is this needed...NOPE, it's just fun to play around with the system and have it do things like this.
I then added a button to the ATV scene that toggles the ATVcontrol variable and displays the current "control". I like using IP control, but with the ATV I found previously that it would break when the ATV was updated. With this setup, if that happens, I can simply press a button and switch it over to IR.
Is this needed...NOPE, it's just fun to play around with the system and have it do things like this.
Please Log in to join the conversation.
- aa6vh
- Offline
- User
-
Less
More
- Posts: 108
- Thank you received: 7
4 months 2 weeks ago #4831
by aa6vh
Replied by aa6vh on topic IP and IR
You don't have to make it that complicated. When I want to send an IR command to my Onkyo AV receiver, I do something like:
Control|4~SendIR~Oppo Digital-All Models (IR Address 1)~MAIN
The "Control|4" is my IR system emitter port.
When I want to send an IP command:
AV|4~Volume~Up
It is just coincidence that my emitter number (4) for IR commands is the same as the device number (4) for the IP commands.
So any of my control buttons on a scene can use either one.
I do this for Onkyo because the IP commands are only a subset of the available commands, so I supplement them with additional IR commands.
You probably notice I do not use Server variables to designate my devices. But the above can work the same with server variables if one chooses to.
Control|4~SendIR~Oppo Digital-All Models (IR Address 1)~MAIN
The "Control|4" is my IR system emitter port.
When I want to send an IP command:
AV|4~Volume~Up
It is just coincidence that my emitter number (4) for IR commands is the same as the device number (4) for the IP commands.
So any of my control buttons on a scene can use either one.
I do this for Onkyo because the IP commands are only a subset of the available commands, so I supplement them with additional IR commands.
You probably notice I do not use Server variables to designate my devices. But the above can work the same with server variables if one chooses to.
Please Log in to join the conversation.
- bitzerjd
- Topic Author
- Offline
- User
-
Less
More
- Posts: 373
- Thank you received: 3
4 months 2 weeks ago #4832
by bitzerjd
Replied by bitzerjd on topic IP and IR
I'm not trying to mix commands within the scene. I'm switching the entire scene to IR or IP with the push of a button. I've had IP fail after an update, and in a pinch I can simply press a button and switch it over to IR.
I use system variables for all devices so if I muck with something (like switching my Global Cache devices I can simply update the one variable.
The nice thing about myServer is that there are many different ways to get things done.
I use system variables for all devices so if I muck with something (like switching my Global Cache devices I can simply update the one variable.
The nice thing about myServer is that there are many different ways to get things done.
Please Log in to join the conversation.
Time to create page: 0.156 seconds