Skip to content

Instantly share code, notes, and snippets.

@jorgeassuncao
Created January 24, 2019 12:03
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 jorgeassuncao/3d082ccf8f26f77de9f4c017619f2d19 to your computer and use it in GitHub Desktop.
Save jorgeassuncao/3d082ccf8f26f77de9f4c017619f2d19 to your computer and use it in GitHub Desktop.
[
{
"id": "1e661f9e.f2684",
"type": "schedex",
"z": "24273f3e.4e1ef",
"name": "",
"suspended": false,
"lat": "38.782591",
"lon": "-9.322595",
"ontime": "",
"ontopic": "",
"onpayload": "1",
"onoffset": "",
"onrandomoffset": 0,
"offtime": "",
"offtopic": "",
"offpayload": "0",
"offoffset": 0,
"offrandomoffset": 0,
"mon": true,
"tue": true,
"wed": true,
"thu": true,
"fri": true,
"sat": true,
"sun": true,
"x": 650,
"y": 240,
"wires": [
[
"579a049c.f1980c"
]
]
},
{
"id": "c13b2e54.679b5",
"type": "poll-state",
"z": "24273f3e.4e1ef",
"name": "Night Mode On",
"server": "f535e5f5.331e48",
"updateinterval": "10",
"outputinitially": false,
"outputonchanged": true,
"entity_id": "input_datetime.time_inicio_modo_nocturno_cozinha",
"state_type": "str",
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"x": 180,
"y": 180,
"wires": [
[
"b2cbe2db.7aad3"
]
]
},
{
"id": "b2cbe2db.7aad3",
"type": "template",
"z": "24273f3e.4e1ef",
"name": "Set Night Mode ON",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "ontime {{payload}}",
"output": "str",
"x": 410,
"y": 180,
"wires": [
[
"1e661f9e.f2684"
]
]
},
{
"id": "6d7c483d.abfe78",
"type": "poll-state",
"z": "24273f3e.4e1ef",
"name": "Night Mode OFF",
"server": "f535e5f5.331e48",
"updateinterval": "10",
"outputinitially": false,
"outputonchanged": true,
"entity_id": "input_datetime.time_fim_modo_nocturno_cozinha",
"state_type": "str",
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"x": 160,
"y": 300,
"wires": [
[
"ea82c46a.7f7fc8"
]
]
},
{
"id": "ea82c46a.7f7fc8",
"type": "template",
"z": "24273f3e.4e1ef",
"name": "Set Night Mode OFF",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "offtime {{payload}}",
"output": "str",
"x": 400,
"y": 300,
"wires": [
[
"1e661f9e.f2684"
]
]
},
{
"id": "579a049c.f1980c",
"type": "api-call-service",
"z": "24273f3e.4e1ef",
"name": "LP Cozinha",
"server": "f535e5f5.331e48",
"service_domain": "light",
"service": "turn_on",
"data": "{\"entity_id\":\"light.luz_de_presenca_cozinha_1_bancada\"}",
"render_data": false,
"mergecontext": "",
"output_location": "payload",
"output_location_type": "msg",
"x": 970,
"y": 240,
"wires": [
[]
]
},
{
"id": "2ec9e27a.25a96e",
"type": "trigger-state",
"z": "24273f3e.4e1ef",
"name": "Manual Override",
"server": "f535e5f5.331e48",
"entityid": "input_boolean.lp_cozinha_manual",
"entityidfiltertype": "exact",
"debugenabled": false,
"constraints": [],
"constraintsmustmatch": "all",
"outputs": 2,
"customoutputs": [],
"outputinitially": false,
"state_type": "str",
"x": 410,
"y": 240,
"wires": [
[
"1e661f9e.f2684"
],
[]
]
},
{
"id": "f535e5f5.331e48",
"type": "server",
"z": "",
"name": "HA_Connection",
"legacy": false,
"hassio": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment