dykandDK

HA - NR - IKEA Trådfri - Double tap test

Jul 29th, 2020 (edited)
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.85 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "3cee3b83.b28a44",
  4.         "type": "server-events",
  5.         "z": "eaf98867.654bf8",
  6.         "name": "Deconz events",
  7.         "server": "3bebce79.1e0962",
  8.         "event_type": "deconz_event",
  9.         "exposeToHomeAssistant": false,
  10.         "haConfig": [
  11.             {
  12.                 "property": "name",
  13.                 "value": ""
  14.             },
  15.             {
  16.                 "property": "icon",
  17.                 "value": ""
  18.             }
  19.         ],
  20.         "x": 140,
  21.         "y": 140,
  22.         "wires": [
  23.             [
  24.                 "845d290c.d3057"
  25.             ]
  26.         ]
  27.     },
  28.     {
  29.         "id": "845d290c.d3057",
  30.         "type": "switch",
  31.         "z": "eaf98867.654bf8",
  32.         "name": "IKEA Trådfri",
  33.         "property": "payload.event.id",
  34.         "propertyType": "msg",
  35.         "rules": [
  36.             {
  37.                 "t": "eq",
  38.                 "v": "tradfri_remote_control",
  39.                 "vt": "str"
  40.             }
  41.         ],
  42.         "checkall": "true",
  43.         "repair": false,
  44.         "outputs": 1,
  45.         "x": 310,
  46.         "y": 140,
  47.         "wires": [
  48.             [
  49.                 "87a11c9e.2995b"
  50.             ]
  51.         ]
  52.     },
  53.     {
  54.         "id": "87a11c9e.2995b",
  55.         "type": "switch",
  56.         "z": "eaf98867.654bf8",
  57.         "name": "Button press",
  58.         "property": "payload.event.event",
  59.         "propertyType": "msg",
  60.         "rules": [
  61.             {
  62.                 "t": "eq",
  63.                 "v": "1002",
  64.                 "vt": "num"
  65.             }
  66.         ],
  67.         "checkall": "true",
  68.         "repair": false,
  69.         "outputs": 1,
  70.         "x": 470,
  71.         "y": 140,
  72.         "wires": [
  73.             [
  74.                 "b183b99a.b1daf8",
  75.                 "216412fd.1945be"
  76.             ]
  77.         ],
  78.         "outputLabels": [
  79.             "On/off"
  80.         ]
  81.     },
  82.     {
  83.         "id": "b183b99a.b1daf8",
  84.         "type": "counter",
  85.         "z": "eaf98867.654bf8",
  86.         "name": "Press count",
  87.         "init": "0",
  88.         "step": "1",
  89.         "lower": "",
  90.         "upper": "",
  91.         "mode": "increment",
  92.         "outputs": 1,
  93.         "x": 690,
  94.         "y": 140,
  95.         "wires": [
  96.             [
  97.                 "c8e84bef.8cb9d"
  98.             ]
  99.         ]
  100.     },
  101.     {
  102.         "id": "c8e84bef.8cb9d",
  103.         "type": "switch",
  104.         "z": "eaf98867.654bf8",
  105.         "name": "",
  106.         "property": "count",
  107.         "propertyType": "msg",
  108.         "rules": [
  109.             {
  110.                 "t": "eq",
  111.                 "v": "2",
  112.                 "vt": "num"
  113.             },
  114.             {
  115.                 "t": "else"
  116.             }
  117.         ],
  118.         "checkall": "true",
  119.         "repair": false,
  120.         "outputs": 2,
  121.         "x": 850,
  122.         "y": 140,
  123.         "wires": [
  124.             [
  125.                 "629c3378.c997cc"
  126.             ],
  127.             [
  128.                 "c2efc0eb.28a33"
  129.             ]
  130.         ]
  131.     },
  132.     {
  133.         "id": "216412fd.1945be",
  134.         "type": "delay",
  135.         "z": "eaf98867.654bf8",
  136.         "name": "",
  137.         "pauseType": "delay",
  138.         "timeout": "1",
  139.         "timeoutUnits": "seconds",
  140.         "rate": "1",
  141.         "nbRateUnits": "1",
  142.         "rateUnits": "second",
  143.         "randomFirst": "1",
  144.         "randomLast": "5",
  145.         "randomUnits": "seconds",
  146.         "drop": false,
  147.         "x": 680,
  148.         "y": 80,
  149.         "wires": [
  150.             [
  151.                 "b9d0baf3.ba6f28"
  152.             ]
  153.         ]
  154.     },
  155.     {
  156.         "id": "b9d0baf3.ba6f28",
  157.         "type": "function",
  158.         "z": "eaf98867.654bf8",
  159.         "name": "Reset counter",
  160.         "func": "msg.reset = true;\nreturn msg;",
  161.         "outputs": 1,
  162.         "noerr": 0,
  163.         "initialize": "",
  164.         "finalize": "",
  165.         "x": 880,
  166.         "y": 80,
  167.         "wires": [
  168.             [
  169.                 "b183b99a.b1daf8"
  170.             ]
  171.         ]
  172.     },
  173.     {
  174.         "id": "629c3378.c997cc",
  175.         "type": "debug",
  176.         "z": "eaf98867.654bf8",
  177.         "name": "Dbl.tap",
  178.         "active": true,
  179.         "tosidebar": true,
  180.         "console": false,
  181.         "tostatus": false,
  182.         "complete": "true",
  183.         "targetType": "full",
  184.         "statusVal": "",
  185.         "statusType": "auto",
  186.         "x": 1100,
  187.         "y": 100,
  188.         "wires": []
  189.     },
  190.     {
  191.         "id": "c2efc0eb.28a33",
  192.         "type": "debug",
  193.         "z": "eaf98867.654bf8",
  194.         "name": "Single.tap",
  195.         "active": true,
  196.         "tosidebar": true,
  197.         "console": false,
  198.         "tostatus": false,
  199.         "complete": "true",
  200.         "targetType": "full",
  201.         "statusVal": "",
  202.         "statusType": "auto",
  203.         "x": 1100,
  204.         "y": 160,
  205.         "wires": []
  206.     },
  207.     {
  208.         "id": "3bebce79.1e0962",
  209.         "type": "server",
  210.         "z": "",
  211.         "name": "Home Assistant",
  212.         "addon": true
  213.     }
  214. ]
Add Comment
Please, Sign In to add comment