Skip to content

Instantly share code, notes, and snippets.

@frosenlind
Created November 21, 2020 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frosenlind/3303caa92583dad2ce6573ce6db8353e to your computer and use it in GitHub Desktop.
Save frosenlind/3303caa92583dad2ce6573ce6db8353e to your computer and use it in GitHub Desktop.
Node-Red - Create.scene
[
{
"id": "847f30d9.ff174",
"type": "api-call-service",
"z": "65c6e443.16a6fc",
"name": "Save state for outside lights",
"server": "b6162a50.c4af78",
"version": 1,
"debugenabled": false,
"service_domain": "scene",
"service": "create",
"entityId": "",
"data": "{\"scene_id\":\"outside_lights_state\",\"snapshot_entities\":[\"light.lt_tf_12\",\"light.lt_tf_15\"]}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1060,
"y": 160,
"wires": [
[
"e3c294df.4f5868"
]
]
},
{
"id": "e3c294df.4f5868",
"type": "api-call-service",
"z": "65c6e443.16a6fc",
"name": "Turn off all lights",
"server": "b6162a50.c4af78",
"version": 1,
"debugenabled": false,
"service_domain": "light",
"service": "turn_off",
"entityId": "all",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1280,
"y": 160,
"wires": [
[
"45236975.e8ed38"
]
]
},
{
"id": "fa204283.f8508",
"type": "api-call-service",
"z": "65c6e443.16a6fc",
"name": "Restore state for outside lights",
"server": "b6162a50.c4af78",
"version": 1,
"debugenabled": false,
"service_domain": "scene",
"service": "turn_on",
"entityId": "scene.outside_lights_state",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1690,
"y": 160,
"wires": [
[]
]
},
{
"id": "45236975.e8ed38",
"type": "delay",
"z": "65c6e443.16a6fc",
"name": "",
"pauseType": "delay",
"timeout": "2",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1450,
"y": 160,
"wires": [
[
"fa204283.f8508"
]
]
},
{
"id": "b6162a50.c4af78",
"type": "server",
"name": "Home Assistant - New",
"legacy": false,
"addon": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment