Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "347bdd36.8feae2",
- "type": "tab",
- "label": "Unavailable entity notifications",
- "disabled": false,
- "info": ""
- },
- {
- "id": "97691bce.a968d8",
- "type": "comment",
- "z": "347bdd36.8feae2",
- "name": "Alert when sensors are unreachable",
- "info": "",
- "x": 180,
- "y": 70,
- "wires": []
- },
- {
- "id": "e3336f13.9cf0f",
- "type": "template",
- "z": "347bdd36.8feae2",
- "name": "Entity names",
- "field": "payload",
- "fieldType": "msg",
- "format": "handlebars",
- "syntax": "mustache",
- "template": "{{payload.attributes.friendly_name}}",
- "output": "str",
- "x": 700,
- "y": 130,
- "wires": [
- [
- "82e82bed.e1e218"
- ]
- ]
- },
- {
- "id": "82e82bed.e1e218",
- "type": "join",
- "z": "347bdd36.8feae2",
- "name": "combine msgs",
- "mode": "custom",
- "build": "string",
- "property": "payload",
- "propertyType": "msg",
- "key": "topic",
- "joiner": "[92,110]",
- "joinerType": "bin",
- "accumulate": false,
- "timeout": "",
- "count": "",
- "reduceRight": false,
- "reduceExp": "",
- "reduceInit": "",
- "reduceInitType": "",
- "reduceFixup": "",
- "x": 870,
- "y": 130,
- "wires": [
- [
- "2b845250.7cb62e",
- "336c8aa6.3c9096"
- ]
- ]
- },
- {
- "id": "336c8aa6.3c9096",
- "type": "debug",
- "z": "347bdd36.8feae2",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 1040,
- "y": 90,
- "wires": []
- },
- {
- "id": "b9a480bc.afb1d",
- "type": "ha-get-entities",
- "z": "347bdd36.8feae2",
- "server": "",
- "name": "Get unreachable entities",
- "rules": [
- {
- "property": "state",
- "logic": "is",
- "value": "unavailable",
- "valueType": "str"
- },
- {
- "property": "attributes.device_class",
- "logic": "is_not",
- "value": "\"\"",
- "valueType": "str"
- },
- {
- "property": "attributes.device_class",
- "logic": "is_not",
- "value": "timestamp",
- "valueType": "str"
- }
- ],
- "output_type": "split",
- "output_empty_results": false,
- "output_location_type": "msg",
- "output_location": "payload",
- "output_results_count": 1,
- "x": 500,
- "y": 130,
- "wires": [
- [
- "e3336f13.9cf0f"
- ]
- ]
- },
- {
- "id": "b5f4c9b1.a365b8",
- "type": "inject",
- "z": "347bdd36.8feae2",
- "name": "Run at 20.30",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "30 20 * * *",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "true",
- "payloadType": "bool",
- "x": 140,
- "y": 130,
- "wires": [
- [
- "19cb70bb.48cb9f"
- ]
- ]
- },
- {
- "id": "2b845250.7cb62e",
- "type": "api-call-service",
- "z": "347bdd36.8feae2",
- "name": "Send notification",
- "server": "",
- "version": 1,
- "debugenabled": false,
- "service_domain": "notify",
- "service": "mobile_app_anders_iphone",
- "entityId": "",
- "data": "{\"message\":\"En eller flere enheder er ikke tilgængelige: \\n\\n {{payload}} \\n\\nKontroller netværksdækning.\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 1050,
- "y": 130,
- "wires": [
- []
- ]
- },
- {
- "id": "8138369e.832568",
- "type": "inject",
- "z": "347bdd36.8feae2",
- "name": "",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": "2",
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "x": 120,
- "y": 180,
- "wires": [
- [
- "19cb70bb.48cb9f"
- ]
- ]
- },
- {
- "id": "19cb70bb.48cb9f",
- "type": "api-current-state",
- "z": "347bdd36.8feae2",
- "name": "Home?",
- "server": "3bebce79.1e0962",
- "version": 1,
- "outputs": 2,
- "halt_if": "home",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "group.alle_personer",
- "state_type": "str",
- "state_location": "payload",
- "override_payload": "msg",
- "entity_location": "data",
- "override_data": "msg",
- "blockInputOverrides": false,
- "x": 310,
- "y": 130,
- "wires": [
- [
- "b9a480bc.afb1d"
- ],
- []
- ]
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement