Script erstellt für Pause bei Klingel
This commit is contained in:
parent
4f4a70a861
commit
68d6fc4cbf
182
node_red_heimkino_pause_bei_klingel.json
Normal file
182
node_red_heimkino_pause_bei_klingel.json
Normal file
@ -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
|
||||
}
|
||||
]
|
||||
Loading…
x
Reference in New Issue
Block a user