How to get Alexa to tell me crypto prices

I have a palette that can retrieve current crypto prices. But I am having trouble getting alexa to tell me the price verbally. Right now, if I inject the below flow, she will says “Ether is at object object”.

How can I get her to say the actual price that is returned in the payload?


image

[{"id":"c26113a3.aa95","type":"tab","label":"Playground","disabled":false,"info":""},{"id":"ab6d5a36.ee0b58","type":"api-call-service","z":"c26113a3.aa95","name":"","server":"456659de.370498","version":3,"debugenabled":false,"service_domain":"notify","service":"alexa_media_echo_kitchen","entityId":"","data":"{\"message\":\"Ether is at {{payload}}\",\"data\":{\"type\":\"tts\"}}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1680,"y":324,"wires":[[]]},{"id":"efc7261d.8ad888","type":"inject","z":"c26113a3.aa95","name":"","repeat":"","crontab":"","once":false,"topic":"","payload":"","payloadType":"date","x":1059,"y":324,"wires":[["4011b861.d34d88"]]},{"id":"4011b861.d34d88","type":"function","z":"c26113a3.aa95","name":"Set UrlParams","func":"\nmsg.params = {\n    fsym : \"ETH\",\n    tsyms : \"USD\"\n};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1244.4930572509766,"y":324.381872177124,"wires":[["37363f32.8ab72"]]},{"id":"37363f32.8ab72","type":"price","z":"c26113a3.aa95","name":"","fsym":"","tsyms":"","e":"","extraParams":"","sign":"","tryConversion":"","x":1419.9964981079102,"y":324.0208339691162,"wires":[["ab6d5a36.ee0b58","ef9a258b.2b5508"]]},{"id":"ef9a258b.2b5508","type":"debug","z":"c26113a3.aa95","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1616,"y":216,"wires":[]},{"id":"456659de.370498","type":"server","name":"AvilaSmartHome","version":1,"legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

Have you tried {{payload.USD}} ?

1 Like

That worked, thanks! Im still learning this payload nomenclature.