Facebook
From Nick, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 250
  1. [
  2.     {
  3.         "id": "a9f6b40e.dca838",
  4.         "type": "function",
  5.         "z": "5826043d.edb7fc",
  6.         "name": "Increment dim",
  7.         "func": "brightness = (context.get(\"brightness\") || 255);\nif(brightness >= 5){\nbrightness = brightness - 1;\nmsg.brightness = Math.min(255, brightness);\nnode.status({text: msg.brightness});\ncontext.set(\"brightness\", brightness);\nreturn msg;\n}",
  8.         "outputs": 1,
  9.         "noerr": 0,
  10.         "x": 560,
  11.         "y": 40,
  12.         "wires": [
  13.             [
  14.                 "79a67cde.e44624",
  15.                 "ed364336.13b81",
  16.                 "fdb5350c.8a43a8"
  17.             ]
  18.         ]
  19.     },
  20.     {
  21.         "id": "79a67cde.e44624",
  22.         "type": "debug",
  23.         "z": "5826043d.edb7fc",
  24.         "name": "",
  25.         "active": true,
  26.         "tosidebar": true,
  27.         "console": false,
  28.         "tostatus": false,
  29.         "complete": "brightness",
  30.         "targetType": "msg",
  31.         "x": 860,
  32.         "y": 400,
  33.         "wires": []
  34.     },
  35.     {
  36.         "id": "25532fea.e1cae",
  37.         "type": "delay",
  38.         "z": "5826043d.edb7fc",
  39.         "name": "delay",
  40.         "pauseType": "delayv",
  41.         "timeout": "5",
  42.         "timeoutUnits": "seconds",
  43.         "rate": "1",
  44.         "nbRateUnits": "2",
  45.         "rateUnits": "second",
  46.         "randomFirst": "1",
  47.         "randomLast": "5",
  48.         "randomUnits": "seconds",
  49.         "drop": true,
  50.         "x": 1250,
  51.         "y": 520,
  52.         "wires": [
  53.             []
  54.         ]
  55.     },
  56.     {
  57.         "id": "580eb00a.9f8be",
  58.         "type": "change",
  59.         "z": "5826043d.edb7fc",
  60.         "name": "reset",
  61.         "rules": [
  62.             {
  63.                 "t": "set",
  64.                 "p": "reset",
  65.                 "pt": "msg",
  66.                 "to": "true",
  67.                 "tot": "str"
  68.             }
  69.         ],
  70.         "action": "",
  71.         "property": "",
  72.         "from": "",
  73.         "to": "",
  74.         "reg": false,
  75.         "x": 250,
  76.         "y": 520,
  77.         "wires": [
  78.             [
  79.                 "25532fea.e1cae"
  80.             ]
  81.         ]
  82.     },
  83.     {
  84.         "id": "9572e3d0.c9123",
  85.         "type": "inject",
  86.         "z": "5826043d.edb7fc",
  87.         "name": "STOP",
  88.         "topic": "",
  89.         "payload": "",
  90.         "payloadType": "date",
  91.         "repeat": "",
  92.         "crontab": "",
  93.         "once": false,
  94.         "onceDelay": 0.1,
  95.         "x": 90,
  96.         "y": 340,
  97.         "wires": [
  98.             [
  99.                 "580eb00a.9f8be",
  100.                 "8367aed5.f4fca",
  101.                 "a9f6b40e.dca838",
  102.                 "682540f3.1c44a"
  103.             ]
  104.         ]
  105.     },
  106.     {
  107.         "id": "ee73b646.309248",
  108.         "type": "looptimer",
  109.         "z": "5826043d.edb7fc",
  110.         "duration": "1.75",
  111.         "units": "Minute",
  112.         "maxloops": "255",
  113.         "maxtimeout": "7",
  114.         "maxtimeoutunits": "Hour",
  115.         "name": "2min 255x 6.33 Hours",
  116.         "x": 300,
  117.         "y": 40,
  118.         "wires": [
  119.             [
  120.                 "a9f6b40e.dca838",
  121.                 "8367aed5.f4fca",
  122.                 "682540f3.1c44a"
  123.             ],
  124.             []
  125.         ]
  126.     },
  127.     {
  128.         "id": "633d9431.16ba9c",
  129.         "type": "api-call-service",
  130.         "z": "5826043d.edb7fc",
  131.         "name": "Living  Room | Overhead",
  132.         "server": "2451a35b.d6669c",
  133.         "service_domain": "homeassistant",
  134.         "service": "turn_on",
  135.         "data": "{\"entity_id\":\"light.caseta_r_wireless_in_wall_dimmer\",\"brightness\":\"{{brightness}}\"}",
  136.         "mergecontext": "",
  137.         "output_location": "",
  138.         "output_location_type": "none",
  139.         "mustacheAltTags": false,
  140.         "x": 970,
  141.         "y": 480,
  142.         "wires": [
  143.             [
  144.                 "25532fea.e1cae"
  145.             ]
  146.         ]
  147.     },
  148.     {
  149.         "id": "150b9b31.76f455",
  150.         "type": "api-call-service",
  151.         "z": "5826043d.edb7fc",
  152.         "name": "Foyer | Overhead",
  153.         "server": "2451a35b.d6669c",
  154.         "service_domain": "homeassistant",
  155.         "service": "turn_on",
  156.         "data": "{\"entity_id\":\"light.caseta_r_wireless_in_wall_dimmer_2\",\"brightness\":\"{{brightness}}\"}",
  157.         "mergecontext": "",
  158.         "output_location": "",
  159.         "output_location_type": "none",
  160.         "mustacheAltTags": false,
  161.         "x": 970,
  162.         "y": 80,
  163.         "wires": [
  164.             [
  165.                 "25532fea.e1cae"
  166.             ]
  167.         ]
  168.     },
  169.     {
  170.         "id": "ed364336.13b81",
  171.         "type": "api-call-service",
  172.         "z": "5826043d.edb7fc",
  173.         "name": "Dining Room | Overhead",
  174.         "server": "2451a35b.d6669c",
  175.         "service_domain": "homeassistant",
  176.         "service": "turn_on",
  177.         "data": "{\"entity_id\":\"light.caseta_r_wireless_in_wall_dimmer_4\",\"brightness\":\"{{brightness}}\"}",
  178.         "mergecontext": "",
  179.         "output_location": "",
  180.         "output_location_type": "none",
  181.         "mustacheAltTags": false,
  182.         "x": 950,
  183.         "y": 120,
  184.         "wires": [
  185.             [
  186.                 "25532fea.e1cae"
  187.             ]
  188.         ]
  189.     },
  190.     {
  191.         "id": "d098ec51.79f7f",
  192.         "type": "api-call-service",
  193.         "z": "5826043d.edb7fc",
  194.         "name": "Hallway | Overhead",
  195.         "server": "2451a35b.d6669c",
  196.         "service_domain": "homeassistant",
  197.         "service": "turn_on",
  198.         "data": "{\"entity_id\":\"light.caseta_r_wireless_in_wall_dimmer_5\",\"brightness\":\"{{brightness}}\"}",
  199.         "mergecontext": "",
  200.         "output_location": "",
  201.         "output_location_type": "none",
  202.         "mustacheAltTags": false,
  203.         "x": 950,
  204.         "y": 260,
  205.         "wires": [
  206.             [
  207.                 "25532fea.e1cae"
  208.             ]
  209.         ]
  210.     },
  211.     {
  212.         "id": "114ab25a.b6bcfe",
  213.         "type": "api-call-service",
  214.         "z": "5826043d.edb7fc",
  215.         "name": "Bathroom | Overhead",
  216.         "server": "2451a35b.d6669c",
  217.         "service_domain": "homeassistant",
  218.         "service": "turn_on",
  219.         "data": "{\"entity_id\":\"light.caseta_r_wireless_in_wall_dimmer_6\",\"brightness\":\"{{brightness}}\"}",
  220.         "mergecontext": "",
  221.         "output_location": "",
  222.         "output_location_type": "none",
  223.         "mustacheAltTags": false,
  224.         "x": 960,
  225.         "y": 220,
  226.         "wires": [
  227.             [
  228.                 "25532fea.e1cae"
  229.             ]
  230.         ]
  231.     },
  232.     {
  233.         "id": "f8915a72.8e37c8",
  234.         "type": "inject",
  235.         "z": "5826043d.edb7fc",
  236.         "name": "3.29pm",
  237.         "topic": "",
  238.         "payload": "",
  239.         "payloadType": "date",
  240.         "repeat": "",
  241.         "crontab": "45 15 * * *",
  242.         "once": false,
  243.         "onceDelay": 0.1,
  244.         "x": 100,
  245.         "y": 40,
  246.         "wires": [
  247.             [
  248.                 "ee73b646.309248"
  249.             ]
  250.         ]
  251.     },
  252.     {
  253.         "id": "8367aed5.f4fca",
  254.         "type": "function",
  255.         "z": "5826043d.edb7fc",
  256.         "name": "Increment dim",
  257.         "func": "brightness = (context.get(\"brightness\") || 255);\nif(brightness >= 24){\nbrightness = brightness - 1;\nmsg.brightness = Math.min(255, brightness);\nnode.status({text: msg.brightness});\ncontext.set(\"brightness\", brightness);\nreturn msg;\n}",
  258.         "outputs": 1,
  259.         "noerr": 0,
  260.         "x": 560,
  261.         "y": 240,
  262.         "wires": [
  263.             [
  264.                 "d098ec51.79f7f",
  265.                 "79a67cde.e44624",
  266.                 "114ab25a.b6bcfe"
  267.             ]
  268.         ]
  269.     },
  270.     {
  271.         "id": "fdb5350c.8a43a8",
  272.         "type": "delay",
  273.         "z": "5826043d.edb7fc",
  274.         "name": "",
  275.         "pauseType": "delay",
  276.         "timeout": "1",
  277.         "timeoutUnits": "seconds",
  278.         "rate": "1",
  279.         "nbRateUnits": "1",
  280.         "rateUnits": "second",
  281.         "randomFirst": "1",
  282.         "randomLast": "5",
  283.         "randomUnits": "seconds",
  284.         "drop": false,
  285.         "x": 740,
  286.         "y": 40,
  287.         "wires": [
  288.             [
  289.                 "bf642f83.adb1e",
  290.                 "150b9b31.76f455"
  291.             ]
  292.         ]
  293.     },
  294.     {
  295.         "id": "bf642f83.adb1e",
  296.         "type": "api-call-service",
  297.         "z": "5826043d.edb7fc",
  298.         "name": "Kitchen | Overhead",
  299.         "server": "2451a35b.d6669c",
  300.         "service_domain": "homeassistant",
  301.         "service": "turn_on",
  302.         "data": "{\"entity_id\":\"light.caseta_r_wireless_in_wall_dimmer_7\",\"brightness\":\"{{brightness}}\"}",
  303.         "mergecontext": "",
  304.         "output_location": "",
  305.         "output_location_type": "none",
  306.         "mustacheAltTags": false,
  307.         "x": 970,
  308.         "y": 40,
  309.         "wires": [
  310.             [
  311.                 "25532fea.e1cae"
  312.             ]
  313.         ]
  314.     },
  315.     {
  316.         "id": "682540f3.1c44a",
  317.         "type": "function",
  318.         "z": "5826043d.edb7fc",
  319.         "name": "Increment dim",
  320.         "func": "brightness = (context.get(\"brightness\") || 255);\nif(brightness >= 24){\nbrightness = brightness - 1;\nmsg.brightness = Math.min(255, brightness);\nnode.status({text: msg.brightness});\ncontext.set(\"brightness\", brightness);\nreturn msg;\n}",
  321.         "outputs": 1,
  322.         "noerr": 0,
  323.         "x": 560,
  324.         "y": 480,
  325.         "wires": [
  326.             [
  327.                 "633d9431.16ba9c"
  328.             ]
  329.         ]
  330.     },
  331.     {
  332.         "id": "2451a35b.d6669c",
  333.         "type": "server",
  334.         "z": "",
  335.         "name": "Home Assistant"
  336.     }
  337. ]

Replies to PM rss

Title Name Language When
Re: PM Mungo Finch text 4 Years ago.
Re: PM Insensitive Crocodile javascript 4 Years ago.
Re: PM Scorching Pheasant text 4 Years ago.