waffles Posted November 24, 2017 Posted November 24, 2017 What is the best way to set up Alexa control for an AVR? I'd like Alexa to send a set of commands to turn on my receiver, e.g. 1) turn on Zone 1, 2) set Zone 1 set to Input 1 3) turn on Zone 2, 4) set Zone 2 set to Input 1 .... I have set up the individual commands (IP) as network resources on the ISY. I have 'mastered' the control of my Insteon devices/scenes via Alexa. What I am missing is the link on how to 'trigger' one or multiple commands (network resources) via Alexa. Any help would be greatly appreciated! Thanks!
paulbates Posted November 24, 2017 Posted November 24, 2017 Assuming you have the portal, the best way is to configure the Echo, in the ISY Portal, to call an ISY program, and put the different sequence of events in that ISY program Check here, scroll down / find "Program" Paul
waffles Posted November 24, 2017 Author Posted November 24, 2017 Got it, Paul! Thanks much! (For Programs: Turn On: “Alexa, turn on the kitchen light” - runs Then Turn Off: “Alexa, turn off the kitchen light” - runs Else) I was not sure what to enter under "If", so I left it blank. It seems to work. I see an A/V tab in the Portal. From what I understand this for an yet to come feature, correct?
paulbates Posted November 24, 2017 Posted November 24, 2017 (edited) Got it, Paul! Thanks much! (For Programs: Turn On: “Alexa, turn on the kitchen light” - runs Then Turn Off: “Alexa, turn off the kitchen light” - runs Else) I was not sure what to enter under "If", so I left it blank. It seems to work. I see an A/V tab in the Portal. From what I understand this for an yet to come feature, correct? In this case, Then and Else are simply "procedures" for True ("turn x on") and false ("turn X off") conditions from Alexa. You don't need anything for the "If" I believe the A/V portal options are new for the ISY Alexa Skill 3. At a minimum you'd need to upgrade to 3. I've seen notes, but personally not up-to-speed on that. Benoit has had recent posts on ISY Skill 3. Paul Edited November 24, 2017 by paulbates
bmercier Posted November 24, 2017 Posted November 24, 2017 What is the best way to set up Alexa control for an AVR? I'd like Alexa to send a set of commands to turn on my receiver, e.g. 1) turn on Zone 1, 2) set Zone 1 set to Input 1 3) turn on Zone 2, 4) set Zone 2 set to Input 1 .... I have set up the individual commands (IP) as network resources on the ISY. I have 'mastered' the control of my Insteon devices/scenes via Alexa. What I am missing is the link on how to 'trigger' one or multiple commands (network resources) via Alexa. Any help would be greatly appreciated! Thanks! There are 2 ways. If you want to run a sequence of event, Paul's approach is best. If you want to want granular control through Alexa, use the virtual A/V device. To do so, just click Add | A/V, then map your AVR commands. The last tab is used for the input select. For the input select specifically, you can map up to 8 inputs. As an example, under input 1, choose "Network resource", then select your network resources that changes the input to let's say "Game", then give that input a name: "Game". When you say "Alexa, change input to game", this will run the network resource. The virtual A/V does not have a concept of zone. However, you can create several A/V devices, one for each zone. Benoit
bmercier Posted November 24, 2017 Posted November 24, 2017 I believe the A/V portal options are new for the ISY Alexa Skill 3. At a minimum you'd need to upgrade to 3. I've seen notes, but personally not up-to-speed on that. Benoit has had recent posts on ISY Skill 3. Yes, V3 is required. Benoit
stusviews Posted November 24, 2017 Posted November 24, 2017 (edited) Most of my "Echo" programs have no condition. A few take advantage of extant programs that do have a conditional and are used each way (with and without the conditional). For those Echo commands that do need a condition, I use "run" as Then and/or Else statements. Edited November 24, 2017 by stusviews
waffles Posted November 24, 2017 Author Posted November 24, 2017 Thanks much, all! ..... When you say "Alexa, change input to game", this will run the network resource. ... Wouldn't I need to tell Alexa which device I want the input changed to game?
bmercier Posted November 24, 2017 Posted November 24, 2017 (edited) Wouldn't I need to tell Alexa which device I want the input changed to game? Good catch. The exact way to ask is: "Alexa, change input to game on <device>", device being the spoken assigned to your virtual A/V. All Alexa A/V commands ends with "on <device>", except for turn on/turn off. So a sequence could be: Alexa, turn on tv Alexa, turn on home theater Alexa, turn on dvd player Alexa, change input to dvd player on home theater Alexa, increase volume on tv Alexa, play on dvd player Alexa, pause on dvd player Benoit Edited November 25, 2017 by bmercier
bmercier Posted November 25, 2017 Posted November 25, 2017 Please give us some feedback when you have played with it Benoit
larryllix Posted November 26, 2017 Posted November 26, 2017 How does the ISY portal know what a DVD player is? You can't define DVD or VCR devices in ISY. Sent from my SGH-I257M using Tapatalk
bmercier Posted November 26, 2017 Posted November 26, 2017 In ISY Portal, you can configure a virtual A/V device. On that virtual A/V device, you assign network resources to Alexa functions like "Play". Benoit
giomania Posted November 28, 2017 Posted November 28, 2017 Good catch. The exact way to ask is: "Alexa, change input to game on <device>", device being the spoken assigned to your virtual A/V. All Alexa A/V commands ends with "on <device>", except for turn on/turn off. So a sequence could be: Alexa, turn on tv Alexa, turn on home theater Alexa, turn on dvd player Alexa, change input to dvd player on home theater Alexa, increase volume on tv Alexa, play on dvd player Alexa, pause on dvd player Benoit Whew! Call me when she can read my mind, and I can just say "Alexa, just do it"! Sent from my iPhone using Tapatalk
larryllix Posted November 28, 2017 Posted November 28, 2017 Whew! Call me when she can read my mind, and I can just say "Alexa, just do it"! Sent from my iPhone using Tapatalk Wrong brand! With google they will do what they think you should do...and please don't call them "skynet" or tour HA win not respond for a predetermined punishment period each time, that escalates every offence! Please don't mention I said this
rogerwise Posted December 4, 2017 Posted December 4, 2017 What about state variables like volume? I figured I'd create a program that monitors IF the variable (changes) and THEN triggers a resource but I don't know the syntax for putting the state variable in the resource.
bmercier Posted December 4, 2017 Posted December 4, 2017 I think in most cases, it’s easier to use fixed network resources to increase and decrease volume, and assign them to the volume up/down, and not use network state variables at all. Sent from my iPhone using Tapatalk
rogerwise Posted December 4, 2017 Posted December 4, 2017 (edited) Maybe I should have been more specific. I have a stereo that has a midrange enhancer that's switched on/off but has a numeric setting. Is it not possible to insert a state variable directly into a network resource? Would I need to create separate programs to do it the way I envision? I should add that the enhancer changes the sound and boosts the center channel. I'd like to decrease the center channel equal to the amount I'm boosting, which is the reason doing it with variables Edited December 4, 2017 by rogerwise
bmercier Posted December 4, 2017 Posted December 4, 2017 Maybe I should have been more specific. I have a stereo that has a midrange enhancer that's switched on/off but has a numeric setting. Is it not possible to insert a state variable directly into a network resource? Would I need to create separate programs to do it the way I envision? I should add that the enhancer changes the sound and boosts the center channel. I'd like to decrease the center channel equal to the amount I'm boosting, which is the reason doing it with variables To my knowledge, it's not possible to dynamically set the content of a network resource. If someone really wanted that, I guess you could configure 20-30 network resources with each a specific numeric value, 20-30 programs, and use a state var to trigger the corresponding network resource. But that's a lot of network resources and programs for the task. Benoit
rogerwise Posted December 5, 2017 Posted December 5, 2017 Agreed. I had seen in V3's Virtual AV section that you one send a command to a state variable (for volume for example) and I was just going on what makes sense. Actually I just now got an idea. I can make a variable volume_shadow and if program that asks IF volume<shadow_volume THEN Network-resource-add-one ELSE Network-resource-sub And drop that in a folder that runs IF volume!=shadow_volume
Charlie_Morlock Posted December 5, 2017 Posted December 5, 2017 I've had pretty good results with the AV controls, but changing the volume is a little awkward. Alexa responds to softer or louder, but on a sharp TV, only 1 increment at a time. But I don't think that is an isy problem. Perhaps not even Amazon, since the command set allows either setting volume to a specific level, or simulating pressing the volume buttons on the remote. And, on the remote, you usually hold down the button until you get the sound level you want. Given all the brands out there, I can't think of how they could generalize that to all scenarios. Do you offer a number of repeats per command? Seems like it my flood the network. Default duration? Same issue, So, back to specifying a value. I did see in the wiki that you could make the variable a delta by specifying a + or -, but I couldn't get it to work. But, watching Monday Night Football was pretty cool being able to say 'alexa rewind', and she would do it. Don't get nearly the same result when I ask my wife to do that. I do have Directv with DVR, so was able to find protocol online for DVR commands. Sent from my SAMSUNG-SM-T377A using Tapatalk
MWareman Posted December 5, 2017 Posted December 5, 2017 (edited) To my knowledge, it's not possible to dynamically set the content of a network resource.Benoit, Since a few versions ago (4.3.26), you can do (most) email substitutions in network resources, as long as you don’t check ‘Encode’... The ones you cannot do are those that include # to indicate the triggering device. These are all listed on the Wiki.. https://wiki.universal-devices.com/index.php?title=ISY-994i_Series:EMail_and_Networking_Substitution_Variables and certainly includes state and integer variables. Edited December 5, 2017 by MWareman 1
bmercier Posted December 5, 2017 Posted December 5, 2017 Benoit, Since a few versions ago (4.3.26), you can do (most) email substitutions in network resources, as long as you don’t check ‘Encode’... The ones you cannot do are those that include # to indicate the triggering device. These are all listed on the Wiki.. https://wiki.universal-devices.com/index.php?title=ISY-994i_Series:EMail_and_Networking_Substitution_Variables and certainly includes state and integer variables. Ok great, I was not aware of that. Benoit Sent from my iPhone using Tapatalk 1
dpower Posted December 12, 2017 Posted December 12, 2017 I'm working with Alexa using the ha-bridge java service and it's working quite well at this point. I'm wondering if it's possible to trigger a network resource directly (i.e. through the REST interface?) rather than embedding them within a program and then calling the program via REST. Has anyone had success with this? Thanks, dp
Michel Kohanim Posted December 13, 2017 Posted December 13, 2017 Hi dpower, Yes in Alexa V3 and through ISY Portal: http://wiki.universal-devices.com/index.php?title=ISY_Portal_Amazon_Echo_Integration_V3#A.2FV_Devices With kind regards, Michel
Recommended Posts