A simple remote control via the dashboard, using the Philips jointSPACE-API.
For correct functioning, the IPs in the HTTP nodes must be adapted.
jointSPACE API Documentation V1
jointSPACE API Documentation V2.2
A simple remote control via the dashboard, using the Philips jointSPACE-API.
For correct functioning, the IPs in the HTTP nodes must be adapted.
jointSPACE API Documentation V1
jointSPACE API Documentation V2.2
[ | |
{ | |
"id": "88a7a6e4.16ea08", | |
"type": "http request", | |
"z": "8b970bec.9dc298", | |
"name": "", | |
"method": "POST", | |
"ret": "txt", | |
"paytoqs": false, | |
"url": "http://192.168.178.51:1925/1/audio/volume", | |
"tls": "", | |
"proxy": "", | |
"authType": "", | |
"x": 1670, | |
"y": 520, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "f4bb522a.eb622", | |
"type": "rbe", | |
"z": "8b970bec.9dc298", | |
"name": "", | |
"func": "rbe", | |
"gap": "", | |
"start": "", | |
"inout": "out", | |
"property": "payload", | |
"x": 1510, | |
"y": 520, | |
"wires": [ | |
[ | |
"88a7a6e4.16ea08" | |
] | |
] | |
}, | |
{ | |
"id": "ce6c54a7.954ab", | |
"type": "function", | |
"z": "8b970bec.9dc298", | |
"name": "jointSPACE Send Key", | |
"func": "node.status({fill:\"yellow\",shape:\"dot\", text: msg.payload});\n\nmsg.payload = {\n \"key\": msg.payload\n}\n\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 1080, | |
"y": 680, | |
"wires": [ | |
[ | |
"66ba3bab.069fcc" | |
] | |
] | |
}, | |
{ | |
"id": "e210e67a.a0d178", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, VolumeUp", | |
"group": "950dae1d.43b6a", | |
"order": 4, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "volume_up", | |
"payload": "VolumeUp", | |
"payloadType": "str", | |
"topic": "", | |
"x": 190, | |
"y": 620, | |
"wires": [ | |
[ | |
"ce6c54a7.954ab" | |
] | |
] | |
}, | |
{ | |
"id": "a64a18bf.09422", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, VolumeDown", | |
"group": "950dae1d.43b6a", | |
"order": 7, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "volume_down", | |
"payload": "VolumeDown", | |
"payloadType": "str", | |
"topic": "", | |
"x": 200, | |
"y": 580, | |
"wires": [ | |
[ | |
"ce6c54a7.954ab" | |
] | |
] | |
}, | |
{ | |
"id": "f89d8c81.74bd58", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, ChannelStepUp", | |
"group": "950dae1d.43b6a", | |
"order": 6, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "keyboard_arrow_up", | |
"payload": "ChannelStepUp", | |
"payloadType": "str", | |
"topic": "", | |
"x": 210, | |
"y": 760, | |
"wires": [ | |
[ | |
"ce6c54a7.954ab" | |
] | |
] | |
}, | |
{ | |
"id": "f11247ba.bc084", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, ChannelStepDown", | |
"group": "950dae1d.43b6a", | |
"order": 9, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "keyboard_arrow_down", | |
"payload": "ChannelStepDown", | |
"payloadType": "str", | |
"topic": "", | |
"x": 220, | |
"y": 800, | |
"wires": [ | |
[ | |
"ce6c54a7.954ab" | |
] | |
] | |
}, | |
{ | |
"id": "37918255.684fa6", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, CursorUp", | |
"group": "950dae1d.43b6a", | |
"order": 14, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "keyboard_arrow_up", | |
"payload": "CursorUp", | |
"payloadType": "str", | |
"topic": "", | |
"x": 550, | |
"y": 920, | |
"wires": [ | |
[ | |
"ce6c54a7.954ab" | |
] | |
] | |
}, | |
{ | |
"id": "9bc7c006.41a5b", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, CursorDown", | |
"group": "950dae1d.43b6a", | |
"order": 20, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "keyboard_arrow_down", | |
"payload": "CursorDown", | |
"payloadType": "str", | |
"topic": "", | |
"x": 560, | |
"y": 1000, | |
"wires": [ | |
[ | |
"ce6c54a7.954ab" | |
] | |
] | |
}, | |
{ | |
"id": "416a7127.44a098", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, CursorLeft", | |
"group": "950dae1d.43b6a", | |
"order": 16, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "keyboard_arrow_left", | |
"payload": "CursorLeft", | |
"payloadType": "str", | |
"topic": "", | |
"x": 330, | |
"y": 960, | |
"wires": [ | |
[ | |
"ce6c54a7.954ab" | |
] | |
] | |
}, | |
{ | |
"id": "a0f28a5c.98eca8", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, CursorRight", | |
"group": "950dae1d.43b6a", | |
"order": 18, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "keyboard_arrow_right", | |
"payload": "CursorRight", | |
"payloadType": "str", | |
"topic": "", | |
"x": 780, | |
"y": 960, | |
"wires": [ | |
[ | |
"ce6c54a7.954ab" | |
] | |
] | |
}, | |
{ | |
"id": "cb5b25fe.67c1b8", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, Confirm", | |
"group": "950dae1d.43b6a", | |
"order": 17, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "done", | |
"payload": "Confirm", | |
"payloadType": "str", | |
"topic": "", | |
"x": 540, | |
"y": 960, | |
"wires": [ | |
[ | |
"ce6c54a7.954ab" | |
] | |
] | |
}, | |
{ | |
"id": "db40aff2.029fe8", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, Standby", | |
"group": "950dae1d.43b6a", | |
"order": 3, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "", | |
"tooltip": "", | |
"color": "#fff", | |
"bgcolor": "#800707", | |
"icon": "power_settings_new", | |
"payload": "Standby", | |
"payloadType": "str", | |
"topic": "", | |
"x": 180, | |
"y": 680, | |
"wires": [ | |
[ | |
"f7f16a6.fe75218" | |
] | |
] | |
}, | |
{ | |
"id": "11191797.0f3608", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, Mute", | |
"group": "950dae1d.43b6a", | |
"order": 10, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "Mute", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "volume_mute", | |
"payload": "Mute", | |
"payloadType": "str", | |
"topic": "", | |
"x": 170, | |
"y": 840, | |
"wires": [ | |
[ | |
"ce6c54a7.954ab" | |
] | |
] | |
}, | |
{ | |
"id": "3ee83997.e930a6", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, Home", | |
"group": "950dae1d.43b6a", | |
"order": 1, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "home", | |
"payload": "Home", | |
"payloadType": "str", | |
"topic": "", | |
"x": 180, | |
"y": 720, | |
"wires": [ | |
[ | |
"ce6c54a7.954ab" | |
] | |
] | |
}, | |
{ | |
"id": "7699172a.4bb5e", | |
"type": "http request", | |
"z": "8b970bec.9dc298", | |
"name": "", | |
"method": "POST", | |
"ret": "txt", | |
"paytoqs": false, | |
"url": "http://192.168.178.51:1925/1/input/key", | |
"tls": "", | |
"proxy": "", | |
"authType": "", | |
"x": 1670, | |
"y": 680, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "f7f16a6.fe75218", | |
"type": "ui_toast", | |
"z": "8b970bec.9dc298", | |
"position": "dialog", | |
"displayTime": "3", | |
"highlight": "", | |
"sendall": true, | |
"outputs": 1, | |
"ok": "OK", | |
"cancel": "Cancel", | |
"topic": "Rückfrage", | |
"name": "", | |
"x": 350, | |
"y": 680, | |
"wires": [ | |
[ | |
"7740ca8.2d63a34" | |
] | |
] | |
}, | |
{ | |
"id": "7740ca8.2d63a34", | |
"type": "change", | |
"z": "8b970bec.9dc298", | |
"name": "", | |
"rules": [ | |
{ | |
"t": "change", | |
"p": "payload", | |
"pt": "msg", | |
"from": "OK", | |
"fromt": "str", | |
"to": "Standby", | |
"tot": "str" | |
}, | |
{ | |
"t": "change", | |
"p": "payload", | |
"pt": "msg", | |
"from": "Cancel", | |
"fromt": "str", | |
"to": "", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 520, | |
"y": 680, | |
"wires": [ | |
[ | |
"ce6c54a7.954ab" | |
] | |
] | |
}, | |
{ | |
"id": "96a1d922.3ae3e8", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, VolumeDown -5", | |
"group": "950dae1d.43b6a", | |
"order": 8, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": " - 5", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "volume_down", | |
"payload": "", | |
"payloadType": "num", | |
"topic": "-", | |
"x": 210, | |
"y": 540, | |
"wires": [ | |
[ | |
"f3845e72.f3534" | |
] | |
] | |
}, | |
{ | |
"id": "f3845e72.f3534", | |
"type": "http request", | |
"z": "8b970bec.9dc298", | |
"name": "", | |
"method": "GET", | |
"ret": "obj", | |
"paytoqs": false, | |
"url": "http://192.168.178.51:1925/1/audio/volume", | |
"tls": "", | |
"proxy": "", | |
"authType": "", | |
"x": 770, | |
"y": 520, | |
"wires": [ | |
[ | |
"e53072b7.7d38f8" | |
] | |
] | |
}, | |
{ | |
"id": "adabf75c.d303b8", | |
"type": "ui_button", | |
"z": "8b970bec.9dc298", | |
"name": "button, VolumeUp + 5", | |
"group": "950dae1d.43b6a", | |
"order": 5, | |
"width": 2, | |
"height": 1, | |
"passthru": false, | |
"label": "+ 5", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "volume_up", | |
"payload": "", | |
"payloadType": "num", | |
"topic": "+", | |
"x": 200, | |
"y": 500, | |
"wires": [ | |
[ | |
"f3845e72.f3534" | |
] | |
] | |
}, | |
{ | |
"id": "e53072b7.7d38f8", | |
"type": "function", | |
"z": "8b970bec.9dc298", | |
"name": "jointSPACE Volume +- 5", | |
"func": "if (msg.topic == \"+\") {\n msg.payload = {\n \"muted\": msg.payload.muted,\n \"current\": msg.payload.current + 5 }\n} else if (msg.topic == \"-\") {\n msg.payload = {\n \"muted\": msg.payload.muted,\n \"current\": msg.payload.current - 5 }\n}\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 990, | |
"y": 520, | |
"wires": [ | |
[ | |
"f4bb522a.eb622" | |
] | |
] | |
}, | |
{ | |
"id": "66ba3bab.069fcc", | |
"type": "delay", | |
"z": "8b970bec.9dc298", | |
"name": "", | |
"pauseType": "rate", | |
"timeout": "5", | |
"timeoutUnits": "seconds", | |
"rate": "3", | |
"nbRateUnits": "1", | |
"rateUnits": "second", | |
"randomFirst": "1", | |
"randomLast": "5", | |
"randomUnits": "seconds", | |
"drop": false, | |
"x": 1460, | |
"y": 680, | |
"wires": [ | |
[ | |
"7699172a.4bb5e" | |
] | |
] | |
}, | |
{ | |
"id": "950dae1d.43b6a", | |
"type": "ui_group", | |
"z": "", | |
"name": "Fernbedienung", | |
"tab": "7db32cb0.3e5104", | |
"order": 1, | |
"disp": true, | |
"width": "6", | |
"collapse": true | |
}, | |
{ | |
"id": "7db32cb0.3e5104", | |
"type": "ui_tab", | |
"z": "", | |
"name": "TV", | |
"icon": "tv", | |
"order": 12, | |
"disabled": false, | |
"hidden": false | |
} | |
] |