Jump to content

Setting State Variables in Routines


Recommended Posts

Posted

I've just started integrating the ISY with my Echos and it's been pretty smooth so far! I'm able to change state variables by voice by turning them on/off. But, to make it more natural, I'm trying to use a Routine on the Echo to handle "turning on"/changing the variable. I've setup the variable as a scene in the Alexa app. It's showing the "Scenes" list, but not in the "Scenes" list when I go make a routine. Perhaps it's a similar problem as 

?

Posted

I'd suggest to expose the variable as a device instead.

The added benefit is that a variable exposed as a device can have a brightness level which translates to the variable value. In other words, turning on the "variable" to 50% will set it to 50. 

Benoit

  • 1 year later...
Posted

I know this is a bit old post, but can you give a sample how to do this....my Alexa only use announcements after motion sensors(hidden door sensors to be precise) are triggered

Posted

I think you have door sensors attached to your  ISY that, when triggered, you want Alexa to announce to all of your echos “The front door is open.”   Is that the case??

Posted

Just looking up the same thing on these forums. Yes. I'm wondering what the technique is to be able to have Alexa announce the state of a sensor. "Alexa, is my garage door open?"

 

Posted (edited)

To have Alexa announce a voice message from ISY. You have to define a pseudo MS in ISY Portal for the Alexa bridging table. In this process you will need to name the pseudo device, and define a state of the State variable to be considered On.

After that is done, you can tell Alexa...discover! to install the new device.

In the Alexa app (not the website),  you create a routine with a trigger input of the pseudo MS you have created, and then define a custom voice output for the same routine.

Sometimes this may take some time for the routine to be first accepted into your account.
Voice output routines can only be triggered every 30 seconds, or more, or they may not function.

To trigger, store a value of 1 into the state variable, wait 30+ seconds and then store 0 into the same variable.

I name my variables in this style $sSayGarageDoorsAreClosed etc...

 

Edited by larryllix
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...