Remonte Control for SKYQ (and skyQMini) with Channel List selector and free text channel search

This flow will enables you to control SKYQ STP and change the channel by input using the remote, or by selecting the channel both from the dropdown control or input a search pattern

It is quite simple, it uses a WS connection to the STP to detect activities that will trigger the channel list update

if you have more than one STP (SKYQ platinum and sveral SKY mini) simpli copu the flow and change the IP Addresses

Hope you will enjoy it ;)

[{"id":"6cccad25.449024","type":"debug","z":"ce3cc0f4.fafb2","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":600,"y":140,"wires":[]},{"id":"861f22da.7f667","type":"http request","z":"ce3cc0f4.fafb2","name":"GET INFO","method":"GET","ret":"obj","paytoqs":false,"url":"http://192.168.0.80:9006/as/system/information","tls":"","persist":false,"proxy":"","authType":"","x":260,"y":70,"wires":[["17dedffb.026bb"]]},{"id":"17dedffb.026bb","type":"change","z":"ce3cc0f4.fafb2","name":"Agg. GLOBAL","rules":[{"t":"set","p":"sky_mini","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":70,"wires":[["baa6f50e.ffa158"]]},{"id":"e84bb8f3.2bcea8","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":4,"width":"1","height":"1","passthru":false,"label":"1","tooltip":"","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"str","topic":"","x":190,"y":280,"wires":[["5a69b3b7.62537c"]]},{"id":"30d39fa.2d34c6","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":5,"width":"1","height":"1","passthru":false,"label":"2","tooltip":"","color":"","bgcolor":"","icon":"","payload":"2","payloadType":"str","topic":"","x":80,"y":300,"wires":[["5a69b3b7.62537c"]]},{"id":"8f015c8.64d2ba","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":6,"width":"1","height":"1","passthru":false,"label":"3","tooltip":"","color":"","bgcolor":"","icon":"","payload":"3","payloadType":"str","topic":"","x":190,"y":320,"wires":[["5a69b3b7.62537c"]]},{"id":"df75dba9.326ef8","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":9,"width":"1","height":"1","passthru":false,"label":"4","tooltip":"","color":"","bgcolor":"","icon":"","payload":"4","payloadType":"str","topic":"","x":80,"y":340,"wires":[["5a69b3b7.62537c"]]},{"id":"4c54eb38.564864","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":10,"width":"1","height":"1","passthru":false,"label":"5","tooltip":"","color":"","bgcolor":"","icon":"","payload":"5","payloadType":"str","topic":"","x":190,"y":360,"wires":[["5a69b3b7.62537c"]]},{"id":"6e155ffa.fa386","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":11,"width":"1","height":"1","passthru":false,"label":"6","tooltip":"","color":"","bgcolor":"","icon":"","payload":"6","payloadType":"str","topic":"","x":80,"y":380,"wires":[["5a69b3b7.62537c"]]},{"id":"d0d7dbe5.5c2448","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":14,"width":"1","height":"1","passthru":false,"label":"7","tooltip":"","color":"","bgcolor":"","icon":"","payload":"7","payloadType":"str","topic":"","x":190,"y":400,"wires":[["5a69b3b7.62537c"]]},{"id":"9c63aa45.a67e68","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":15,"width":"1","height":"1","passthru":false,"label":"8","tooltip":"","color":"","bgcolor":"","icon":"","payload":"8","payloadType":"str","topic":"","x":80,"y":420,"wires":[["5a69b3b7.62537c"]]},{"id":"239a5adf.387fa6","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":16,"width":"1","height":"1","passthru":false,"label":"9","tooltip":"","color":"","bgcolor":"","icon":"","payload":"9","payloadType":"str","topic":"","x":190,"y":440,"wires":[["5a69b3b7.62537c"]]},{"id":"465f03f4.06fa2c","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":19,"width":"1","height":"1","passthru":false,"label":"OK","tooltip":"","color":"","bgcolor":"","icon":"","payload":"select","payloadType":"str","topic":"","x":80,"y":500,"wires":[["5a69b3b7.62537c"]]},{"id":"bc345db4.26387","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":20,"width":"1","height":"1","passthru":false,"label":"0","tooltip":"","color":"","bgcolor":"","icon":"","payload":"0","payloadType":"str","topic":"","x":80,"y":460,"wires":[["5a69b3b7.62537c"]]},{"id":"b2e4e491.6caaa8","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":24,"width":"3","height":"1","passthru":false,"label":"POWER","tooltip":"","color":"","bgcolor":"red","icon":"fa-power-off","payload":"power","payloadType":"str","topic":"","x":200,"y":480,"wires":[["94992001.7fa85"]]},{"id":"64cf0ad4.da9a54","type":"Sky Remote","z":"ce3cc0f4.fafb2","server":"b9f26877.8edd88","name":"camera_skymini","x":1130,"y":160,"wires":[]},{"id":"5934c51e.e54bdc","type":"ui_text","z":"ce3cc0f4.fafb2","group":"4c6a8e47.3cb41","order":1,"width":"3","height":"1","name":"","label":"STATO","format":"{{msg.payload}}","layout":"row-left","x":1110,"y":70,"wires":[]},{"id":"baa6f50e.ffa158","type":"template","z":"ce3cc0f4.fafb2","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{#global.sky_mini.activeStandby}}\n<body style=\"background-color:powderblue;\">\n    <font color=\"red\">SPENTO</font>\n</body>\n{{/global.sky_mini.activeStandby}}\n{{^global.sky_mini.activeStandby}}\n<font color=\"green\">ACCESO</font>\n{{/global.sky_mini.activeStandby}}","output":"str","x":600,"y":70,"wires":[["5934c51e.e54bdc"]]},{"id":"953646ed.b2d7e8","type":"websocket in","z":"ce3cc0f4.fafb2","name":"stateChanger","server":"","client":"31064d8a.0c9c62","x":90,"y":70,"wires":[["861f22da.7f667","805959e.f9f53a8"]]},{"id":"1250c5e.6a2b93a","type":"inject","z":"ce3cc0f4.fafb2","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":90,"y":120,"wires":[["861f22da.7f667","5c1b618d.79709"]]},{"id":"94992001.7fa85","type":"function","z":"ce3cc0f4.fafb2","name":"power  ON/OFF","func":"var sky_mini = global.get('sky_mini');\n\n//node.warn(sky_mini.activeStandby);\nif( sky_mini.activeStandby === true) {\n    node.send([null, {payload:'power'}]);\n} else {\n    node.send([{payload:'power'}, null]);\n}","outputs":2,"noerr":0,"x":390,"y":480,"wires":[["5a69b3b7.62537c"],["5ee52397.53a53c"]]},{"id":"5ee52397.53a53c","type":"trigger","z":"ce3cc0f4.fafb2","op1":"","op2":"dismiss","op1type":"pay","op2type":"str","duration":"2","extend":false,"units":"s","reset":"","bytopic":"all","name":"","x":550,"y":480,"wires":[["5a69b3b7.62537c"]]},{"id":"ad09c8cf.3e5318","type":"comment","z":"ce3cc0f4.fafb2","name":"SKY MINI CAMERA Collegamento WS + Aggiorna Stato","info":"","x":220,"y":30,"wires":[]},{"id":"37782189.f1edee","type":"ui_dropdown","z":"ce3cc0f4.fafb2","name":"","label":"CH","tooltip":"","place":"Canale","group":"4c6a8e47.3cb41","order":2,"width":"4","height":"1","passthru":true,"options":[{"label":"","value":"","type":"str"}],"payload":"","topic":"","x":1100,"y":110,"wires":[["c23620d6.fa7ff"]]},{"id":"5c1b618d.79709","type":"http request","z":"ce3cc0f4.fafb2","name":"CH LIST","method":"GET","ret":"obj","paytoqs":false,"url":"http://192.168.0.80:9006/as/services","tls":"","persist":false,"proxy":"","authType":"","x":270,"y":110,"wires":[["2a359d8a.ee6262","180090af.2ebe0f"]]},{"id":"b322c7b0.d04158","type":"inject","z":"ce3cc0f4.fafb2","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":170,"wires":[["5c1b618d.79709"]]},{"id":"2a359d8a.ee6262","type":"function","z":"ce3cc0f4.fafb2","name":"FORMATTER","func":"var chmsg = {};\nvar tmpJSON = '';\nchmsg.options  = [];\n\n//msg.payload.services.forEach(chList);\n\nfor ( var ch in msg.payload.services ) {\n    tmpJSON = '{\"' + msg.payload.services[ch].c + ' - ' + msg.payload.services[ch].t + '\":\"' + msg.payload.services[ch].c + '\"}' ;\n    //node.warn (tmpJSON);\n    chmsg.options.push( JSON.parse(tmpJSON) );\n} \n\n\nreturn chmsg;","outputs":1,"noerr":0,"x":440,"y":110,"wires":[["6cccad25.449024","37782189.f1edee"]]},{"id":"651675f8.9db00c","type":"ui_template","z":"ce3cc0f4.fafb2","group":"4c6a8e47.3cb41","name":"CH Filter","order":26,"width":"0","height":"0","format":"<table>\n    <tr>\n        <td height=\"90\"  width=\"220\">\n            <md-autocomplete style=\"background:SlateGrey;\" md-no-cache=\"true\" md-selected-item=\"selectedItem\" md-items=\"items in msg.options | filter:searchText\" md-select-on-match=\"true\"  md-search-text=\"searchText\" placeholder=\"{{msg.topic}}\" >\n                <span ng-bind=\"items\"></span>\n                </md-autocomplete></td>\n        <td><button style=\"text-align:center; height:40px;\" ng-click=\"msg.payload = selectedItem; send(msg)\">Select</button></td>\n    </tr>\n</table>","storeOutMessages":false,"fwdInMessages":false,"templateScope":"local","x":770,"y":160,"wires":[["ff89ce26.d3cdd"]]},{"id":"180090af.2ebe0f","type":"function","z":"ce3cc0f4.fafb2","name":"FORMATTER","func":"var chmsg = {};\nvar tmpJSON = '';\nchmsg.options  = [];\n\n//msg.payload.services.forEach(chList);\n\nfor ( var ch in msg.payload.services ) {\n    //tmpJSON = '{\"' + msg.payload.services[ch].c + '-' + msg.payload.services[ch].t + '\":\"' + msg.payload.services[ch].c + '\"}' ;\n    //node.warn (tmpJSON);\n    chmsg.options.push( msg.payload.services[ch].c + '-' + msg.payload.services[ch].t );\n} \n\n\nreturn chmsg;","outputs":1,"noerr":0,"x":440,"y":160,"wires":[["651675f8.9db00c"]]},{"id":"f4e08313.f7d11","type":"debug","z":"ce3cc0f4.fafb2","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1100,"y":210,"wires":[]},{"id":"ff89ce26.d3cdd","type":"function","z":"ce3cc0f4.fafb2","name":"CH SELECTION","func":"return {payload: msg.payload.split('-')[0].split('')};","outputs":1,"noerr":0,"x":930,"y":160,"wires":[["f4e08313.f7d11","64cf0ad4.da9a54"]]},{"id":"f65aadfa.716fd","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":21,"width":"1","height":"1","passthru":false,"label":"ESC","tooltip":"","color":"","bgcolor":"","icon":"","payload":"dismiss","payloadType":"str","topic":"","x":190,"y":520,"wires":[["5a69b3b7.62537c"]]},{"id":"93d7e02.d2f492","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":3,"width":"2","height":"1","passthru":false,"label":"Fox HD","tooltip":"","color":"","bgcolor":"orange","icon":"","payload":"113","payloadType":"str","topic":"","x":70,"y":540,"wires":[["c23620d6.fa7ff"]]},{"id":"5892ad50.916f54","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":8,"width":"2","height":"1","passthru":false,"label":"Discovery","tooltip":"","color":"","bgcolor":"DodgerBlue","icon":"","payload":"401","payloadType":"str","topic":"","x":70,"y":580,"wires":[["c23620d6.fa7ff"]]},{"id":"8a283385.44876","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":12,"width":"2","height":"1","passthru":false,"label":"Histroy","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"407","payloadType":"str","topic":"","x":70,"y":620,"wires":[["c23620d6.fa7ff"]]},{"id":"e854daf.8a36928","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":7,"width":"2","height":"1","passthru":false,"label":"Cinema 1","tooltip":"","color":"white","bgcolor":"FireBrick","icon":"","payload":"401","payloadType":"str","topic":"","x":201,"y":560,"wires":[["c23620d6.fa7ff"]]},{"id":"9263c02e.0b94e","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":13,"width":"2","height":"1","passthru":false,"label":"TG 24","tooltip":"","color":"white","bgcolor":"FireBrick","icon":"","payload":"100","payloadType":"str","topic":"","x":190,"y":600,"wires":[["c23620d6.fa7ff"]]},{"id":"3b0bef50.9f4d4","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":17,"width":"2","height":"1","passthru":false,"label":"NatGeo","tooltip":"","color":"yellow","bgcolor":"DarkKhaki","icon":"","payload":"403","payloadType":"str","topic":"","x":200,"y":640,"wires":[["c23620d6.fa7ff"]]},{"id":"c23620d6.fa7ff","type":"function","z":"ce3cc0f4.fafb2","name":"CH COMPUTE","func":"\nreturn {payload: msg.payload.split('')};","outputs":1,"noerr":0,"x":950,"y":480,"wires":[["43018d75.357af4","5a69b3b7.62537c"]]},{"id":"43018d75.357af4","type":"debug","z":"ce3cc0f4.fafb2","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1030,"y":550,"wires":[]},{"id":"5a69b3b7.62537c","type":"link out","z":"ce3cc0f4.fafb2","name":"==> SKY MINI","links":["74d1bcdb.fe4bb4"],"x":675,"y":270,"wires":[]},{"id":"74d1bcdb.fe4bb4","type":"link in","z":"ce3cc0f4.fafb2","name":"==> SKY MINI","links":["5a69b3b7.62537c"],"x":995,"y":210,"wires":[["64cf0ad4.da9a54"]]},{"id":"79b2f4ae.9c260c","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":18,"width":"2","height":"1","passthru":false,"label":"VOL +","tooltip":"Volume TV","color":"","bgcolor":"","icon":"volume_up","payload":"KEY_VOLUP","payloadType":"str","topic":"","x":80,"y":700,"wires":[["3145ac57.a2dca4"]]},{"id":"639d44de.9876bc","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":23,"width":"2","height":"1","passthru":false,"label":"VOL -","tooltip":"Volume TV","color":"","bgcolor":"","icon":"volume_down","payload":"KEY_VOLDOWN","payloadType":"str","topic":"","x":190,"y":720,"wires":[["3145ac57.a2dca4"]]},{"id":"3145ac57.a2dca4","type":"change","z":"ce3cc0f4.fafb2","name":"","rules":[{"t":"set","p":"command","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":700,"wires":[["194ca738.acfc69"]]},{"id":"97a6d58b.6481e8","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":22,"width":"2","height":"1","passthru":false,"label":"CH +","tooltip":"Volume TV","color":"","bgcolor":"","icon":"tv","payload":"channelup","payloadType":"str","topic":"","x":80,"y":660,"wires":[["5a69b3b7.62537c"]]},{"id":"15091768.bf72b9","type":"ui_button","z":"ce3cc0f4.fafb2","name":"","group":"4c6a8e47.3cb41","order":25,"width":"2","height":"1","passthru":false,"label":"CH -","tooltip":"Volume TV","color":"","bgcolor":"","icon":"tv","payload":"channeldown","payloadType":"str","topic":"","x":190,"y":680,"wires":[["5a69b3b7.62537c"]]},{"id":"194ca738.acfc69","type":"samsungTV","z":"ce3cc0f4.fafb2","ip":"192.168.0.70","command":"","name":"CAMERA","x":610,"y":700,"wires":[[]]},{"id":"65c666d3.a1dad8","type":"comment","z":"ce3cc0f4.fafb2","name":"SKY MINI Telecomando","info":"","x":130,"y":230,"wires":[]},{"id":"805959e.f9f53a8","type":"debug","z":"ce3cc0f4.fafb2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":250,"y":160,"wires":[]},{"id":"4c6a8e47.3cb41","type":"ui_group","z":"","name":"SKY MINI CAMERA","tab":"87d138a2.d92a48","order":1,"disp":true,"width":"7","collapse":false},{"id":"b9f26877.8edd88","type":"Sky Box Config","z":"","host":"192.168.0.80","port":"49160"},{"id":"31064d8a.0c9c62","type":"websocket-client","z":"","path":"ws://192.168.0.80:9006/as/system/status","tls":"","wholemsg":"true"},{"id":"87d138a2.d92a48","type":"ui_tab","z":"","name":"SKY","icon":"mdi-monitor-screenshot","order":2,"disabled":false,"hidden":false}]

Flow Info

Created 5 years, 7 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • change (x2)
  • comment (x2)
  • debug (x4)
  • function (x5)
  • http request (x2)
  • inject (x2)
  • link in (x1)
  • link out (x1)
  • template (x1)
  • trigger (x1)
  • websocket in (x1)
  • websocket-client (x1)
Other

Tags

  • SKY
  • SKYQ
  • DASHBOARD
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option