Skip to content

Instantly share code, notes, and snippets.

@frosenlind
Created November 17, 2020 12:36
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/68a54637182527bdfce16c511e260287 to your computer and use it in GitHub Desktop.
Save frosenlind/68a54637182527bdfce16c511e260287 to your computer and use it in GitHub Desktop.
Node-Red - Reset house_away_mode to home
[
{
"id": "ffc1f6a2.afba08",
"type": "inject",
"z": "65c6e443.16a6fc",
"name": "",
"props": [],
"repeat": "",
"crontab": "00 04 * * *",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 170,
"y": 400,
"wires": [
[
"728e776c.acec18"
]
]
},
{
"id": "728e776c.acec18",
"type": "api-current-state",
"z": "65c6e443.16a6fc",
"name": "Check if day",
"server": "b6162a50.c4af78",
"version": 1,
"outputs": 2,
"halt_if": "day",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": false,
"entity_id": "input_select.house_away_mode",
"state_type": "str",
"state_location": "",
"override_payload": "none",
"entity_location": "",
"override_data": "none",
"blockInputOverrides": false,
"x": 390,
"y": 400,
"wires": [
[
"dadecb13.3e8b38"
],
[]
]
},
{
"id": "dadecb13.3e8b38",
"type": "api-call-service",
"z": "65c6e443.16a6fc",
"name": "Set away to Home",
"server": "b6162a50.c4af78",
"version": 1,
"debugenabled": false,
"service_domain": "input_select",
"service": "select_option",
"entityId": "input_select.house_away_mode",
"data": "{\"option\":\"home\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 630,
"y": 400,
"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