Comments (2)
Thanks for your proposal.
Related to delayed/deferred response, this is something which is already in the works. This will introduce a new binding that will asynchronously respond to the Alexa API once it receives the command from the skill. Doing so will allow state response to be delayed waiting for the updated state up to 8 seconds (Alexa API limitation) with the exception of the LockController
capability that can go beyond that.
We attempted to add this feature to the skill in the past (#73) but realized that this would drastically increase the Lambda resource cost since the function would be unnecessarily idling waiting for a state change. This is the reason why the skill currently requires the item state to be updated right after a command is received.
As far as transitional states, I don't see much use since this is not natively supported by the Alexa API. These wouldn't come into play when the Alexa API is formulating a response to a voice command. Likewise at the Alexa app level, the integration would be very messy with no value added.
It is important to note that not all Alexa capabilities supports state responses. The last two examples you provided would be modeled as Activity
and Scene
which doesn't have a state on the Alexa side.
Only a few of the capabilities that support state response (e.g. lock state, garage door open state, thermostat temperature/mode) have a proper voice integration on the Alexa side that will trigger different responses based on the state returned. Others, such as switch power state or dimmer brightness level, will always trigger a successful voice response even though the state hasn't changed or isn't the one that was requested.
There is a fine line when it comes down to voice request acknowledgements. It is definitely reassuring to know that a successful response would indicate that the actual request was successful. However, it could also have a negative effect if you are trying to delay the response until you can guarantee that the command was processed as intended. This is even more the case with smart home devices since you would see the changes happening in your environment as the command is processed. In that case, it may not always be the best approach to delay the acknowledgement. In most cases, a voice request acknowledgement should be a confirmation that the skill was able to validate/process the request and send any relevant commands to the OH server.
from openhab-alexa.
Understood. Thank you for the reply.
from openhab-alexa.
Related Issues (20)
- feature request: support personal profiles HOT 3
- Thermostat Setpoints Not Allowed Above 100 Degrees HOT 3
- Arabic Language Support HOT 2
- Window Covering Rollershutter Item No Control Page in Alexa App HOT 1
- missing several display categories HOT 2
- Window Covering Rollershutter percentage values are inverted HOT 1
- Cooking Device Capabilities Support
- Dimmer percentage commands broken HOT 2
- Support remote video player interface HOT 2
- Television device not discovered if Channel item type is string HOT 4
- Can say "Light On" but not "Fan Medium" in an Alexa group without full thing name "Bedroom Fan Medium" HOT 2
- Keep getting [Error]: CliError: The CloudFormation deploy failed for Alexa region "default": Access Denied HOT 6
- AlexaSkillFunction[AWS::Lambda::Function] CREATE_FAILED HOT 1
- MainUI How To Examples
- "message": "Required parameter(s) missing in the request." HOT 4
- The Command "Stop" does not stop the Rollershutter in German HOT 1
- Television.Channel - Mapping names to number not working HOT 1
- devices discovery is terminated without new devices HOT 3
- Fail to deploy (skill not found) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openhab-alexa.