Hallo zusammen,
Copilot hat mir dann doch eine echt gute Anleitung gegeben wie ich das machen kann. Hat auch auf Anhieb geklappt.
8692588c-44aa-467f-997b-f96f750c82c5-image.png
[
{
"id": "2e52f8bd9893fecb",
"type": "inject",
"z": "720ce6e5283f280f",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "\"Es wurde oben geklingelt.\"",
"payloadType": "jsonata",
"x": 1510,
"y": 1040,
"wires": [
[
"06cf330ccc449aa4"
]
]
},
{
"id": "1c3e4675d2c16acc",
"type": "http request",
"z": "720ce6e5283f280f",
"name": "",
"method": "GET",
"ret": "bin",
"paytoqs": "ignore",
"url": "http://192.168.1.1/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=123&user=benutzer&password=passwort",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [],
"x": 1830,
"y": 1040,
"wires": [
[
"3d4d8c0e4e5f49d1"
]
]
},
{
"id": "3d4d8c0e4e5f49d1",
"type": "base64",
"z": "720ce6e5283f280f",
"name": "",
"action": "",
"property": "payload",
"x": 1980,
"y": 1040,
"wires": [
[
"70c9b8297eb79933"
]
]
},
{
"id": "70c9b8297eb79933",
"type": "template",
"z": "720ce6e5283f280f",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "<p>{{{topic2}}}<br></p>\n<p>Hier ist das Bild:</p>\n<img src=\"data:image/jpeg;base64,{{{payload}}}\" />",
"output": "str",
"x": 2120,
"y": 1040,
"wires": [
[
"a1640be82c20c050"
]
]
},
{
"id": "06cf330ccc449aa4",
"type": "change",
"z": "720ce6e5283f280f",
"name": "Betreff - Klingel",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "\"[HOME] \"&payload",
"tot": "jsonata"
},
{
"t": "set",
"p": "topic2",
"pt": "msg",
"to": "payload",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1660,
"y": 1040,
"wires": [
[
"1c3e4675d2c16acc"
]
]
}
]
Hier mal als Export wenn es vielleicht jemand anderem hilft.