From ccb62dad09d0ea6476e8b1e502d8613650732489 Mon Sep 17 00:00:00 2001 From: m038 Date: Thu, 28 May 2026 21:49:28 +0200 Subject: [PATCH] Update flow files --- flows.json | 1492 ++-------------------------------------------------- 1 file changed, 43 insertions(+), 1449 deletions(-) diff --git a/flows.json b/flows.json index 3c7a0dc..6f76041 100644 --- a/flows.json +++ b/flows.json @@ -83,327 +83,6 @@ "type": "tab", "label": "Maintenance" }, - { - "id": "e52c44dc.71cb5", - "type": "subflow", - "name": "Is it Night?", - "info": "Determines if the current time is between the _Night Time_ and the _Morning Time_ settings in Home Assistant.", - "category": "", - "in": [ - { - "x": 140, - "y": 140, - "wires": [ - { - "id": "dc7ddc2d53abc038" - } - ] - } - ], - "out": [ - { - "x": 780, - "y": 160, - "wires": [ - { - "id": "dc7ddc2d53abc038", - "port": 5 - } - ] - }, - { - "x": 800, - "y": 100, - "wires": [ - { - "id": "dc7ddc2d53abc038", - "port": 0 - }, - { - "id": "dc7ddc2d53abc038", - "port": 1 - }, - { - "id": "dc7ddc2d53abc038", - "port": 2 - }, - { - "id": "dc7ddc2d53abc038", - "port": 3 - }, - { - "id": "dc7ddc2d53abc038", - "port": 4 - } - ] - } - ], - "env": [], - "meta": {}, - "color": "#DDAA99", - "outputLabels": [ - "After night time", - "Before morning time " - ] - }, - { - "id": "091c97d9c8d81499", - "type": "subflow", - "name": "JSON Escape", - "info": "", - "category": "", - "in": [ - { - "x": 120, - "y": 140, - "wires": [ - { - "id": "9e4fac23fd2c73ed" - } - ] - } - ], - "out": [ - { - "x": 520, - "y": 140, - "wires": [ - { - "id": "9e4fac23fd2c73ed", - "port": 0 - } - ] - } - ], - "env": [], - "meta": {}, - "color": "#DDAA99" - }, - { - "id": "52430f5e9f9ee267", - "type": "subflow", - "name": "Which timeslot are we in?", - "info": "", - "category": "", - "in": [ - { - "x": 100, - "y": 160, - "wires": [ - { - "id": "f4da808dc4c218b6" - }, - { - "id": "25fe3f965108a4f8" - }, - { - "id": "910e431ab636c701" - }, - { - "id": "1029462b97e1cc7c" - }, - { - "id": "c263329e3207423d" - }, - { - "id": "6a5d6248d66d5303" - } - ] - } - ], - "out": [ - { - "x": 1760, - "y": 440, - "wires": [ - { - "id": "b884e557f9524784", - "port": 0 - } - ] - }, - { - "x": 1760, - "y": 480, - "wires": [ - { - "id": "06f7380c6f28bdd1", - "port": 0 - } - ] - }, - { - "x": 1780, - "y": 520, - "wires": [ - { - "id": "41de38d16e68d1d9", - "port": 0 - } - ] - }, - { - "x": 1760, - "y": 560, - "wires": [ - { - "id": "4d992d3713228542", - "port": 0 - } - ] - }, - { - "x": 1770, - "y": 600, - "wires": [ - { - "id": "25b5aff2dea58057", - "port": 0 - } - ] - }, - { - "x": 1750, - "y": 640, - "wires": [ - { - "id": "5f0e5f63552a97f2", - "port": 0 - } - ] - } - ], - "env": [], - "meta": {}, - "color": "#DDAA99", - "inputLabels": [ - "anything" - ], - "outputLabels": [ - "morning", - "midday", - "late afternoon", - "evening", - "late evening", - "night" - ] - }, - { - "id": "c0a0e0.ae6cbf2", - "type": "subflow", - "name": "Zigbee2MQTT dim & toggle", - "info": "", - "category": "", - "in": [ - { - "x": 480, - "y": 340, - "wires": [ - { - "id": "821795d7.433b58" - } - ] - } - ], - "out": [], - "env": [ - { - "name": "topic", - "type": "str", - "value": "" - } - ], - "color": "#DDAA99" - }, - { - "id": "be8264a322721305", - "type": "subflow", - "name": "Timer based on hour config", - "info": "", - "category": "", - "in": [ - { - "x": 120, - "y": 100, - "wires": [ - { - "id": "a93b68e3e83b1d25" - } - ] - } - ], - "out": [ - { - "x": 860, - "y": 100, - "wires": [ - { - "id": "7a1e6b58aaf9559f", - "port": 0 - } - ] - } - ], - "env": [], - "meta": {}, - "color": "#DDAA99" - }, - { - "id": "657c7463.48e1e4", - "type": "server", - "name": "Home Assistant Latest", - "addon": false, - "rejectUnauthorizedCerts": true, - "ha_boolean": [ - "y", - "|", - "e", - "s", - "t", - "r", - "u", - "o", - "n", - "h", - "m", - "p" - ], - "connectionDelay": true, - "cacheJson": false, - "heartbeat": false, - "heartbeatInterval": "", - "statusSeparator": "", - "enableGlobalContextStore": false - }, - { - "id": "d51b5899.a2d5d8", - "type": "mqtt-broker", - "name": "Mosquto Broker", - "broker": "192.168.1.6", - "port": "1883", - "clientid": "", - "autoConnect": true, - "usetls": false, - "compatmode": false, - "protocolVersion": "4", - "keepalive": "60", - "cleansession": true, - "autoUnsubscribe": true, - "birthTopic": "", - "birthQos": "0", - "birthPayload": "", - "birthMsg": {}, - "closeTopic": "", - "closeQos": "0", - "closePayload": "", - "closeMsg": {}, - "willTopic": "", - "willQos": "0", - "willPayload": "", - "willMsg": {}, - "userProps": "", - "sessionExpiry": "" - }, { "id": "cc000023", "type": "ha-entity-config", @@ -574,1134 +253,6 @@ "resend": false, "debugEnabled": false }, - { - "id": "dc7ddc2d53abc038", - "type": "subflow:52430f5e9f9ee267", - "z": "e52c44dc.71cb5", - "name": "", - "x": 390, - "y": 140, - "wires": [ - [], - [], - [], - [], - [], - [] - ] - }, - { - "id": "9e4fac23fd2c73ed", - "type": "function", - "z": "091c97d9c8d81499", - "name": "Escape JSON string", - "func": "msg.payload = JSON.stringify(msg.payload).replace(/\"/g, '\\\"');\n\nreturn msg;", - "outputs": 1, - "noerr": 0, - "initialize": "", - "finalize": "", - "libs": [], - "x": 320, - "y": 140, - "wires": [ - [] - ] - }, - { - "id": "910e431ab636c701", - "type": "api-current-state", - "z": "52430f5e9f9ee267", - "name": "Night Time", - "server": "657c7463.48e1e4", - "version": 3, - "outputs": 1, - "halt_if": "", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "input_datetime.night_starts_ha", - "state_type": "str", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "payload", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "topic", - "propertyType": "msg", - "value": "night", - "valueType": "str" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 330, - "y": 260, - "wires": [ - [ - "b1106a1c85cc30f3" - ] - ] - }, - { - "id": "f4da808dc4c218b6", - "type": "api-current-state", - "z": "52430f5e9f9ee267", - "name": "Morning Time", - "server": "657c7463.48e1e4", - "version": 3, - "outputs": 1, - "halt_if": "", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "input_datetime.morning_starts_ha", - "state_type": "str", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "payload", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "topic", - "propertyType": "msg", - "value": "morning", - "valueType": "str" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 340, - "y": 60, - "wires": [ - [ - "b1106a1c85cc30f3" - ] - ] - }, - { - "id": "25fe3f965108a4f8", - "type": "api-current-state", - "z": "52430f5e9f9ee267", - "name": "Evening Time", - "server": "657c7463.48e1e4", - "version": 3, - "outputs": 1, - "halt_if": "", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "input_datetime.evening_starts_ha", - "state_type": "str", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "payload", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "topic", - "propertyType": "msg", - "value": "evening", - "valueType": "str" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 340, - "y": 180, - "wires": [ - [ - "b1106a1c85cc30f3" - ] - ] - }, - { - "id": "b1106a1c85cc30f3", - "type": "join", - "z": "52430f5e9f9ee267", - "name": "Collect all times", - "mode": "custom", - "build": "object", - "property": "payload", - "propertyType": "msg", - "key": "topic", - "joiner": "\\n", - "joinerType": "str", - "accumulate": false, - "timeout": "", - "count": "6", - "reduceRight": false, - "reduceExp": "", - "reduceInit": "", - "reduceInitType": "", - "reduceFixup": "", - "x": 750, - "y": 160, - "wires": [ - [ - "4e491e57f35c4458", - "ca40f18fea0361e5" - ] - ] - }, - { - "id": "1029462b97e1cc7c", - "type": "api-current-state", - "z": "52430f5e9f9ee267", - "name": "Midday Time", - "server": "657c7463.48e1e4", - "version": 3, - "outputs": 1, - "halt_if": "", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "input_datetime.midday_starts_ha", - "state_type": "str", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "payload", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "topic", - "propertyType": "msg", - "value": "midday", - "valueType": "str" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 330, - "y": 100, - "wires": [ - [ - "b1106a1c85cc30f3" - ] - ] - }, - { - "id": "6a5d6248d66d5303", - "type": "api-current-state", - "z": "52430f5e9f9ee267", - "name": "Late Evening Time", - "server": "657c7463.48e1e4", - "version": 3, - "outputs": 1, - "halt_if": "", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "input_datetime.late_evening_starts_ha", - "state_type": "str", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "payload", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "topic", - "propertyType": "msg", - "value": "late_evening", - "valueType": "str" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 350, - "y": 220, - "wires": [ - [ - "b1106a1c85cc30f3" - ] - ] - }, - { - "id": "c263329e3207423d", - "type": "api-current-state", - "z": "52430f5e9f9ee267", - "name": "Late Afternoon Time", - "server": "657c7463.48e1e4", - "version": 3, - "outputs": 1, - "halt_if": "", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "input_datetime.late_afternoon_starts_ha", - "state_type": "str", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "payload", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "topic", - "propertyType": "msg", - "value": "late_afternoon", - "valueType": "str" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 360, - "y": 140, - "wires": [ - [ - "b1106a1c85cc30f3" - ] - ] - }, - { - "id": "4e491e57f35c4458", - "type": "split", - "z": "52430f5e9f9ee267", - "name": "For each configured time", - "splt": "\\n", - "spltType": "str", - "arraySplt": 1, - "arraySpltType": "len", - "stream": false, - "addname": "topic", - "x": 1070, - "y": 160, - "wires": [ - [ - "3cc1cd83a914fbed" - ] - ] - }, - { - "id": "d88527a4c0207c0c", - "type": "join", - "z": "52430f5e9f9ee267", - "name": "Merge elements into single array", - "mode": "custom", - "build": "object", - "property": "payload", - "propertyType": "msg", - "key": "topic", - "joiner": "\\n", - "joinerType": "str", - "accumulate": false, - "timeout": "", - "count": "8", - "reduceRight": false, - "reduceExp": "", - "reduceInit": "", - "reduceInitType": "", - "reduceFixup": "", - "x": 1100, - "y": 360, - "wires": [ - [ - "00fdb1bc99d82683" - ] - ] - }, - { - "id": "3cc1cd83a914fbed", - "type": "moment", - "z": "52430f5e9f9ee267", - "name": "Convert time to date time", - "topic": "", - "input": "payload", - "inputType": "msg", - "inTz": "Europe/Berlin", - "adjAmount": 0, - "adjType": "days", - "adjDir": "add", - "format": "", - "locale": "en-US", - "output": "payload", - "outputType": "msg", - "outTz": "Europe/Berlin", - "x": 1070, - "y": 220, - "wires": [ - [ - "558cbc9bafd7fda2" - ] - ] - }, - { - "id": "558cbc9bafd7fda2", - "type": "switch", - "z": "52430f5e9f9ee267", - "name": "Check additional date for night ", - "property": "topic", - "propertyType": "msg", - "rules": [ - { - "t": "eq", - "v": "night", - "vt": "str" - }, - { - "t": "else" - } - ], - "checkall": "true", - "repair": false, - "outputs": 2, - "x": 1090, - "y": 280, - "wires": [ - [ - "72abde726eb791b7", - "d88527a4c0207c0c" - ], - [ - "d88527a4c0207c0c" - ] - ] - }, - { - "id": "72abde726eb791b7", - "type": "moment", - "z": "52430f5e9f9ee267", - "name": "Create date time for night tomorrow", - "topic": "night_tomorrow", - "input": "payload", - "inputType": "msg", - "inTz": "Europe/Berlin", - "adjAmount": "1", - "adjType": "days", - "adjDir": "add", - "format": "", - "locale": "en-US", - "output": "payload", - "outputType": "msg", - "outTz": "Europe/Berlin", - "x": 1460, - "y": 280, - "wires": [ - [ - "d88527a4c0207c0c" - ] - ] - }, - { - "id": "035b7bb98d69b0a0", - "type": "switch", - "z": "52430f5e9f9ee267", - "name": "Compare times", - "property": "payload.now", - "propertyType": "msg", - "rules": [ - { - "t": "lt", - "v": "payload.night", - "vt": "msg" - }, - { - "t": "btwn", - "v": "payload.night", - "vt": "msg", - "v2": "payload.morning", - "v2t": "msg" - }, - { - "t": "btwn", - "v": "payload.morning", - "vt": "msg", - "v2": "payload.midday", - "v2t": "msg" - }, - { - "t": "btwn", - "v": "payload.midday", - "vt": "msg", - "v2": "payload.late_afternoon", - "v2t": "msg" - }, - { - "t": "btwn", - "v": "payload.late_afternoon", - "vt": "msg", - "v2": "payload.evening", - "v2t": "msg" - }, - { - "t": "btwn", - "v": "payload.evening", - "vt": "msg", - "v2": "payload.late_evening", - "v2t": "msg" - }, - { - "t": "btwn", - "v": "payload.late_evening", - "vt": "msg", - "v2": "payload.night_tomorrow", - "v2t": "msg" - }, - { - "t": "else" - } - ], - "checkall": "false", - "repair": false, - "outputs": 8, - "x": 1080, - "y": 520, - "wires": [ - [ - "25b5aff2dea58057" - ], - [ - "5f0e5f63552a97f2" - ], - [ - "b884e557f9524784" - ], - [ - "06f7380c6f28bdd1" - ], - [ - "41de38d16e68d1d9" - ], - [ - "4d992d3713228542" - ], - [ - "25b5aff2dea58057" - ], - [ - "5f0e5f63552a97f2" - ] - ] - }, - { - "id": "b884e557f9524784", - "type": "change", - "z": "52430f5e9f9ee267", - "name": "It's morning", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "morning", - "tot": "str" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 1490, - "y": 440, - "wires": [ - [] - ] - }, - { - "id": "06f7380c6f28bdd1", - "type": "change", - "z": "52430f5e9f9ee267", - "name": "It's midday", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "midday", - "tot": "str" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 1490, - "y": 480, - "wires": [ - [] - ] - }, - { - "id": "41de38d16e68d1d9", - "type": "change", - "z": "52430f5e9f9ee267", - "name": "It's late afternoon", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "late_afternoon", - "tot": "str" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 1510, - "y": 520, - "wires": [ - [] - ] - }, - { - "id": "4d992d3713228542", - "type": "change", - "z": "52430f5e9f9ee267", - "name": "It's evening", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "evening", - "tot": "str" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 1490, - "y": 560, - "wires": [ - [] - ] - }, - { - "id": "25b5aff2dea58057", - "type": "change", - "z": "52430f5e9f9ee267", - "name": "It's late evening", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "late_evening", - "tot": "str" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 1500, - "y": 600, - "wires": [ - [] - ] - }, - { - "id": "5f0e5f63552a97f2", - "type": "change", - "z": "52430f5e9f9ee267", - "name": "It's night", - "rules": [ - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "night", - "tot": "str" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 1480, - "y": 640, - "wires": [ - [] - ] - }, - { - "id": "ca40f18fea0361e5", - "type": "moment", - "z": "52430f5e9f9ee267", - "name": "Add current date time", - "topic": "now", - "input": "", - "inputType": "date", - "inTz": "Europe/Berlin", - "adjAmount": "0", - "adjType": "days", - "adjDir": "add", - "format": "", - "locale": "en-US", - "output": "payload", - "outputType": "msg", - "outTz": "Europe/Berlin", - "x": 760, - "y": 220, - "wires": [ - [ - "d88527a4c0207c0c" - ] - ] - }, - { - "id": "00fdb1bc99d82683", - "type": "change", - "z": "52430f5e9f9ee267", - "name": "Clean up msg object", - "rules": [ - { - "t": "delete", - "p": "settings", - "pt": "msg" - }, - { - "t": "delete", - "p": "topic", - "pt": "msg" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 1060, - "y": 420, - "wires": [ - [ - "035b7bb98d69b0a0" - ] - ] - }, - { - "id": "94df66c8.23c748", - "type": "switch", - "z": "c0a0e0.ae6cbf2", - "name": "Direction", - "property": "direction", - "propertyType": "flow", - "rules": [ - { - "t": "eq", - "v": "up", - "vt": "str" - }, - { - "t": "else" - } - ], - "checkall": "true", - "repair": false, - "outputs": 2, - "x": 820, - "y": 220, - "wires": [ - [ - "488569b9.ed45a8" - ], - [ - "be09eac4.e90d18" - ] - ] - }, - { - "id": "488569b9.ed45a8", - "type": "change", - "z": "c0a0e0.ae6cbf2", - "name": "Set direction down", - "rules": [ - { - "t": "set", - "p": "direction", - "pt": "flow", - "to": "down", - "tot": "str" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 1040, - "y": 180, - "wires": [ - [ - "de7aef74.e638b" - ] - ] - }, - { - "id": "be09eac4.e90d18", - "type": "change", - "z": "c0a0e0.ae6cbf2", - "name": "Set direction up", - "rules": [ - { - "t": "set", - "p": "direction", - "pt": "flow", - "to": "up", - "tot": "str" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 1030, - "y": 260, - "wires": [ - [ - "32ce8567.49120a" - ] - ] - }, - { - "id": "da116e59.611b2", - "type": "mqtt out", - "z": "c0a0e0.ae6cbf2", - "name": "", - "topic": "", - "qos": "", - "retain": "", - "respTopic": "", - "contentType": "", - "userProps": "", - "correl": "", - "expiry": "", - "broker": "d51b5899.a2d5d8", - "x": 1520, - "y": 180, - "wires": [] - }, - { - "id": "de7aef74.e638b", - "type": "change", - "z": "c0a0e0.ae6cbf2", - "name": "MQTT message UP", - "rules": [ - { - "t": "set", - "p": "topic", - "pt": "msg", - "to": "topic", - "tot": "env" - }, - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "{\"brightness_move\": 70}", - "tot": "str" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 1280, - "y": 180, - "wires": [ - [ - "da116e59.611b2" - ] - ] - }, - { - "id": "5f89dab8.652954", - "type": "mqtt out", - "z": "c0a0e0.ae6cbf2", - "name": "", - "topic": "", - "qos": "", - "retain": "", - "broker": "d51b5899.a2d5d8", - "x": 1520, - "y": 260, - "wires": [] - }, - { - "id": "32ce8567.49120a", - "type": "change", - "z": "c0a0e0.ae6cbf2", - "name": "MQTT message DOWN", - "rules": [ - { - "t": "set", - "p": "topic", - "pt": "msg", - "to": "topic", - "tot": "env" - }, - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "{\"brightness_move\": -70}", - "tot": "str" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 1300, - "y": 260, - "wires": [ - [ - "5f89dab8.652954" - ] - ] - }, - { - "id": "bad6cfaf.6876d", - "type": "mqtt out", - "z": "c0a0e0.ae6cbf2", - "name": "", - "topic": "", - "qos": "", - "retain": "", - "respTopic": "", - "contentType": "", - "userProps": "", - "correl": "", - "expiry": "", - "broker": "d51b5899.a2d5d8", - "x": 1090, - "y": 340, - "wires": [] - }, - { - "id": "370e7b7e.f5dca4", - "type": "change", - "z": "c0a0e0.ae6cbf2", - "name": "MQTT message STOP", - "rules": [ - { - "t": "set", - "p": "topic", - "pt": "msg", - "to": "topic", - "tot": "env" - }, - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "{\"brightness_move\": 0}", - "tot": "str" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 860, - "y": 340, - "wires": [ - [ - "bad6cfaf.6876d" - ] - ] - }, - { - "id": "96ea6236.ce35a", - "type": "mqtt out", - "z": "c0a0e0.ae6cbf2", - "name": "", - "topic": "", - "qos": "", - "retain": "", - "broker": "d51b5899.a2d5d8", - "x": 1090, - "y": 460, - "wires": [] - }, - { - "id": "7e1107c0.6c8b38", - "type": "change", - "z": "c0a0e0.ae6cbf2", - "name": "MQTT message TOGGLE", - "rules": [ - { - "t": "set", - "p": "topic", - "pt": "msg", - "to": "topic", - "tot": "env" - }, - { - "t": "set", - "p": "payload", - "pt": "msg", - "to": "{\"state\": \"TOGGLE\"}", - "tot": "str" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 870, - "y": 460, - "wires": [ - [ - "96ea6236.ce35a" - ] - ] - }, - { - "id": "821795d7.433b58", - "type": "switch", - "z": "c0a0e0.ae6cbf2", - "name": "Action", - "property": "payload", - "propertyType": "msg", - "rules": [ - { - "t": "eq", - "v": "dim", - "vt": "str" - }, - { - "t": "eq", - "v": "stop", - "vt": "str" - }, - { - "t": "else" - } - ], - "checkall": "true", - "repair": false, - "outputs": 3, - "x": 630, - "y": 340, - "wires": [ - [ - "94df66c8.23c748" - ], - [ - "370e7b7e.f5dca4" - ], - [ - "7e1107c0.6c8b38" - ] - ] - }, - { - "id": "a93b68e3e83b1d25", - "type": "moment", - "z": "be8264a322721305", - "name": "Format to HH:mm", - "topic": "", - "input": "payload", - "inputType": "msg", - "inTz": "Europe/Berlin", - "adjAmount": "5", - "adjType": "minutes", - "adjDir": "add", - "format": "HH:mm", - "locale": "en-GB", - "output": "payload", - "outputType": "msg", - "outTz": "Europe/Berlin", - "x": 290, - "y": 100, - "wires": [ - [ - "0dc0142b97a1bdc7" - ] - ] - }, - { - "id": "7a1e6b58aaf9559f", - "type": "schedex", - "z": "be8264a322721305", - "name": "Timer", - "passthroughunhandled": true, - "suspended": false, - "lat": "", - "lon": "", - "ontime": "", - "ontopic": "", - "onpayload": "", - "onoffset": 0, - "onrandomoffset": 0, - "offtime": "", - "offtopic": "", - "offpayload": "", - "offoffset": 0, - "offrandomoffset": 0, - "mon": true, - "tue": true, - "wed": true, - "thu": true, - "fri": true, - "sat": true, - "sun": true, - "x": 710, - "y": 100, - "wires": [ - [] - ] - }, - { - "id": "0dc0142b97a1bdc7", - "type": "string", - "z": "be8264a322721305", - "name": "Prepend ontime", - "methods": [ - { - "name": "prepend", - "params": [ - { - "type": "str", - "value": "ontime " - } - ] - } - ], - "prop": "payload", - "propout": "payload", - "object": "msg", - "objectout": "msg", - "x": 520, - "y": 100, - "wires": [ - [ - "7a1e6b58aaf9559f" - ] - ] - }, { "id": "6240870c.31fd5", "type": "server-state-changed", @@ -23175,5 +21726,48 @@ "wires": [ [] ] + }, + { + "id": "657c7463.48e1e4", + "type": "server", + "name": "Home Assistant Latest", + "addon": false, + "rejectUnauthorizedCerts": true, + "ha_boolean": "y|yes|true|on|home|open", + "connectionDelay": true, + "cacheJson": false, + "heartbeat": false, + "heartbeatInterval": "", + "statusSeparator": "", + "enableGlobalContextStore": false + }, + { + "id": "d51b5899.a2d5d8", + "type": "mqtt-broker", + "name": "Mosquto Broker", + "broker": "192.168.1.6", + "port": "1883", + "clientid": "", + "autoConnect": true, + "usetls": false, + "compatmode": false, + "protocolVersion": "4", + "keepalive": "60", + "cleansession": true, + "autoUnsubscribe": true, + "birthTopic": "", + "birthQos": "0", + "birthPayload": "", + "birthMsg": {}, + "closeTopic": "", + "closeQos": "0", + "closePayload": "", + "closeMsg": {}, + "willTopic": "", + "willQos": "0", + "willPayload": "", + "willMsg": {}, + "userProps": "", + "sessionExpiry": "" } ] \ No newline at end of file