Advertisement
Guest User

Untitled

a guest
Jan 27th, 2021
1,859
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.17 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "2cf21261.5d395e",
  4.         "type": "template",
  5.         "z": "25490b88.32f464",
  6.         "name": "Battery msg",
  7.         "field": "payload",
  8.         "fieldType": "msg",
  9.         "format": "handlebars",
  10.         "syntax": "mustache",
  11.         "template": "{{payload.attributes.friendly_name}} is low at {{payload.state}}%",
  12.         "output": "str",
  13.         "x": 490,
  14.         "y": 680,
  15.         "wires": [
  16.             [
  17.                 "a6dd38d1.12f1b8",
  18.                 "97c7e8c.4af2918"
  19.             ]
  20.         ]
  21.     },
  22.     {
  23.         "id": "81582b29.b2e13",
  24.         "type": "ha-get-entities",
  25.         "z": "25490b88.32f464",
  26.         "server": "789409ed.7ceb48",
  27.         "name": "",
  28.         "rules": [
  29.             {
  30.                 "property": "attributes.device_class",
  31.                 "logic": "is",
  32.                 "value": "battery",
  33.                 "valueType": "str"
  34.             },
  35.             {
  36.                 "property": "state",
  37.                 "logic": "lte",
  38.                 "value": "25",
  39.                 "valueType": "num"
  40.             },
  41.             {
  42.                 "property": "attributes.friendly_name",
  43.                 "logic": "is_not",
  44.                 "value": "johndoe Battery Level",
  45.                 "valueType": "str"
  46.             },
  47.             {
  48.                 "property": "attributes.friendly_name",
  49.                 "logic": "is_not",
  50.                 "value": "Phone Battery Level",
  51.                 "valueType": "str"
  52.             },
  53.             {
  54.                 "property": "attributes.friendly_name",
  55.                 "logic": "is_not",
  56.                 "value": "janedoe Battery Level",
  57.                 "valueType": "str"
  58.             },
  59.             {
  60.                 "property": "attributes.friendly_name",
  61.                 "logic": "is_not",
  62.                 "value": "TABLET Battery Level",
  63.                 "valueType": "str"
  64.             }
  65.         ],
  66.         "output_type": "split",
  67.         "output_empty_results": false,
  68.         "output_location_type": "msg",
  69.         "output_location": "payload",
  70.         "output_results_count": 1,
  71.         "x": 310,
  72.         "y": 680,
  73.         "wires": [
  74.             [
  75.                 "2cf21261.5d395e"
  76.             ]
  77.         ]
  78.     },
  79.     {
  80.         "id": "62d6473.413e9b8",
  81.         "type": "inject",
  82.         "z": "25490b88.32f464",
  83.         "name": "",
  84.         "props": [
  85.             {
  86.                 "p": "payload"
  87.             }
  88.         ],
  89.         "repeat": "",
  90.         "crontab": "00 18 * * *",
  91.         "once": false,
  92.         "onceDelay": "60",
  93.         "topic": "",
  94.         "payload": "",
  95.         "payloadType": "date",
  96.         "x": 120,
  97.         "y": 680,
  98.         "wires": [
  99.             [
  100.                 "81582b29.b2e13"
  101.             ]
  102.         ]
  103.     },
  104.     {
  105.         "id": "a6dd38d1.12f1b8",
  106.         "type": "api-call-service",
  107.         "z": "25490b88.32f464",
  108.         "name": "Notify johndoe",
  109.         "server": "789409ed.7ceb48",
  110.         "version": 1,
  111.         "debugenabled": false,
  112.         "service_domain": "notify",
  113.         "service": "mobile_app_johndoe",
  114.         "entityId": "",
  115.         "data": "{ \"message\": \"{{payload}}\" }",
  116.         "dataType": "json",
  117.         "mergecontext": "",
  118.         "output_location": "",
  119.         "output_location_type": "none",
  120.         "mustacheAltTags": false,
  121.         "x": 670,
  122.         "y": 640,
  123.         "wires": [
  124.             []
  125.         ]
  126.     },
  127.     {
  128.         "id": "97c7e8c.4af2918",
  129.         "type": "api-call-service",
  130.         "z": "25490b88.32f464",
  131.         "name": "Notify janedoe",
  132.         "server": "789409ed.7ceb48",
  133.         "version": 1,
  134.         "debugenabled": false,
  135.         "service_domain": "notify",
  136.         "service": "mobile_app_janedoe",
  137.         "entityId": "",
  138.         "data": "{ \"message\": \"{{payload}}\" }",
  139.         "dataType": "json",
  140.         "mergecontext": "",
  141.         "output_location": "",
  142.         "output_location_type": "none",
  143.         "mustacheAltTags": false,
  144.         "x": 670,
  145.         "y": 720,
  146.         "wires": [
  147.             []
  148.         ]
  149.     },
  150.     {
  151.         "id": "789409ed.7ceb48",
  152.         "type": "server",
  153.         "name": "Home Assistant",
  154.         "addon": true
  155.     }
  156. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement