Hi everyone!
I'm developing a driver and sometimes, depending on a variety of conditions, it may reject a command.
My driver reports with a custom attribute when a command is rejected, so, with RM it's not difficult to intercept this rejection - just check the custom attribute.
However, I'm experiencing problems with Alexa: she doesn't understand that the command was not executed. After some 30 seconds after the command is set, it replies with a "Sorry, the device does not answer".
I've checked if I could return a value from the method that executes the command, but there is no return value available (void).
I don't want - for now - that she answers the user with the reason why the command has been rejected - just answering that the command was rejected would be enough, since the user may want to use RM and Follow Me to send a personalised message to Alexa explaining why the command was rejected, based on the custom attribute's value.
I've found that there's a way of telling Alexa about an error ( Alexa.ErrorResponse Interface), maybe using the NOT_SUPPORTED_IN_CURRENT_MODE (but, strangely and if I didn't get it wrong, it is not possible to send back a personalised message). However it's available only inside an Alexa skill (Hubitat Alexa skill) and I don't know how to trigger it from HE.
So, this is my question: how to report back to Alexa when a command has not been executed?
Thanks in advance for any help!