I have a skylight that’s unsupported in HE so I was able to load it up in HA and set a Virtual Switch in HE which talks back to HA via HE’s Maker API which then triggers a HA automation.
I use the HE Echo app (for voice control) which I’ve set up Custom Routines to trigger it.
Problem is, my wife still uses the remotes for the skylights so when I go to use a voice command, sometimes it doesn’t work because I think her manual use of the remote doesn’t communicate back to HE the state the state the skylight is in.
For example, if she opens the skylight 1 by remote, then later I go to say “Alexa, close skylight 1”, nothing happens. HOWEVER, if I say, “Alexa, open skylight 1” the skylight will make a brief motor noise then stop and then I can say, “Alexa, close skylight 1” and it will work.
Alexa unfortunately doesn’t have any advance routines in which I can set the switch to open the skylight 1 , wait X seconds, then close skylight 1.
HE doesn’t see the state of the skylight since it’s a virtual switch.
So do I have to create some sort of failsafe check in an Automation (rule/routine) in HA to do the opposite of what I intend first, wait, then proceed with what is intended?
Or is there another simpler way that I am missing?