[ { "id": "7b33b63f.48208", "type": "tab", "label": "Flow Sauna Temp. und Hum.", "disabled": false, "info": "" }, { "id": "3a22b75e.710d98", "type": "inject", "z": "7b33b63f.48208", "name": "alle 120 sek. Sensor auslesen", "repeat": "120", "crontab": "", "once": true, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 190, "y": 60, "wires": [ [ "f2d09fd9.df3d6" ] ] }, { "id": "9f9676dc.a0a398", "type": "json", "z": "7b33b63f.48208", "name": "json_status", "property": "status", "action": "", "pretty": false, "x": 330, "y": 140, "wires": [ [ "1c46a91f.f49547" ] ] }, { "id": "f2d09fd9.df3d6", "type": "shelly-switch", "z": "7b33b63f.48208", "hostname": "192.168.120.49", "description": "Shelly Sauna", "x": 130, "y": 140, "wires": [ [ "9f9676dc.a0a398", "50f9790b.49c718", "7ced8e9f.66431" ] ] }, { "id": "1c46a91f.f49547", "type": "change", "z": "7b33b63f.48208", "name": "Temp extract", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "status", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 130, "y": 300, "wires": [ [ "7844466.a9dc7b8" ] ] }, { "id": "b479ce15.77094", "type": "change", "z": "7b33b63f.48208", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "status.ext_sensor_tC", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 910, "y": 260, "wires": [ [ "15f5fddf.cbff72", "1b776db3.bb1ff2", "7ca3791c.0dfdc8" ] ] }, { "id": "7844466.a9dc7b8", "type": "json", "z": "7b33b63f.48208", "name": "", "property": "status", "action": "", "pretty": false, "x": 310, "y": 300, "wires": [ [ "54bc6af9.5f8674", "77d4776b.55d76" ] ] }, { "id": "15f5fddf.cbff72", "type": "template", "z": "7b33b63f.48208", "name": "", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"CurrentTemperature\":\"{{payload}}\"}", "output": "str", "x": 1100, "y": 260, "wires": [ [ "5a9c1702.41d638" ] ] }, { "id": "5a9c1702.41d638", "type": "json", "z": "7b33b63f.48208", "name": "", "property": "payload", "action": "", "pretty": false, "x": 1250, "y": 260, "wires": [ [ "b14326e.a6cddd8" ] ] }, { "id": "54bc6af9.5f8674", "type": "change", "z": "7b33b63f.48208", "name": "", "rules": [ { "t": "move", "p": "status.ext_temperature.0.tC", "pt": "msg", "to": "status.ext_sensor_tC", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 580, "y": 260, "wires": [ [ "b479ce15.77094" ] ] }, { "id": "77d4776b.55d76", "type": "change", "z": "7b33b63f.48208", "name": "", "rules": [ { "t": "move", "p": "status.ext_humidity.0.hum", "pt": "msg", "to": "status.ext_sensor_hum", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 580, "y": 340, "wires": [ [ "97cd6d0b.93e378" ] ] }, { "id": "97cd6d0b.93e378", "type": "change", "z": "7b33b63f.48208", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "status.ext_sensor_hum", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 910, "y": 340, "wires": [ [ "9b053eef.7781d8", "40deccbc.97a2ac", "13d82404.f60824" ] ] }, { "id": "9b053eef.7781d8", "type": "template", "z": "7b33b63f.48208", "name": "", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"CurrentRelativeHumidity\":\"{{payload}}\"}", "output": "str", "x": 1100, "y": 340, "wires": [ [ "8ac4eb5e.138678" ] ] }, { "id": "8ac4eb5e.138678", "type": "json", "z": "7b33b63f.48208", "name": "", "property": "payload", "action": "", "pretty": false, "x": 1250, "y": 340, "wires": [ [ "590e8ef6.58c8b8" ] ] }, { "id": "aaa96a65.c56a58", "type": "comment", "z": "7b33b63f.48208", "name": "Shelly 1PM in Raum Sauna auslesen", "info": "Auslesen der AddOn Werte von Luftfeuchtigkeit und Temperatur in der Sauna", "x": 600, "y": 60, "wires": [] }, { "id": "b14326e.a6cddd8", "type": "homekit-service", "z": "7b33b63f.48208", "accessory": "163aa657.dc9c7a", "name": "Temperatur_Sauna", "serviceName": "TemperatureSensor", "x": 1450, "y": 260, "wires": [ [] ] }, { "id": "590e8ef6.58c8b8", "type": "homekit-service", "z": "7b33b63f.48208", "accessory": "8c463d08.539ea", "name": "Humidity_Sauna", "serviceName": "HumiditySensor", "x": 1440, "y": 340, "wires": [ [] ] }, { "id": "1b776db3.bb1ff2", "type": "ui_chart", "z": "7b33b63f.48208", "name": "", "group": "3e541c39.0040b4", "order": 4, "width": 7, "height": 4, "label": "", "chartType": "line", "legend": "false", "xformat": "HH:mm", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "604800", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "x": 1110, "y": 180, "wires": [ [] ] }, { "id": "40deccbc.97a2ac", "type": "ui_chart", "z": "7b33b63f.48208", "name": "", "group": "3e541c39.0040b4", "order": 7, "width": 7, "height": 4, "label": "", "chartType": "line", "legend": "false", "xformat": "HH:mm", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "604800", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "x": 1110, "y": 420, "wires": [ [] ] }, { "id": "13d82404.f60824", "type": "ui_gauge", "z": "7b33b63f.48208", "name": "", "group": "3e541c39.0040b4", "order": 8, "width": 7, "height": 4, "gtype": "wave", "title": "", "label": "%", "format": "{{value}}", "min": 0, "max": "100", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "", "seg2": "", "x": 1110, "y": 460, "wires": [] }, { "id": "7ca3791c.0dfdc8", "type": "ui_gauge", "z": "7b33b63f.48208", "name": "", "group": "3e541c39.0040b4", "order": 5, "width": 7, "height": 4, "gtype": "gage", "title": "", "label": "°C", "format": "{{value}}", "min": "5", "max": "90", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "", "seg2": "", "x": 1110, "y": 140, "wires": [] }, { "id": "4ded3766.7d60b8", "type": "ui_button", "z": "7b33b63f.48208", "name": "IconRefresh", "group": "3e541c39.0040b4", "order": 2, "width": 1, "height": 1, "passthru": false, "label": "", "tooltip": "Auto-Refresh:120 sek.", "color": "", "bgcolor": "", "icon": "fa-refresh fa-2x", "payload": "true", "payloadType": "bool", "topic": "", "topicType": "str", "x": 1130, "y": 500, "wires": [ [ "619e2b0.c0f1554" ] ] }, { "id": "619e2b0.c0f1554", "type": "link out", "z": "7b33b63f.48208", "name": "Refresh", "links": [ "2287fb15.faef5c", "82b3aa1e.03dfa" ], "x": 1275, "y": 500, "wires": [] }, { "id": "2287fb15.faef5c", "type": "link in", "z": "7b33b63f.48208", "name": "", "links": [ "619e2b0.c0f1554", "cfbf6303.f15d08", "1776c0e7.9f07bf", "f0053749.e1d62" ], "x": 75, "y": 220, "wires": [ [ "f2d09fd9.df3d6" ] ] }, { "id": "50f9790b.49c718", "type": "function", "z": "7b33b63f.48208", "name": "Seconds to DD:HH:MM:SS", "func": " var totalNumberOfSeconds = msg.status.uptime;\n var days = parseInt( totalNumberOfSeconds / 86400 );\n var hours = parseInt (( totalNumberOfSeconds - ( days * 86400 )) / 3600 );\n var minutes = parseInt ((totalNumberOfSeconds - ((hours * 3600)+( days * 86400 ))) / 60 );\n var seconds = parseInt(totalNumberOfSeconds - ((hours * 3600) + (minutes * 60)+( days * 86400 )));\n var result = (days < 10 ? \"0\" + days + \" Tage\": days + \" Tage\") + \" \" + (hours < 10 ? \"0\" + hours + \"h\": hours + \"h\") + \":\" + (minutes < 10 ? \"0\" + minutes + \"min\": minutes + \"min\") + \":\" + (seconds < 10 ? \"0\" + seconds + \"sec\" : seconds + \"sec\");\n msg.payload=result;\n //msg.color='red';\n return msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 620, "y": 540, "wires": [ [ "4f6abcf.71f1a44" ] ] }, { "id": "4f6abcf.71f1a44", "type": "ui_text", "z": "7b33b63f.48208", "group": "3e541c39.0040b4", "order": 1, "width": 0, "height": 0, "name": "Up-Time Shelly Sauna", "label": "UpTime", "format": " {{msg.payload}}", "layout": "row-center", "x": 1160, "y": 540, "wires": [] }, { "id": "7ced8e9f.66431", "type": "ui_text", "z": "7b33b63f.48208", "group": "3e541c39.0040b4", "order": 8, "width": 0, "height": 0, "name": "", "label": "Uhrzeit", "format": "{{msg.status.time}}", "layout": "row-spread", "x": 1120, "y": 100, "wires": [] }, { "id": "163aa657.dc9c7a", "type": "homekit-accessory", "accessoryName": "Sauna Temperatur", "pinCode": "111-14-111", "port": "", "manufacturer": "Torsten", "model": "Default Model", "serialNo": "Default Serial Number", "accessoryType": "10" }, { "id": "8c463d08.539ea", "type": "homekit-accessory", "accessoryName": "Sauna Luftfeuchtigkeit", "pinCode": "111-14-111", "port": "", "manufacturer": "Torsten", "model": "Default Model", "serialNo": "Default Serial Number", "accessoryType": "10" }, { "id": "3e541c39.0040b4", "type": "ui_group", "name": "Temperatur & Luftfeuchtigkeit", "tab": "9a1a5486.d20c48", "order": 1, "disp": true, "width": "7", "collapse": false }, { "id": "9a1a5486.d20c48", "type": "ui_tab", "name": "Sauna", "icon": "spa", "order": 1, "disabled": false, "hidden": false } ]