Advertisement
Guest User

Untitled

a guest
Apr 27th, 2020
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 7.09 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "7b9cfb80.c9e8e4",
  4.         "type": "api-call-service",
  5.         "z": "d95d410b.da89f",
  6.         "name": "Heater On",
  7.         "server": "b55184c9.017a48",
  8.         "version": 1,
  9.         "debugenabled": false,
  10.         "service_domain": "switch",
  11.         "service": "turn_on",
  12.         "entityId": "switch.d1_relay_signal",
  13.         "data": "",
  14.         "dataType": "json",
  15.         "mergecontext": "",
  16.         "output_location": "",
  17.         "output_location_type": "none",
  18.         "mustacheAltTags": false,
  19.         "x": 672,
  20.         "y": 375,
  21.         "wires": [
  22.             []
  23.         ]
  24.     },
  25.     {
  26.         "id": "d546ce1c.1ed72",
  27.         "type": "server-state-changed",
  28.         "z": "d95d410b.da89f",
  29.         "name": "Timer-start",
  30.         "server": "b55184c9.017a48",
  31.         "version": 1,
  32.         "exposeToHomeAssistant": false,
  33.         "haConfig": [
  34.             {
  35.                 "property": "name",
  36.                 "value": ""
  37.             },
  38.             {
  39.                 "property": "icon",
  40.                 "value": ""
  41.             }
  42.         ],
  43.         "entityidfilter": "input_boolean.heater_timer",
  44.         "entityidfiltertype": "exact",
  45.         "outputinitially": false,
  46.         "state_type": "str",
  47.         "haltifstate": "on",
  48.         "halt_if_type": "str",
  49.         "halt_if_compare": "is",
  50.         "outputs": 2,
  51.         "output_only_on_state_change": true,
  52.         "x": 125,
  53.         "y": 370,
  54.         "wires": [
  55.             [
  56.                 "68a7bcde.a04c34",
  57.                 "9e256f54.f7d9e"
  58.             ],
  59.             []
  60.         ]
  61.     },
  62.     {
  63.         "id": "68a7bcde.a04c34",
  64.         "type": "api-current-state",
  65.         "z": "d95d410b.da89f",
  66.         "name": "how long?",
  67.         "server": "b55184c9.017a48",
  68.         "version": 1,
  69.         "outputs": 1,
  70.         "halt_if": "",
  71.         "halt_if_type": "str",
  72.         "halt_if_compare": "is",
  73.         "override_topic": true,
  74.         "entity_id": "input_number.heat_timer",
  75.         "state_type": "num",
  76.         "state_location": "payload",
  77.         "override_payload": "msg",
  78.         "entity_location": "data",
  79.         "override_data": "msg",
  80.         "blockInputOverrides": false,
  81.         "x": 283,
  82.         "y": 374,
  83.         "wires": [
  84.             [
  85.                 "7b9cfb80.c9e8e4",
  86.                 "2426d29d.f3c41e"
  87.             ]
  88.         ]
  89.     },
  90.     {
  91.         "id": "9e256f54.f7d9e",
  92.         "type": "delay",
  93.         "z": "d95d410b.da89f",
  94.         "name": "",
  95.         "pauseType": "delay",
  96.         "timeout": "5",
  97.         "timeoutUnits": "seconds",
  98.         "rate": "1",
  99.         "nbRateUnits": "1",
  100.         "rateUnits": "second",
  101.         "randomFirst": "1",
  102.         "randomLast": "5",
  103.         "randomUnits": "seconds",
  104.         "drop": false,
  105.         "x": 292,
  106.         "y": 300,
  107.         "wires": [
  108.             [
  109.                 "38996538.c7b06a"
  110.             ]
  111.         ]
  112.     },
  113.     {
  114.         "id": "38996538.c7b06a",
  115.         "type": "api-call-service",
  116.         "z": "d95d410b.da89f",
  117.         "name": "Timer - button reset",
  118.         "server": "b55184c9.017a48",
  119.         "version": 1,
  120.         "debugenabled": false,
  121.         "service_domain": "input_boolean",
  122.         "service": "turn_off",
  123.         "entityId": "input_boolean.heater_timer",
  124.         "data": "",
  125.         "dataType": "json",
  126.         "mergecontext": "",
  127.         "output_location": "",
  128.         "output_location_type": "none",
  129.         "mustacheAltTags": false,
  130.         "x": 477,
  131.         "y": 300,
  132.         "wires": [
  133.             []
  134.         ]
  135.     },
  136.     {
  137.         "id": "c8b32ea4.22229",
  138.         "type": "change",
  139.         "z": "d95d410b.da89f",
  140.         "name": "change",
  141.         "rules": [
  142.             {
  143.                 "t": "move",
  144.                 "p": "payload",
  145.                 "pt": "msg",
  146.                 "to": "timeout",
  147.                 "tot": "msg"
  148.             },
  149.             {
  150.                 "t": "set",
  151.                 "p": "payload",
  152.                 "pt": "msg",
  153.                 "to": "on",
  154.                 "tot": "str"
  155.             }
  156.         ],
  157.         "action": "",
  158.         "property": "",
  159.         "from": "",
  160.         "to": "",
  161.         "reg": false,
  162.         "x": 300,
  163.         "y": 496,
  164.         "wires": [
  165.             [
  166.                 "c486fdee.4b707"
  167.             ]
  168.         ]
  169.     },
  170.     {
  171.         "id": "b5ad2918.a2b468",
  172.         "type": "debug",
  173.         "z": "d95d410b.da89f",
  174.         "name": "",
  175.         "active": true,
  176.         "tosidebar": true,
  177.         "console": false,
  178.         "tostatus": false,
  179.         "complete": "false",
  180.         "x": 527,
  181.         "y": 627,
  182.         "wires": []
  183.     },
  184.     {
  185.         "id": "c486fdee.4b707",
  186.         "type": "mytimeout",
  187.         "z": "d95d410b.da89f",
  188.         "name": "timer - off",
  189.         "outtopic": "",
  190.         "outsafe": "1",
  191.         "outwarning": "",
  192.         "outunsafe": "0",
  193.         "warning": "0",
  194.         "timer": "0",
  195.         "debug": false,
  196.         "ndebug": false,
  197.         "ignoreCase": false,
  198.         "repeat": false,
  199.         "again": false,
  200.         "x": 359,
  201.         "y": 552,
  202.         "wires": [
  203.             [],
  204.             [
  205.                 "b5ad2918.a2b468",
  206.                 "81576d9.6879f9"
  207.             ]
  208.         ]
  209.     },
  210.     {
  211.         "id": "2426d29d.f3c41e",
  212.         "type": "function",
  213.         "z": "d95d410b.da89f",
  214.         "name": "min > sec",
  215.         "func": "// Change from minutes to seconds\nmsg.payload = msg.payload * 60;\nreturn msg;",
  216.         "outputs": 1,
  217.         "noerr": 0,
  218.         "x": 153,
  219.         "y": 497,
  220.         "wires": [
  221.             [
  222.                 "c8b32ea4.22229"
  223.             ]
  224.         ]
  225.     },
  226.     {
  227.         "id": "e241748f.69f218",
  228.         "type": "api-call-service",
  229.         "z": "d95d410b.da89f",
  230.         "name": "Heater Off",
  231.         "server": "b55184c9.017a48",
  232.         "version": 1,
  233.         "debugenabled": false,
  234.         "service_domain": "switch",
  235.         "service": "turn_off",
  236.         "entityId": "switch.d1_relay_signal",
  237.         "data": "",
  238.         "dataType": "json",
  239.         "mergecontext": "",
  240.         "output_location": "",
  241.         "output_location_type": "none",
  242.         "mustacheAltTags": false,
  243.         "x": 672,
  244.         "y": 553,
  245.         "wires": [
  246.             []
  247.         ]
  248.     },
  249.     {
  250.         "id": "81576d9.6879f9",
  251.         "type": "switch",
  252.         "z": "d95d410b.da89f",
  253.         "name": "off",
  254.         "property": "payload",
  255.         "propertyType": "msg",
  256.         "rules": [
  257.             {
  258.                 "t": "eq",
  259.                 "v": "0",
  260.                 "vt": "str"
  261.             }
  262.         ],
  263.         "checkall": "true",
  264.         "repair": false,
  265.         "outputs": 1,
  266.         "x": 504,
  267.         "y": 553,
  268.         "wires": [
  269.             [
  270.                 "e241748f.69f218"
  271.             ]
  272.         ]
  273.     },
  274.     {
  275.         "id": "b55184c9.017a48",
  276.         "type": "server",
  277.         "z": "",
  278.         "name": "Home Assistant",
  279.         "legacy": false,
  280.         "addon": true,
  281.         "rejectUnauthorizedCerts": true,
  282.         "ha_boolean": "y|yes|true|on|home|open",
  283.         "connectionDelay": true,
  284.         "cacheJson": true
  285.     }
  286. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement