Use scripts instead of scenes for wife's desk lights handler

This commit is contained in:
2023-07-19 17:04:34 -04:00
parent a92953751c
commit 47b4ee18c7

View File

@ -5179,35 +5179,6 @@
"y": 140, "y": 140,
"wires": [] "wires": []
}, },
{
"id": "655050669e5ccf85",
"type": "api-call-service",
"z": "85c4f81ca9628aea",
"name": "Set Scene",
"server": "9e87348d.9c1c48",
"version": 5,
"debugenabled": false,
"domain": "scene",
"service": "turn_on",
"areaId": [],
"deviceId": [],
"entityId": [
"scene.{{payload}}_in_{{topic}}"
],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 670,
"y": 340,
"wires": [
[
"8ad119b6c6e11ddd"
]
]
},
{ {
"id": "8ad119b6c6e11ddd", "id": "8ad119b6c6e11ddd",
"type": "function", "type": "function",
@ -5249,8 +5220,8 @@
"y": 340, "y": 340,
"wires": [ "wires": [
[ [
"655050669e5ccf85", "78a73c2d816658d8",
"78a73c2d816658d8" "138fc130a014b26e"
] ]
], ],
"outputLabels": [ "outputLabels": [
@ -5259,6 +5230,35 @@
"Otherwise" "Otherwise"
] ]
}, },
{
"id": "138fc130a014b26e",
"type": "api-call-service",
"z": "85c4f81ca9628aea",
"name": "Set Scene",
"server": "9e87348d.9c1c48",
"version": 5,
"debugenabled": false,
"domain": "script",
"service": "turn_on",
"areaId": [],
"deviceId": [],
"entityId": [
"script.{{payload}}_in_{{topic}}"
],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 670,
"y": 340,
"wires": [
[
"8ad119b6c6e11ddd"
]
]
},
{ {
"id": "b05ef328b90665d5", "id": "b05ef328b90665d5",
"type": "delay", "type": "delay",