Alexa skill can't read my sensor data


i’ve made an alexa skill to read my sensor data .my sensors are working fine .its uploading is working fine . the only problem is with alexa dont say my humidity value . when the skill got invoked alexa says " current humidity is " only it don’t say my sensor data … any help ?. i can provide any information

“text”: “current humidity is {{ data.Humidity.value }} .”

[Solved] Alexa skill can't read my sensor values simultaneously

Are you able to attach a Debug Node to the end of the workflow and put the payload’s output here? In most cases the string template pointing to the data you’re trying to reference is simply incorrect.

1 Like
	"body": {
		"version": "1.0",
		"response": {
			"outputSpeech": {
				"type": "PlainText",
				"text": "current humidity is  ."
			"shouldEndSession": true

this is the json output from alexa console

these is from debug node :

         "content-type":"application/json; charset=utf-8",
         "user-agent":"Apache-HttpClient/4.5.x (Java/1.8.0_131)"



   "flowName":"Maneesha Skill",



my flow diagrams


Assuming data.Humidity.value is being set on your payload by that Gauge Query Node, you need to switch the order of your nodes so that the Webhook Reply Node comes after the Gauge Query. As it stands now, you’re replying to the webhook request before the data is being attached to the payload, so there is no value at the path you specify.

The value is set once it reaches the Debug Node, however, which is why you’re seeing the value appear in the payload.

Also, I edited your reply to remove them but please be careful in the future about pasting things such as access tokens into this public forum.


those access tokens are fake :smile: let me try your fix . thanks for replying


Thanks now its working fine


Happy I could help! Please let us know if you have any more questions.


now my another problem is ,i won’t be able to add multiple values to my alexa skill like temperature and humidity

my webhook string :point_down::point_down:
“version”: “1.0”,
“response”: {
“outputSpeech”: {
“type”: “PlainText”,
“text”: “current humidity is {{ data.Humidity.value }} and current temperature is {{ data.Temperature.value }}.”
“shouldEndSession”: true

sometimes it says humidity value sometimes temperature . i can’t make it say both



Like this one may be the sensor data is not available at that time


If you want the values of both nodes to be on your payload, you need to put the nodes in series and not branching them off separately from your trigger. What’s happening now is the two nodes are executing in parallel, and whichever one is finished first reaches the Webhook Reply Node, and that is the data that is available in the reply. The other goes nowhere since the reply to the webhook request has already been sent.

So build your workflow as one straight path: Webhook -> extract hum… -> Data: Gauge… -> Webhook Reply -> Debug.

And make sure you put the results of both gauge queries at different payload paths or the second one will simply overwrite the first.

Finally, make sure to adjust your Webhook Reply Node to reflect the new payload paths you set in the nodes that came before it.

[Solved] Alexa skill can't read my sensor values simultaneously