Hello all
So my basic system currently is a Logitech harmony remote, Kodi and Fibaro HC2 platform.
All of these 3 items are working fine in node red...however i want to do some advanced stuff and combine them
I have attached my current flow i'm working on but i have become stuck.
[{"id":"e93fc84b.cb5608","type":"kodi-in","z":"55212914.0911a8","name":"Kodi","controller":"f362c4bb.00cb78","x":110,"y":140,"wires":[["e668d4b0.243f18"]]},{"id":"c2f92b0.e3038d8","type":"debug","z":"55212914.0911a8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":490,"y":40,"wires":[]},{"id":"c4beb359.864b5","type":"switch","z":"55212914.0911a8","name":"","property":"payload.notification","propertyType":"msg","rules":[{"t":"eq","v":"Player.OnResume","vt":"str"},{"t":"eq","v":"Player.OnPause","vt":"str"},{"t":"eq","v":"Player.OnStop","vt":"str"},{"t":"eq","v":"GUI.OnScreensaverActivated","vt":"str"},{"t":"eq","v":"GUI.OnScreensaverDeactivated","vt":"str"}],"checkall":"false","repair":false,"outputs":5,"x":490,"y":120,"wires":[["6979d623.da9ec8"],["bd10a17b.83598"],[],[],[]]},{"id":"8c0729c5.cc1f48","type":"fibaroActor","z":"55212914.0911a8","name":"Simulator D-Box (Games Room)","deviceID":"125","server":"ac1f6e08.f2751","events":true,"outputs":2,"x":950,"y":100,"wires":[[],[]]},{"id":"38f92cc4.19bb34","type":"debug","z":"55212914.0911a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":490,"y":180,"wires":[]},{"id":"bd10a17b.83598","type":"function","z":"55212914.0911a8","name":"Paused/on","func":"// The simplest way\nmsg.payload=true;\nreturn msg;\n","outputs":1,"noerr":0,"x":670,"y":120,"wires":[["8c0729c5.cc1f48"]]},{"id":"6979d623.da9ec8","type":"function","z":"55212914.0911a8","name":"Paused/off","func":"// The simplest way\nmsg.payload=false;\nreturn msg;\n","outputs":1,"noerr":0,"x":670,"y":80,"wires":[["8c0729c5.cc1f48"]]},{"id":"dcf30bc1.5ba7e8","type":"harmonyws-observer","z":"55212914.0911a8","name":"","server":"c117ad76.5414d","startup":true,"toContext":false,"context":"flow","contextKeyActivity":"activity","contextKeyAutomation":"automation","x":100,"y":60,"wires":[["e668d4b0.243f18"]]},{"id":"e668d4b0.243f18","type":"switch","z":"55212914.0911a8","name":"","property":"payload.status","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"}],"checkall":"true","repair":false,"outputs":4,"x":290,"y":100,"wires":[[],[],["c4beb359.864b5","c2f92b0.e3038d8","38f92cc4.19bb34"],[]]},{"id":"f362c4bb.00cb78","type":"kodi-controller","z":"","name":"","host":"192.168.0.100","port":"9090"},{"id":"ac1f6e08.f2751","type":"fibaro-server","z":"","name":"HC2","ipaddress":"192.168.0.7"},{"id":"c117ad76.5414d","type":"harmonyws-server","z":"","name":"Harmony Hub","ip":"192.168.0.24","debug":false}]
My issue is that i'm wanting to pause kodi and turn the lights on...but only if the activity is running on the harmony, otherwise do nothing.
I have it working at the moment on the pause/play but my problem is making it only work if the activity from the observer node is running. How can i combine the two nodes?
Regards
Mathew