Skip to content

Instantly share code, notes, and snippets.

@frosenlind
Last active December 19, 2020 12:47
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/e844164aae56b82a16f45c409ed28a29 to your computer and use it in GitHub Desktop.
Save frosenlind/e844164aae56b82a16f45c409ed28a29 to your computer and use it in GitHub Desktop.
Node-Red, garage
[
{
"id": "ed7b45a2.6633b8",
"type": "server-state-changed",
"z": "65c6e443.16a6fc",
"name": "Garage",
"server": "b6162a50.c4af78",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "binary_sensor.vs_xa_2",
"entityidfiltertype": "exact",
"outputinitially": true,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": false,
"for": "",
"forType": "num",
"forUnits": "minutes",
"ignorePrevStateNull": false,
"ignorePrevStateUnknown": false,
"ignorePrevStateUnavailable": false,
"ignoreCurrentStateUnknown": false,
"ignoreCurrentStateUnavailable": false,
"x": 230,
"y": 1080,
"wires": [
[
"21dbae83.a082a2"
]
]
},
{
"id": "21dbae83.a082a2",
"type": "switch",
"z": "65c6e443.16a6fc",
"name": "Open or closed",
"property": "data.new_state.attributes.orientation[2]",
"propertyType": "msg",
"rules": [
{
"t": "lt",
"v": "0",
"vt": "str"
},
{
"t": "else"
}
],
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 420,
"y": 1080,
"wires": [
[
"fdc680f8.088e1"
],
[
"a3ed4e2f.7c79e"
]
]
},
{
"id": "a3ed4e2f.7c79e",
"type": "api-call-service",
"z": "65c6e443.16a6fc",
"name": "Turn off / closed",
"server": "b6162a50.c4af78",
"version": 1,
"debugenabled": false,
"service_domain": "input_boolean",
"service": "turn_off",
"entityId": "input_boolean.garage_r",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 720,
"y": 1120,
"wires": [
[]
]
},
{
"id": "fdc680f8.088e1",
"type": "api-call-service",
"z": "65c6e443.16a6fc",
"name": "Turn on / open",
"server": "b6162a50.c4af78",
"version": 1,
"debugenabled": false,
"service_domain": "input_boolean",
"service": "turn_on",
"entityId": "input_boolean.garage_r",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 720,
"y": 1060,
"wires": [
[]
]
},
{
"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