alexa-samples / alexa-smarthome

Resources for Alexa Smart Home developers.
https://alexa.design/smarthome
Other
687 stars 336 forks source link

Alexa.PercentageController empty value in payload #188

Closed ToniiiG closed 2 years ago

ToniiiG commented 2 years ago

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 commented 2 years ago

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

Thank you