You can set up a virtual switch that tells Alexa to run a custom routine. Alexa custom routines can issue “voice” commands to the Alexa device. For example the Custom command can tell Alexa, “Alexa open Schalge lock with code xxxx” (all locks require a code to open from Alexa).
Virtual/Physical Switches and Dimmers cannot trigger Alexa Routines. However, virtual/physical contact sensors, motion sensors, and locks can be used to trigger Alexa routines.
Quick related question -- is there a simple way to get the URL to trigger a rule (and provide parameters)? Ideally, it would be shown in the rule settings so I could copy it.
I did look at the instructions but when I look I don't see an AppID and using the name didn't work.
An alternative would be to list the rule in the Maker API which does present simple sample URLs.
I think you're misunderstanding the point of my earlier clarification... Virtual Switches, nor any type of switches or dimmers for that matter, can currently be uses to TRIGGER an Alexa Routine at this time. Motion Sensors, Contact Sensors, and Locks can be used to Trigger Alexa Routines from Hubitat.
Yes, it is possible to turn on/off switches as Alexa Routine ACTIONS. And with the new Custom Actions, anything you can say to Alexa can now become an Action. But these are not the TRIGGERS that execute Alexa Routines... (Well, of course the Alexa Custom Action could be used to trigger another Alexa Routine, but we still need something to trigger the original Alexa Routine... )
Unless I am still misunderstanding what you're trying to share?
Perhaps an example helps. A screenshot of a rule that is triggered using a local endpoint and turns on an Alexa device? I'm close but missing something that should be obvoius.
The converse would be useful too -- but that's more about Alexa and having it invoke a URL.
What exactly are you trying to accomplish? I have no idea how local endpoints as a RM Rule Trigger play any role without more context of what you're trying to accomplish?
Alexa can be used to control Hubitat devices, like switches, dimmers, color bulbs, and locks in Alexa Routine ACTIONS.
Hubitat Motion Sensors, Contact Sensors, and Locks can be used to TRIGGERS for Alexa Routines.
With those building blocks available, what would you like to accomplish? I am missing the point of the RM URL Endpoint as a RM Rule Trigger...
I was just use local endpoint as an arbitrary chioce -- I just want an example of how to trigger an Alexa action.
Separately my test virtual switch isn't being discovered by Alexa but I don't want to confuse the two directions. First I want Hubitat ==> Alexa to work so I can write a program to control Alexa via Hubitat (or Google Home but that doesn't seem to be supported yet).
Hubitat web apps need to be upgraded to automatically save and/or warn. There are too my update buttons and save buttons that are easy to miss. This is why browsers have a feature to catch page exits.