Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alexa.PercentageController empty value in payload #188

Closed
ToniiiG opened this issue Mar 15, 2022 · 1 comment
Closed

Alexa.PercentageController empty value in payload #188

ToniiiG opened this issue Mar 15, 2022 · 1 comment

Comments

@ToniiiG
Copy link

ToniiiG commented Mar 15, 2022

Hello, I'm trying to put in a DynamoDb the value of the order to change a percentage to a device in alexa. But the percentage in the payload is allways empty. And Alexa gives me an error that value is null.

Alexa, set "device" to ten percent. I want to save this 10 in dynamodb.

image

If in percentage_value I put = '10' after it works, and in dynamodb appears a 10. But never the number that I say to alexa.

Somebody knows why?

Thank you

@ToniiiG
Copy link
Author

ToniiiG commented Mar 16, 2022

Solved. Missing a str in: percentage_value = str(request['directive']['payload']['percentage'])

Thank you

@ToniiiG ToniiiG closed this as completed Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant