Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "2cf21261.5d395e",
- "type": "template",
- "z": "25490b88.32f464",
- "name": "Battery msg",
- "field": "payload",
- "fieldType": "msg",
- "format": "handlebars",
- "syntax": "mustache",
- "template": "{{payload.attributes.friendly_name}} is low at {{payload.state}}%",
- "output": "str",
- "x": 490,
- "y": 680,
- "wires": [
- [
- "a6dd38d1.12f1b8",
- "97c7e8c.4af2918"
- ]
- ]
- },
- {
- "id": "81582b29.b2e13",
- "type": "ha-get-entities",
- "z": "25490b88.32f464",
- "server": "789409ed.7ceb48",
- "name": "",
- "rules": [
- {
- "property": "attributes.device_class",
- "logic": "is",
- "value": "battery",
- "valueType": "str"
- },
- {
- "property": "state",
- "logic": "lte",
- "value": "25",
- "valueType": "num"
- },
- {
- "property": "attributes.friendly_name",
- "logic": "is_not",
- "value": "johndoe Battery Level",
- "valueType": "str"
- },
- {
- "property": "attributes.friendly_name",
- "logic": "is_not",
- "value": "Phone Battery Level",
- "valueType": "str"
- },
- {
- "property": "attributes.friendly_name",
- "logic": "is_not",
- "value": "janedoe Battery Level",
- "valueType": "str"
- },
- {
- "property": "attributes.friendly_name",
- "logic": "is_not",
- "value": "TABLET Battery Level",
- "valueType": "str"
- }
- ],
- "output_type": "split",
- "output_empty_results": false,
- "output_location_type": "msg",
- "output_location": "payload",
- "output_results_count": 1,
- "x": 310,
- "y": 680,
- "wires": [
- [
- "2cf21261.5d395e"
- ]
- ]
- },
- {
- "id": "62d6473.413e9b8",
- "type": "inject",
- "z": "25490b88.32f464",
- "name": "",
- "props": [
- {
- "p": "payload"
- }
- ],
- "repeat": "",
- "crontab": "00 18 * * *",
- "once": false,
- "onceDelay": "60",
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "x": 120,
- "y": 680,
- "wires": [
- [
- "81582b29.b2e13"
- ]
- ]
- },
- {
- "id": "a6dd38d1.12f1b8",
- "type": "api-call-service",
- "z": "25490b88.32f464",
- "name": "Notify johndoe",
- "server": "789409ed.7ceb48",
- "version": 1,
- "debugenabled": false,
- "service_domain": "notify",
- "service": "mobile_app_johndoe",
- "entityId": "",
- "data": "{ \"message\": \"{{payload}}\" }",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 670,
- "y": 640,
- "wires": [
- []
- ]
- },
- {
- "id": "97c7e8c.4af2918",
- "type": "api-call-service",
- "z": "25490b88.32f464",
- "name": "Notify janedoe",
- "server": "789409ed.7ceb48",
- "version": 1,
- "debugenabled": false,
- "service_domain": "notify",
- "service": "mobile_app_janedoe",
- "entityId": "",
- "data": "{ \"message\": \"{{payload}}\" }",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 670,
- "y": 720,
- "wires": [
- []
- ]
- },
- {
- "id": "789409ed.7ceb48",
- "type": "server",
- "name": "Home Assistant",
- "addon": true
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement