Request to support Errors and Exceptions #458
Replies: 5 comments
-
Hi @FireWizard52, this would be a very nice addition. I'm trying to find out how this is done in SmartNora. Is this the async stuff documented in https://github.com/andrei-tatar/node-red-contrib-smartnora/blob/master/doc/nodes/async.md? Regards |
Beta Was this translation helpful? Give feedback.
-
Hello @Caprico85, You asked:
I think yes and no. No because, if I check all the commits in Andrei Tatars repo "nora-firebase-common " the first time async is mentioned is version 1.4.2. (August 23, 2021), while the error code is mentioned for the first time in version 1.0.51 (May 17, 2021) On Google side all information is available at: https://developers.home.google.com/cloud-to-cloud/intents/errors-exceptions and https://developers.home.google.com/cloud-to-cloud/integration/error-handling And Yes, Andrei Tatar has introduced asynchronous communication, because, I believe, that makes it possible to use (custom?) response messages. It is currently experimental, I read, but if you have a Nora Switch, you can tick a box, called Async command execution. If that can be a custom message or that it has to be one of the Google List, I'm not sure. I never used it. The only thing I know, is that, if you use a Nora device and you give a command to switch it "on", you will get a response in case it is already "on", that the device is already "on". I never used the response node. It is long time ago, I used SmartNora in order to test the Google "Local fulfillment" issue. The contents of the upper "Function" node is as follows:
And the second:
I hope this info is useful. Best regards |
Beta Was this translation helpful? Give feedback.
-
You can use the async flow to return errors, but there's also a simpler way to do it with NORA: |
Beta Was this translation helpful? Give feedback.
-
@andrei-tatar The "If state doesn't change, warn user" is a nice idea. Thank you. Should be relatively easy to implement. Having a "response" node looks to get a custom reponse back into the system is more flexible, but that seems like quite a bit of work. Don't expect anything from me any time soon. If someone wants to work on a PR, I'd be happy about that too. |
Beta Was this translation helpful? Give feedback.
-
In the meantime I'll convert this into a discussion, |
Beta Was this translation helpful? Give feedback.
-
Hi,
As you can make a request, see #280, I would ask, whether it is possible to implement "Error and Exceptions" report
See: https://developers.google.com/assistant/smarthome/reference/errors-exceptions
It is not a big issue, when you try to switch on a lamp and Google tells you to do so, even if the lamp is already on.
But it would even be better to get voice information "device(s)> <is/are> already on".
it would be a nice improvement, as e.g. Smartnora has such a function implemented already.
Regards
Beta Was this translation helpful? Give feedback.
All reactions