Hier der Flow um Temperatur Shelly Addon auszulesen

Habe einen Flow erstellt um die Temperatur vom SHelly Addon auszulesen. Der Addon sendet Celsius, Fahrenheit und noch einen Wert, mit diesem Flow kann man sich die Werte per MQTT in Celsius anzeigen lassen. Ihr müßt lediglich den Topic im MQTT-in Node für euch anpassen.

[ { "id": "9b8c5e44f838d95e", "type": "mqtt in", "z": "7233147776eba705", "name": "Temp Lichtmaschine", "topic": "Womo/Temperatur/dreimal/status/temperature:102", "qos": "2", "datatype": "auto-detect", "broker": "0ddb07c65cbb68bc", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 90, "y": 60, "wires": [ [ "329a8a085ab5ca67" ] ] }, { "id": "329a8a085ab5ca67", "type": "json", "z": "7233147776eba705", "name": "", "property": "payload", "action": "obj", "pretty": false, "x": 290, "y": 60, "wires": [ [ "73d77e0678b520a6" ] ] }, { "id": "73d77e0678b520a6", "type": "function", "z": "7233147776eba705", "name": "Get tC", "func": "if (typeof msg.payload === \"object\" && msg.payload !== null && \"tC\" in msg.payload) {\n msg.payload = msg.payload.tC;\n} else {\n msg.payload = undefined;\n}\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 430, "y": 60, "wires": [ [ "edad94a0d2e4875b", "e9ef2f97c20cde94" ] ] }, { "id": "edad94a0d2e4875b", "type": "ui_gauge", "z": "7233147776eba705", "name": "", "group": "8ab4e9b20dda5931", "order": 1, "width": "3", "height": "3", "gtype": "gage", "title": "Temp Lichtmaschine", "label": "°C", "format": "{{value}}", "min": 0, "max": "100", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "60", "seg2": "80", "diff": false, "className": "", "x": 610, "y": 60, "wires": [] }, { "id": "e9ef2f97c20cde94", "type": "ui_text", "z": "7233147776eba705", "group": "b8db3199.f0dbe", "order": 4, "width": 0, "height": 0, "name": "", "label": "Lichtmaschine", "format": "{{msg.payload}} °C", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 600, "y": 120, "wires": [] }, { "id": "0ddb07c65cbb68bc", "type": "mqtt-broker", "name": "", "broker": "http://localhost", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "autoUnsubscribe": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "sessionExpiry": "" }, { "id": "8ab4e9b20dda5931", "type": "ui_group", "name": "Fahren", "tab": "b5afde8f24142afc", "order": 1, "disp": true, "width": "6", "collapse": false, "className": "" }, { "id": "b8db3199.f0dbe", "type": "ui_group", "name": "Temperature", "tab": "deee53a800de461d", "order": 7, "disp": true, "width": "6", "collapse": true, "className": "" }, { "id": "b5afde8f24142afc", "type": "ui_tab", "name": "Fahren", "icon": "dashboard", "disabled": false, "hidden": false }, { "id": "deee53a800de461d", "type": "ui_tab", "name": "Info", "icon": "mi-info", "order": 1, "disabled": false, "hidden": false } ]