Hallo zusammen,
ich habe bis dato immer meine Telegram Nachrichten über eine function node an notify.telegram gesendet.
Da dies aber ab 2026.6 nicht mehr möglich ist, wollte ich die Flows umbauen auf die notify.send_message.
Nun bekomm ich es einfach nicht hin, eine entsprechende function node zu bauen.
Kann mir jemand bitte einen Beispiel Flow posten wie das zukünftig funktioniert?
Meine Versuch war:
[
{
"id": "9d1ad553c0848756",
"type": "inject",
"z": "d0d76e7b714383e4",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 240,
"y": 2200,
"wires": [
[
"6f29a6afb9b0f985"
]
]
},
{
"id": "6f29a6afb9b0f985",
"type": "function",
"z": "d0d76e7b714383e4",
"name": "function 1",
"func": "msg.payload = {\n \"message\": \"Hallo Testnachricht\"\n};\nreturn msg;\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 520,
"y": 2200,
"wires": [
[
"5215983fe37f8c30"
]
]
},
{
"id": "5215983fe37f8c30",
"type": "api-call-service",
"z": "d0d76e7b714383e4",
"name": "Telegram ",
"server": "%%ID%%",
"version": 7,
"debugenabled": false,
"action": "notify.send_message",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [
"notify.telegram_bot_5671479561_4015561494"
],
"labelId": [],
"data": "{{payload}}",
"dataType": "json",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"blockInputOverrides": true,
"domain": "notify",
"service": "send_message",
"x": 760,
"y": 2200,
"wires": [
[
"d3534041e4efb352"
]
]
},
{
"id": "%%ID%%",
"type": "server",
"name": "Home Assistant",
"addon": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "",
"connectionDelay": false,
"cacheJson": false,
"heartbeat": false,
"heartbeatInterval": "",
"statusSeparator": "",
"enableGlobalContextStore": false
},
{
"id": "66269c600d45b9d1",
"type": "global-config",
"env": [],
"modules": {
"node-red-contrib-home-assistant-websocket": "0.79.4"
}
}
]
Besten dank und Grüße







