Hi @medicus07. Hier mein node-red Flow.
Du muusst noch zwei HG erstellen für Ein uns Aus mit den Entsprechenden WH (Wenn WH (als Auslöser) und dann Harmony Ein, und das selbe zum Ausschalten.
Dann noch den Wemo in homee und und die WH Url in node-red eintragen und dann fertig… Geht bestimmt noch schöner aber bei mir läuft es…
[
{
“id”: “32f6eb33.d24ab4”,
“type”: “tab”,
“label”: “WH Harmony TV”,
“disabled”: false,
“info”: “”
},
{
“id”: “dc199efa.1e581”,
“type”: “http request”,
“z”: “32f6eb33.d24ab4”,
“name”: “Harmony TV”,
“method”: “GET”,
“ret”: “txt”,
“url”: “Webhook URL”,
“tls”: “”,
“x”: 870,
“y”: 60,
“wires”: [
[]
]
},
{
“id”: “b1c2ff61.6a6a1”,
“type”: “http request”,
“z”: “32f6eb33.d24ab4”,
“name”: “Harmony Off”,
“method”: “GET”,
“ret”: “txt”,
“url”: “Webhook URL”,
“tls”: “”,
“x”: 870,
“y”: 140,
“wires”: [
[]
]
},
{
“id”: “4b7e2310.06689c”,
“type”: “switch”,
“z”: “32f6eb33.d24ab4”,
“name”: “”,
“property”: “payload”,
“propertyType”: “msg”,
“rules”: [
{
“t”: “eq”,
“v”: “true”,
“vt”: “str”
},
{
“t”: “eq”,
“v”: “false”,
“vt”: “str”
}
],
“checkall”: “true”,
“repair”: false,
“outputs”: 2,
“x”: 670,
“y”: 100,
“wires”: [
[
“dc199efa.1e581”
],
[
“b1c2ff61.6a6a1”
]
]
},
{
“id”: “57073968.f418b8”,
“type”: “function”,
“z”: “32f6eb33.d24ab4”,
“name”: “Harmony TV (function) NEU”,
“func”: “var tv_ein = {payload: true };\nvar tv_aus = {payload: false};\n\n// TV\nif (msg.payload.activity == “25374855”&&\n msg.payload.status == “1”)\n{return [tv_ein,null]}\nif(\n msg.payload.activity == “25374855”&&\n msg.payload.status == “3”)\n{return [null,tv_aus]}\n”,
“outputs”: 1,
“noerr”: 0,
“x”: 440,
“y”: 100,
“wires”: [
[
“4b7e2310.06689c”
]
]
},
{
“id”: “42b9411b.18731”,
“type”: “HWS observe”,
“z”: “32f6eb33.d24ab4”,
“name”: “Harmony Hub”,
“server”: “7c331846.d45b48”,
“x”: 120,
“y”: 100,
“wires”: [
[
“57073968.f418b8”
]
]
},
{
“id”: “e8a52ad7.f26d58”,
“type”: “wemo-emulator”,
“z”: “32f6eb33.d24ab4”,
“name”: “Harmony TV”,
“friendlyName”: “Harmony TV”,
“serial”: “10”,
“port”: “10010”,
“onTopic”: “”,
“onPayload”: “on”,
“offTopic”: “”,
“offPayload”: “off”,
“x”: 110,
“y”: 180,
“wires”: [
[
“57073968.f418b8”
]
]
},
{
“id”: “7c331846.d45b48”,
“type”: “harmonyws-server”,
“z”: “”,
“name”: “Harmony Hub”,
“ip”: “192.168.178.666”
}
]