Hello again all -
A while back I used an ESP8266 with HubDuino to cobble together a Garage Door Opener control (timed relay to simulate a button push to the head unit and a wired contact to judge if/when the door is open or closed).
I used @ogiewon's example sketch and everything works great within the Hubitat ecosystem. The Parent Driver created a single Child which is of type: "doorControl."
I also exposed the child device to Alexa through the built-in Amazon Echo Skill. Alexa had no problems finding the device and correctly displays the door's state (open/closed) using it. However, what I can't do with this device is open or close the door. The details for the device in the Alexa app show that it has been recognized as a contact sensor, but not a button, switch, or relay. It seems Alexa should know how to deal with multi-functional devices, since it gracefully deals with things like door locks.
For the time being I have created a virtual switch in Hubitat that is set to automatically return to the "off" position 1s after being turned on. I exposed that virtual switch to Alexa instead of the doorControl child and have a rule in Hubitat to run the custom action "push()" on the child whenever the virtual switch is turned on by Alexa. This works, but it a little hackey/hokey, causing me to say something like, "Alexa, turn Garage Door Opener ON, please." Instead of the more natural, "Alexa, (Open/Close) Garage Door, please."
Has anyone else approached the same problem in a different way, or have a more thoughtful solution to suggest? Overall, this is a nitpick, it just feels like there might be a better way that I'm not thinking of...