SHARE
TWEET

Untitled

a guest Mar 24th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2.     {
  3.         "id": "ba7fdad2.1f14b8",
  4.         "type": "server-state-changed",
  5.         "z": "74bde181.c781",
  6.         "name": "Motion in Office",
  7.         "server": "ad7854a1.e84738",
  8.         "entityidfilter": "binary_sensor.office_motion",
  9.         "entityidfiltertype": "substring",
  10.         "outputinitially": false,
  11.         "state_type": "str",
  12.         "haltifstate": "",
  13.         "halt_if_type": "str",
  14.         "halt_if_compare": "is",
  15.         "outputs": 1,
  16.         "x": 110,
  17.         "y": 210,
  18.         "wires": [
  19.             [
  20.                 "94f7c3f6.33217"
  21.             ]
  22.         ]
  23.     },
  24.     {
  25.         "id": "8efff11b.00bcc",
  26.         "type": "api-call-service",
  27.         "z": "74bde181.c781",
  28.         "name": "Turn on @ 100%",
  29.         "server": "ad7854a1.e84738",
  30.         "service_domain": "light",
  31.         "service": "turn_on",
  32.         "data": "{\"entity_id\":\"light.desk_light\",\"transition\":\"10\",\"brightness_pct\":\"100\",\"color_temp\":\"300\"}",
  33.         "mergecontext": "",
  34.         "output_location": "payload",
  35.         "output_location_type": "msg",
  36.         "x": 1000,
  37.         "y": 130,
  38.         "wires": [
  39.             []
  40.         ]
  41.     },
  42.     {
  43.         "id": "94f7c3f6.33217",
  44.         "type": "switch",
  45.         "z": "74bde181.c781",
  46.         "name": "",
  47.         "property": "payload",
  48.         "propertyType": "msg",
  49.         "rules": [
  50.             {
  51.                 "t": "eq",
  52.                 "v": "on",
  53.                 "vt": "str"
  54.             },
  55.             {
  56.                 "t": "eq",
  57.                 "v": "off",
  58.                 "vt": "str"
  59.             }
  60.         ],
  61.         "checkall": "true",
  62.         "repair": false,
  63.         "outputs": 2,
  64.         "x": 310,
  65.         "y": 210,
  66.         "wires": [
  67.             [
  68.                 "49a596e0.011158",
  69.                 "8a164df1.83812"
  70.             ],
  71.             [
  72.                 "fdf0e749.f5d058"
  73.             ]
  74.         ]
  75.     },
  76.     {
  77.         "id": "a197150.b9ea2e8",
  78.         "type": "time-range-switch",
  79.         "z": "74bde181.c781",
  80.         "name": "Determine brightness",
  81.         "lat": "40.07562",
  82.         "lon": "-82.86322",
  83.         "startTime": "09:00",
  84.         "endTime": "20:00",
  85.         "startOffset": "",
  86.         "endOffset": "",
  87.         "x": 710,
  88.         "y": 80,
  89.         "wires": [
  90.             [
  91.                 "8efff11b.00bcc"
  92.             ],
  93.             [
  94.                 "4992fd03.1aaf14"
  95.             ]
  96.         ]
  97.     },
  98.     {
  99.         "id": "4992fd03.1aaf14",
  100.         "type": "api-call-service",
  101.         "z": "74bde181.c781",
  102.         "name": "Turn on @ 5%",
  103.         "server": "ad7854a1.e84738",
  104.         "service_domain": "light",
  105.         "service": "turn_on",
  106.         "data": "{\"entity_id\":\"light.desk_light\",\"transition\":\"10\",\"brightness_pct\":\"5\",\"color_temp\":\"300\"}",
  107.         "mergecontext": "",
  108.         "output_location": "payload",
  109.         "output_location_type": "msg",
  110.         "x": 1000,
  111.         "y": 180,
  112.         "wires": [
  113.             []
  114.         ]
  115.     },
  116.     {
  117.         "id": "49a596e0.011158",
  118.         "type": "api-current-state",
  119.         "z": "74bde181.c781",
  120.         "name": "Already on?",
  121.         "server": "ad7854a1.e84738",
  122.         "outputs": 2,
  123.         "halt_if": "on",
  124.         "halt_if_type": "str",
  125.         "halt_if_compare": "is",
  126.         "override_topic": true,
  127.         "entity_id": "light.desk_light",
  128.         "state_type": "str",
  129.         "override_payload": true,
  130.         "override_data": true,
  131.         "x": 470,
  132.         "y": 150,
  133.         "wires": [
  134.             [
  135.                 "cc0f0a84.a885c8"
  136.             ],
  137.             []
  138.         ]
  139.     },
  140.     {
  141.         "id": "8a164df1.83812",
  142.         "type": "change",
  143.         "z": "74bde181.c781",
  144.         "name": "Stop",
  145.         "rules": [
  146.             {
  147.                 "t": "set",
  148.                 "p": "payload",
  149.                 "pt": "msg",
  150.                 "to": "stop",
  151.                 "tot": "str"
  152.             }
  153.         ],
  154.         "action": "",
  155.         "property": "",
  156.         "from": "",
  157.         "to": "",
  158.         "reg": false,
  159.         "x": 460,
  160.         "y": 210,
  161.         "wires": [
  162.             [
  163.                 "fdf0e749.f5d058"
  164.             ]
  165.         ]
  166.     },
  167.     {
  168.         "id": "cc0f0a84.a885c8",
  169.         "type": "api-current-state",
  170.         "z": "74bde181.c781",
  171.         "name": "Disable automation check",
  172.         "server": "ad7854a1.e84738",
  173.         "outputs": 2,
  174.         "halt_if": "off",
  175.         "halt_if_type": "str",
  176.         "halt_if_compare": "is",
  177.         "override_topic": false,
  178.         "entity_id": "input_boolean.office",
  179.         "state_type": "str",
  180.         "override_payload": false,
  181.         "override_data": false,
  182.         "x": 700,
  183.         "y": 150,
  184.         "wires": [
  185.             [
  186.                 "a197150.b9ea2e8"
  187.             ],
  188.             []
  189.         ]
  190.     },
  191.     {
  192.         "id": "ad7854a1.e84738",
  193.         "type": "server",
  194.         "z": "",
  195.         "name": "Home Assistant",
  196.         "legacy": false,
  197.         "hassio": false,
  198.         "rejectUnauthorizedCerts": true,
  199.         "ha_boolean": "y|yes|true|on|home|open"
  200.     }
  201. ]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top