Sunset lights now turns on upstairs bathroom night lighting

This commit is contained in:
2022-12-01 19:41:00 -05:00
parent eda0de33a1
commit 23b7453d9f

View File

@ -1052,9 +1052,7 @@
"4f330c52abf707de"
],
"x": 34,
"y": 539,
"w": 2212,
"h": 282
"y": 539
},
{
"id": "753e14252442d87d",
@ -7047,7 +7045,8 @@
"y": 60,
"wires": [
[
"e9aba9f5312297b7"
"e9aba9f5312297b7",
"453ea64f2d207692"
]
]
},
@ -7081,7 +7080,8 @@
"y": 180,
"wires": [
[
"e9aba9f5312297b7"
"e9aba9f5312297b7",
"453ea64f2d207692"
]
]
},
@ -8241,6 +8241,76 @@
[]
]
},
{
"id": "453ea64f2d207692",
"type": "api-current-state",
"z": "e44b1e7a8ef7ae1d",
"name": "Upstairs Bathroom State",
"server": "9e87348d.9c1c48",
"version": 3,
"outputs": 2,
"halt_if": "off",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "light.upstairs_bathroom_lights",
"state_type": "str",
"blockInputOverrides": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
}
],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 2290,
"y": 360,
"wires": [
[
"0b690d62ae351afc"
],
[]
],
"outputLabels": [
"Off",
"On"
]
},
{
"id": "0b690d62ae351afc",
"type": "api-call-service",
"z": "e44b1e7a8ef7ae1d",
"name": "Upstairs Bathroom Nightlight",
"server": "9e87348d.9c1c48",
"version": 5,
"debugenabled": false,
"domain": "input_select",
"service": "select_option",
"areaId": [],
"deviceId": [],
"entityId": [
"input_select.upstairs_bathroom_scenes"
],
"data": "{\t \"option\":\"Nightlight\"\t}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 2560,
"y": 360,
"wires": [
[]
]
},
{
"id": "134433d6e21dab5b",
"type": "server-state-changed",