[
{
"id": "6910cfca.38536",
"type": "tab",
"label": "Temperaturansagen",
"disabled": false,
"info": ""
},
{
"id": "ccf94307.cb036",
"type": "amazon-echo-hub",
"z": "6910cfca.38536",
"port": "80",
"enableinput": false,
"x": 100,
"y": 60,
"wires": [
[
"213bb398.a065cc"
]
]
},
{
"id": "213bb398.a065cc",
"type": "amazon-echo-device",
"z": "6910cfca.38536",
"name": "Temperatur Schlafzimmer",
"topic": "",
"x": 330,
"y": 60,
"wires": [
[
"f927e866.ddff48"
]
]
},
{
"id": "f927e866.ddff48",
"type": "ioBroker get",
"z": "6910cfca.38536",
"name": "Lese Temperatur Schlafzimmer",
"topic": "zigbee.0.00158d000323059c.temperature",
"attrname": "payload",
"payloadType": "value",
"x": 590,
"y": 60,
"wires": [
[
"946af687.5b5738"
]
]
},
{
"id": "946af687.5b5738",
"type": "function",
"z": "6910cfca.38536",
"name": "Temperatur auslesen",
"func": "var str = msg.payload;\nvar res = str.substr(0, 5);\nmsg.payload = Math.round(res);\nmsg.payload = \"Es sind \" + msg.payload + \" Grad im Schlafzimmer\";\nmsg.url = \"\";\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 840,
"y": 60,
"wires": [
[
"d111d86b.a19228",
"2815dbba.74d3a4"
]
]
},
{
"id": "2815dbba.74d3a4",
"type": "ioBroker out",
"z": "6910cfca.38536",
"name": "speak",
"topic": "alexa2.0.Echo-Devices.G090U6109186088H.Commands.speak",
"ack": "false",
"autoCreate": "false",
"x": 1030,
"y": 60,
"wires": []
},
{
"id": "d111d86b.a19228",
"type": "debug",
"z": "6910cfca.38536",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 1040,
"y": 140,
"wires": []
}
]
Nutze das ganze mit dem "node-red-contrib-amazon-echo" Node