From 68d6fc4cbf991a2086371e9f351d03c93ae7a2ad Mon Sep 17 00:00:00 2001 From: Housemann <40449280+Housemann@users.noreply.github.com> Date: Sun, 20 Jul 2025 19:21:13 +0200 Subject: [PATCH] =?UTF-8?q?Script=20erstellt=20f=C3=BCr=20Pause=20bei=20Kl?= =?UTF-8?q?ingel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- node_red_heimkino_pause_bei_klingel.json | 182 +++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 node_red_heimkino_pause_bei_klingel.json diff --git a/node_red_heimkino_pause_bei_klingel.json b/node_red_heimkino_pause_bei_klingel.json new file mode 100644 index 0000000..f85063c --- /dev/null +++ b/node_red_heimkino_pause_bei_klingel.json @@ -0,0 +1,182 @@ +[ + { + "id": "ec8c530269d9809c", + "type": "group", + "z": "74eab2802feb3cf4", + "name": "Heimkino Pause bei Klingel", + "style": { + "fill": "#dbcbe7", + "label": true + }, + "nodes": [ + "bbe2bd314f9ccfdd", + "a53fb4f4f48cc404", + "3bdb09facf75d941" + ], + "x": 14, + "y": 319, + "w": 1172, + "h": 82 + }, + { + "id": "bbe2bd314f9ccfdd", + "type": "server-state-changed", + "z": "74eab2802feb3cf4", + "g": "ec8c530269d9809c", + "name": "Klingel", + "server": "162e4f7136cd343a", + "version": 6, + "outputs": 2, + "exposeAsEntityConfig": "", + "entities": { + "entity": [ + "binary_sensor.diele_klingelsensor" + ], + "substring": [], + "regex": [] + }, + "outputInitially": false, + "stateType": "str", + "ifState": "on", + "ifStateType": "str", + "ifStateOperator": "is", + "outputOnlyOnStateChange": true, + "for": "0", + "forType": "num", + "forUnits": "minutes", + "ignorePrevStateNull": false, + "ignorePrevStateUnknown": false, + "ignorePrevStateUnavailable": false, + "ignoreCurrentStateUnknown": false, + "ignoreCurrentStateUnavailable": false, + "outputProperties": [ + { + "property": "payload", + "propertyType": "msg", + "value": "Jemand hat an der Haustüre geschellt", + "valueType": "str" + }, + { + "property": "topic", + "propertyType": "msg", + "value": "Klingel", + "valueType": "str" + }, + { + "property": "sound", + "propertyType": "msg", + "value": "bike", + "valueType": "str" + } + ], + "x": 90, + "y": 360, + "wires": [ + [ + "a53fb4f4f48cc404" + ], + [] + ] + }, + { + "id": "a53fb4f4f48cc404", + "type": "api-current-state", + "z": "74eab2802feb3cf4", + "g": "ec8c530269d9809c", + "name": "State Apple TV", + "server": "162e4f7136cd343a", + "version": 3, + "outputs": 2, + "halt_if": "playing", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "media_player.multimedia", + "state_type": "str", + "blockInputOverrides": true, + "outputProperties": [ + { + "property": "payload", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "data", + "propertyType": "msg", + "value": "", + "valueType": "entity" + } + ], + "for": "0", + "forType": "num", + "forUnits": "minutes", + "override_topic": false, + "state_location": "payload", + "override_payload": "msg", + "entity_location": "data", + "override_data": "msg", + "x": 420, + "y": 360, + "wires": [ + [ + "3bdb09facf75d941" + ], + [] + ] + }, + { + "id": "3bdb09facf75d941", + "type": "api-call-service", + "z": "74eab2802feb3cf4", + "g": "ec8c530269d9809c", + "name": "Apple TV Pause", + "server": "162e4f7136cd343a", + "version": 7, + "debugenabled": false, + "action": "media_player.media_pause", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [ + "media_player.multimedia" + ], + "labelId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": true, + "domain": "media_player", + "service": "media_pause", + "x": 1080, + "y": 360, + "wires": [ + [] + ] + }, + { + "id": "162e4f7136cd343a", + "type": "server", + "name": "Home Assistant", + "version": 5, + "addon": false, + "rejectUnauthorizedCerts": true, + "ha_boolean": "y|yes|true|on|home|open", + "connectionDelay": true, + "cacheJson": true, + "heartbeat": true, + "heartbeatInterval": "10", + "areaSelector": "friendlyName", + "deviceSelector": "friendlyName", + "entitySelector": "friendlyName", + "statusSeparator": ": ", + "statusYear": "hidden", + "statusMonth": "short", + "statusDay": "numeric", + "statusHourCycle": "default", + "statusTimeFormat": "h:m", + "enableGlobalContextStore": false + } +] \ No newline at end of file