hello
im new hope i have done this right
i have managed to setup all my sonoff devices and have alexa working switching though mqtt
i can get the reading of the function template (alexa get temp) through alexa but i need to have my water temp reading in the (alexa get temp) which is just an decimal number spent days now trying to figure this out
please help
thanks chris
updated full flow
[{"id":"925223d0.4e5d","type":"alexa-home","z":"4306a747.448678","conf":"447d833e.732eec","device":"29580","acknoledge":true,"name":"Hot Tub Heater","topic":"","x":140,"y":200,"wires":[["fe975c72.3828","7e4680da.39bb48"]]},{"id":"2815a67a.e8ecca","type":"ui_switch","z":"4306a747.448678","name":"","label":"Hot Tub Heater","group":"a34fc89.b38da38","order":1,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"ON","onvalueType":"str","onicon":"","oncolor":"","offvalue":"OFF","offvalueType":"str","officon":"","offcolor":"","x":700,"y":200,"wires":[["df93b7e6.5f4ac8"]],"inputLabels":["1"],"outputLabels":["1"]},{"id":"df93b7e6.5f4ac8","type":"mqtt out","z":"4306a747.448678","name":"","topic":"cmnd/myhome/garden/hottub/heater/POWER","qos":"1","retain":"","broker":"d6784aa7.f43c48","x":1090,"y":200,"wires":[]},{"id":"fe975c72.3828","type":"change","z":"4306a747.448678","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"ON","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"OFF","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":200,"wires":[["2815a67a.e8ecca"]],"inputLabels":["1"],"outputLabels":["1"]},{"id":"7c05d14b.ba88d","type":"debug","z":"4306a747.448678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":630,"y":460,"wires":[]},{"id":"711db560.299ffc","type":"alexa-home-resp","z":"4306a747.448678","x":1000,"y":300,"wires":[]},{"id":"dd0661b5.d8f4c","type":"mqtt in","z":"4306a747.448678","name":"hot tub heater","topic":"tele/myhome/garden/hottub/heater/SENSOR","qos":"1","broker":"d6784aa7.f43c48","x":190,"y":300,"wires":[["ccd0a96c.69c018"]]},{"id":"85fdaa36.b79188","type":"function","z":"4306a747.448678","name":"Water temp","func":"var temp=msg.payload.DS18B20.Temperature;\n\nvar msg = {\n payload:temp\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":530,"y":300,"wires":[["630d7ac4.bd9cdc"]]},{"id":"ccd0a96c.69c018","type":"json","z":"4306a747.448678","name":"","pretty":false,"x":370,"y":300,"wires":[["85fdaa36.b79188"]]},{"id":"7e4680da.39bb48","type":"function","z":"4306a747.448678","name":"Alexa Get temp","func":"msg.extra = {\"temperatureReading\": { \"value\": 21.1 }, \"applianceResponseTimestamp\":new Date().toISOString()};\nmsg.payload = true;\nreturn msg; ","outputs":1,"noerr":0,"x":520,"y":380,"wires":[["630d7ac4.bd9cdc"]]},{"id":"630d7ac4.bd9cdc","type":"change","z":"4306a747.448678","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"21.1","fromt":"msg","to":"payload:temp","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":340,"wires":[["711db560.299ffc","7c05d14b.ba88d"]],"inputLabels":["2"],"outputLabels":["1"]},{"id":"447d833e.732eec","type":"alexa-home-conf","z":"","username":"homemedia20"},{"id":"a34fc89.b38da38","type":"ui_group","z":"","name":"Hot Tub","tab":"1cff5057.d9bf6","order":1,"disp":true,"width":"6","collapse":false},{"id":"d6784aa7.f43c48","type":"mqtt-broker","z":"","name":"Local","broker":"127.0.0.1","port":"1883","tls":"","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"1cff5057.d9bf6","type":"ui_tab","z":"","name":"Hot Tub","icon":"dashboard","order":1}]