Node-red-contrib-alexa-smart-home

I am having some trouble on getting Alexa to speak the temperature values that I have. They are coming through as an MQTT. Even when I try the demo examples, the function goes into a error.
This is the basic set up I have can anyone point me in the right direction. My programming level is very basic.

[{"id":"55ecc1ec.ee956","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"f590f10e.8c4d5","type":"alexa-smart-home-v3-state","z":"55ecc1ec.ee956","conf":"","device":"1901","name":"","x":800,"y":200,"wires":},{"id":"fa7121cb.9f809","type":"inject","z":"55ecc1ec.ee956","name":"","topic":"test","payload":"23","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":350,"y":200,"wires":[["485a336b.e1ba6c"]]},{"id":"7be6611.b7a3ca","type":"debug","z":"55ecc1ec.ee956","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":620,"y":300,"wires":},{"id":"485a336b.e1ba6c","type":"function","z":"55ecc1ec.ee956","name":"","func":"msg {\n acknowledge: true,\n payload {\n state { \n "brightness": 0-100,\n "colorbrightness": 0-1,\n "colorHue": 0-360,\n "colorSaturation": 0-1,\n "colorTemperature": 0-10000,\n "contact": "DETECTED" || "NOT_DETECTED"\n "input": string,\n "lock": "LOCKED" || "UNLOCKED",\n "percentage": number,\n "percentageDelta": number,\n "playback": "Play",\n "power": "ON" || "OFF",\n "temperature": number,\n "thermostatMode": "HEAT" || "COOL",\n "thermostatSetPoint" : number,\n "targetSetpointDelta": number,\n "volume": number,\n "volumeDelta": number\n }\n }\n}","outputs":1,"noerr":19,"x":530,"y":200,"wires":[["f590f10e.8c4d5","7be6611.b7a3ca"]]},{"id":"832d5742.69b508","type":"mqtt in","z":"55ecc1ec.ee956","name":"","topic":"","qos":"2","x":360,"y":120,"wires":[["485a336b.e1ba6c"]]}]

Thanks

Unfortunately your flow isn't currently importable.Please read the following post How to share code or flow json and then edit the above message.

Thanks for the tip.

[{"id":"55ecc1ec.ee956","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"f590f10e.8c4d5","type":"alexa-smart-home-v3-state","z":"55ecc1ec.ee956","conf":"","device":"1901","name":"","x":800,"y":200,"wires":[]},{"id":"fa7121cb.9f809","type":"inject","z":"55ecc1ec.ee956","name":"","topic":"test","payload":"23","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":350,"y":200,"wires":[["485a336b.e1ba6c"]]},{"id":"7be6611.b7a3ca","type":"debug","z":"55ecc1ec.ee956","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":620,"y":300,"wires":[]},{"id":"485a336b.e1ba6c","type":"function","z":"55ecc1ec.ee956","name":"","func":"msg {\n    acknowledge: true,\n    payload {\n        state { \n            \"brightness\": 0-100,\n            \"colorbrightness\": 0-1,\n            \"colorHue\": 0-360,\n            \"colorSaturation\": 0-1,\n            \"colorTemperature\": 0-10000,\n            \"contact\": \"DETECTED\" || \"NOT_DETECTED\"\n            \"input\": string,\n            \"lock\": \"LOCKED\" || \"UNLOCKED\",\n            \"percentage\": number,\n            \"percentageDelta\": number,\n            \"playback\": \"Play\",\n            \"power\": \"ON\" || \"OFF\",\n            \"temperature\": number,\n            \"thermostatMode\": \"HEAT\" || \"COOL\",\n            \"thermostatSetPoint\" : number,\n            \"targetSetpointDelta\": number,\n            \"volume\": number,\n            \"volumeDelta\": number\n        }\n    }\n}","outputs":1,"noerr":19,"x":530,"y":200,"wires":[["f590f10e.8c4d5","7be6611.b7a3ca"]]},{"id":"832d5742.69b508","type":"mqtt in","z":"55ecc1ec.ee956","name":"","topic":"","qos":"2","broker":"8a3e0338.727fe","x":360,"y":120,"wires":[["485a336b.e1ba6c"]]},{"id":"8a3e0338.727fe","type":"mqtt-broker","z":"","name":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""}]

What are you trying to do in your function node?

The red triangle on the node shows you that there are issues with the config of teh node
When you then open the node all the crosses on teh left hand side show that there are issues as well.

But I'm not sure what you are trying to do or how any of that is related to speaking a temperature

From my understanding. Currently if as ask Alexa what is the temperature of the living room I Alexa says "the temperature in the living room is 22 DegC" now that must be a default answer. What I am trying to do is have my mqtt point which has the temperature to trigger the function with the actual temperature.

When I check the examples from https://github.com/coldfire84/node-red-alexa-home-skill-v3-web/wiki/Example-Flows-and-Node-Outputs they are not much help to me. My usual programming is done in logic modules not javascript. I know that the acknowledge must be true and that the state must be included but whatever variation I put in the either the function fails or the Alexa state node has an error.

Thanks for taking the time to look at this.

First start with the basics.
What is the debug out of the mqtt node?
Then look at the Node-red documentation, specifically “working with messages”.