Here is a simple one I created that sends an alert to telegram when the battery is at 20% or less each day.
[
{
"id": "82ab2d4f.93de8",
"type": "ha-get-entities",
"z": "d8d79347.2a13c",
"server": "f0aa0465.fa7ce8",
"name": "",
"rules": [
{
"property": "attributes.battery_level",
"logic": "lte",
"value": "20",
"valueType": "num"
}
],
"output_type": "split",
"output_empty_results": false,
"output_location_type": "msg",
"output_location": "payload",
"output_results_count": 1,
"x": 290,
"y": 100,
"wires": [
[
"9ca8013e.c0992"
]
]
},
{
"id": "d8102913.36b2d8",
"type": "inject",
"z": "d8d79347.2a13c",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "86400",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"x": 130,
"y": 100,
"wires": [
[
"82ab2d4f.93de8"
]
]
},
{
"id": "9ca8013e.c0992",
"type": "template",
"z": "d8d79347.2a13c",
"name": "Battery msg",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "The battery level for the {{payload.attributes.node_name}} is at {{payload.attributes.battery_level}}%",
"output": "str",
"x": 450,
"y": 100,
"wires": [
[
"1292e29b.6fe1ad"
]
]
},
{
"id": "1292e29b.6fe1ad",
"type": "join",
"z": "d8d79347.2a13c",
"name": "combine msgs",
"mode": "custom",
"build": "string",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": ",",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 620,
"y": 100,
"wires": [
[
"e1b49fe5.d8661"
]
]
},
{
"id": "8065fd29.b0133",
"type": "comment",
"z": "d8d79347.2a13c",
"name": "Alert when z-wave battery level are at or below 20%",
"info": "",
"x": 230,
"y": 60,
"wires": []
},
{
"id": "e1b49fe5.d8661",
"type": "telegrambot-notify",
"z": "d8d79347.2a13c",
"name": "low battery",
"bot": "6cf9d125.c9a1f",
"chatId": "111111111",
"message": "",
"parseMode": "",
"x": 790,
"y": 100,
"wires": []
},
{
"id": "f0aa0465.fa7ce8",
"type": "server",
"z": "",
"name": "Home Assistant",
"legacy": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true
},
{
"id": "6cf9d125.c9a1f",
"type": "telegrambot-config",
"z": "",
"botname": "BatteryBot",
"usernames": "xxxxxxx",
"chatIds": "11111111111",
"pollInterval": "300"
}
]