I am just starting to use MQTT and Node Red as an introduction to IOT and Home Automation, and having some basic issues.
Background is as an initial experiment I have a BMP280 connected to a Tasmota device (Wemos D1 MiniD1) and communicating with MQTT on an RPI 4b. I can see from debug nodes in Node Red that the message is getting through MQTT but I can't get Temperature and Pressure to display on the dashboard. The gauges are being displayed, but the Pressure and Temperature values are not being extracted by the Change nodes, so this is where I assume I am going wrong.
I believe I am making a very fundamental and simple mistake, but due to my lack of knowledge and experience, I can't see what I am doing wrong, so I would appreciate some guidance. The flow is as per the enclosed text, and I have added an inject node on the Temperature Flow to simulate the output of MQTT.
Any suggestion on what I need to do to correct the issue would be greatly appreciated.
Regards,
Dave
[{"id":"cbf4fba7.b2a9a8","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"d883ab46.b52778","type":"mqtt in","z":"cbf4fba7.b2a9a8","name":"","topic":"tele/House/LoungeRoom/SENSOR","qos":"0","datatype":"auto","broker":"4dfa2901.da50e8","x":210,"y":80,"wires":[["c0cf8123.0ed54","b46ffcb5.0bfca","40d862e0.7d2bec"]],"outputLabels":["Temperature"]},{"id":"2b749042.1fc83","type":"debug","z":"cbf4fba7.b2a9a8","name":"Temperature","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":570,"y":240,"wires":[]},{"id":"c0cf8123.0ed54","type":"change","z":"cbf4fba7.b2a9a8","name":"Extract Pressure","rules":[{"t":"set","p":"payload","pt":"msg","to":"data.Pressure","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":40,"wires":[["f477510c.d9536","ec5005b8.1b4b38"]]},{"id":"f477510c.d9536","type":"debug","z":"cbf4fba7.b2a9a8","name":"Pressure","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":620,"y":20,"wires":[]},{"id":"ec5005b8.1b4b38","type":"ui_gauge","z":"cbf4fba7.b2a9a8","name":"Baro Pressure","group":"a70772f8.5b41e","order":3,"width":0,"height":0,"gtype":"gage","title":"Pressure","label":"hPa","format":"{{value}}","min":"970","max":"1030","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":830,"y":80,"wires":[]},{"id":"512caced.dc6ec4","type":"ui_gauge","z":"cbf4fba7.b2a9a8","name":"","group":"a70772f8.5b41e","order":1,"width":0,"height":0,"gtype":"gage","title":"Temperature","label":"Deg C","format":"{{value}}","min":0,"max":"30","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":800,"y":180,"wires":[]},{"id":"b46ffcb5.0bfca","type":"change","z":"cbf4fba7.b2a9a8","name":"Extract Temperature","rules":[{"t":"set","p":"payload","pt":"msg","to":"data.\"Temperature\":","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":160,"wires":[["512caced.dc6ec4","2b749042.1fc83"]]},{"id":"40d862e0.7d2bec","type":"debug","z":"cbf4fba7.b2a9a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":480,"y":100,"wires":[]},{"id":"68387582.8a605c","type":"inject","z":"cbf4fba7.b2a9a8","name":"","topic":"","payload":"tele/House/LoungeRoom/SENSOR : msg.payload : string[114] \"{\"Time\":\"2020-08-02T07:42:23\",\"BMP280\":{\"Temperature\":15.1,\"Pressure\":1017.9},\"PressureUnit\":\"hPa\",\"TempUnit\":\"C\"}\"","payloadType":"str","repeat":"5","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":180,"wires":[["b46ffcb5.0bfca"]]},{"id":"4dfa2901.da50e8","type":"mqtt-broker","z":"","name":"","broker":"192.168.0.44","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"a70772f8.5b41e","type":"ui_group","z":"","name":"tele/House/LoungeRoom/SENSOR","tab":"2773783e.d03e88","order":1,"disp":false,"width":"6","collapse":false},{"id":"2773783e.d03e88","type":"ui_tab","z":"","name":"Current","icon":"dashboard"}]