Yes, the KODI node really works awesome and you can utilize the entire JSON functionality provided by KODI.
As I’m using WIFI and/or Ethernet on my KODI boxes I have generated 2 enry and exit points per KODI (e.g. TS Kodi)
There is no light control in this example as I have my light automation in dedicated flows calling from these playing states.
here is a sample video for the playing status
[{"id":"49c63ea8.8a147","type":"kodi-in","z":"2a59a65.117295a","name":"TS Kodi","controller":"85f19228.2703f","x":90,"y":540,"wires":[["bc46bb0c.f41c38","8c2c552.d1370a8","4b099f8d.4b985"]]},{"id":"bc46bb0c.f41c38","type":"switch","z":"2a59a65.117295a","name":"ScreenSaver","property":"payload.notification","propertyType":"msg","rules":[{"t":"eq","v":"GUI.OnScreensaverActivated","vt":"str"},{"t":"eq","v":"GUI.OnScreensaverDeactivated","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":250,"y":520,"wires":[["820787c8.cf2bb8"],["d26c116f.7a294"]]},{"id":"8c2c552.d1370a8","type":"debug","z":"2a59a65.117295a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":220,"y":680,"wires":[]},{"id":"4b099f8d.4b985","type":"switch","z":"2a59a65.117295a","name":"Playing","property":"payload.notification","propertyType":"msg","rules":[{"t":"eq","v":"Player.OnPlay","vt":"str"},{"t":"eq","v":"Player.OnPause","vt":"str"},{"t":"eq","v":"Player.OnStop","vt":"str"},{"t":"eq","v":"System.OnQuit","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":115,"y":871,"wires":[["d26c116f.7a294","2c274dda.5291f2"],["932f50f4.bfa01"],["a78d0782.d2f0f8"],["3560a381.17070c"]]},{"id":"f5d34f7d.bd52c","type":"kodi-in","z":"2a59a65.117295a","name":"TS Kodi","controller":"5d6b605e.1f277","x":90,"y":580,"wires":[["bc46bb0c.f41c38","4b099f8d.4b985","8c2c552.d1370a8"]]},{"id":"820787c8.cf2bb8","type":"link out","z":"2a59a65.117295a","name":"","links":["395ff4f8.f09efc"],"x":475,"y":520,"wires":[]},{"id":"d26c116f.7a294","type":"link out","z":"2a59a65.117295a","name":"TV on","links":["88116503.c233a8","be34b4e.9beed48"],"x":475,"y":600,"wires":[]},{"id":"2c274dda.5291f2","type":"template","z":"2a59a65.117295a","name":"Movie started","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n \"cmd\": \"GUI.ShowNotification\",\n \"args\": {\n \"title\": \"Movie started [xx%]\",\n \"message\": \"---\"\n }\n}","output":"str","x":755,"y":831,"wires":[["4a9f7b98.83b554","1ee73792.439c88"]]},{"id":"932f50f4.bfa01","type":"template","z":"2a59a65.117295a","name":"Movie paused","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n \"cmd\": \"GUI.ShowNotification\",\n \"args\": {\n \"title\": \"Movie paused [xx%]\",\n \"message\": \"---\"\n }\n}","output":"str","x":755,"y":871,"wires":[["4a9f7b98.83b554"]]},{"id":"a78d0782.d2f0f8","type":"template","z":"2a59a65.117295a","name":"Movie stop","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n \"cmd\": \"GUI.ShowNotification\",\n \"args\": {\n \"title\": \"Movie stopped [xx%]\",\n \"message\": \"---\"\n }\n}","output":"str","x":745,"y":911,"wires":[["4a9f7b98.83b554"]]},{"id":"3560a381.17070c","type":"link out","z":"2a59a65.117295a","name":"TS TV off","links":["395ff4f8.f09efc"],"x":335,"y":940,"wires":[]},{"id":"f46e88ca.a57b38","type":"inject","z":"2a59a65.117295a","name":"off","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":270,"y":580,"wires":[["820787c8.cf2bb8"]]},{"id":"dc5d7027.69f59","type":"inject","z":"2a59a65.117295a","name":"on","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":270,"y":620,"wires":[["d26c116f.7a294"]]},{"id":"4a9f7b98.83b554","type":"change","z":"2a59a65.117295a","name":"+ Title","rules":[{"t":"change","p":"payload","pt":"msg","from":"---","fromt":"str","to":"Kodi_TS.title","tot":"global"},{"t":"change","p":"payload","pt":"msg","from":"xx","fromt":"str","to":"Kodi_TS.progress","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":965,"y":871,"wires":[["d4b36daa.426ca"]]},{"id":"1ee73792.439c88","type":"link out","z":"2a59a65.117295a","name":"TV on -","links":["5ddf80e1.4b98c"],"x":1090,"y":831,"wires":[]},{"id":"d4b36daa.426ca","type":"link out","z":"2a59a65.117295a","name":"TS Kodi","links":["607f0588.d0e7bc"],"x":1090,"y":871,"wires":[]},{"id":"85f19228.2703f","type":"kodi-controller","z":"","name":"TS_Kodi_wifi","host":"192.168.1.175","port":"9090"},{"id":"5d6b605e.1f277","type":"kodi-controller","z":"","name":"Kodi_ts_lan","host":"192.168.1.179","port":"9090"}]
and a sample flow for notifications on the TV using KODI
[{“id”:“49c63ea8.8a147”,“type”:“kodi-in”,“z”:“2a59a65.117295a”,“name”:“TS Kodi”,“controller”:“85f19228.2703f”,“x”:90,“y”:540,“wires”:[[“bc46bb0c.f41c38”,“8c2c552.d1370a8”,“4b099f8d.4b985”]]},{“id”:“bc46bb0c.f41c38”,“type”:“switch”,“z”:“2a59a65.117295a”,“name”:“ScreenSaver”,“property”:“payload.notification”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“GUI.OnScreensaverActivated”,“vt”:“str”},{“t”:“eq”,“v”:“GUI.OnScreensaverDeactivated”,“vt”:“str”}],“checkall”:“true”,“repair”:false,“outputs”:2,“x”:250,“y”:520,“wires”:[[“820787c8.cf2bb8”],[“d26c116f.7a294”]]},{“id”:“8c2c552.d1370a8”,“type”:“debug”,“z”:“2a59a65.117295a”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“x”:220,“y”:680,“wires”:[]},{“id”:“4b099f8d.4b985”,“type”:“switch”,“z”:“2a59a65.117295a”,“name”:“Playing”,“property”:“payload.notification”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“Player.OnPlay”,“vt”:“str”},{“t”:“eq”,“v”:“Player.OnPause”,“vt”:“str”},{“t”:“eq”,“v”:“Player.OnStop”,“vt”:“str”},{“t”:“eq”,“v”:“System.OnQuit”,“vt”:“str”}],“checkall”:“true”,“repair”:false,“outputs”:4,“x”:115,“y”:871,“wires”:[[“d26c116f.7a294”,“2c274dda.5291f2”],[“932f50f4.bfa01”],[“a78d0782.d2f0f8”],[“3560a381.17070c”]]},{“id”:“f5d34f7d.bd52c”,“type”:“kodi-in”,“z”:“2a59a65.117295a”,“name”:“TS Kodi”,“controller”:“5d6b605e.1f277”,“x”:90,“y”:580,“wires”:[[“bc46bb0c.f41c38”,“4b099f8d.4b985”,“8c2c552.d1370a8”]]},{“id”:“820787c8.cf2bb8”,“type”:“link out”,“z”:“2a59a65.117295a”,“name”:"",“links”:[“395ff4f8.f09efc”],“x”:475,“y”:520,“wires”:[]},{“id”:“d26c116f.7a294”,“type”:“link out”,“z”:“2a59a65.117295a”,“name”:“TV on”,“links”:[“88116503.c233a8”,“be34b4e.9beed48”],“x”:475,“y”:600,“wires”:[]},{“id”:“2c274dda.5291f2”,“type”:“template”,“z”:“2a59a65.117295a”,“name”:“Movie started”,“field”:“payload”,“fieldType”:“msg”,“format”:“handlebars”,“syntax”:“mustache”,“template”:"{\n “cmd”: “GUI.ShowNotification”,\n “args”: {\n “title”: “Movie started [xx%]”,\n “message”: “—”\n }\n}",“output”:“str”,“x”:755,“y”:831,“wires”:[[“4a9f7b98.83b554”,“1ee73792.439c88”]]},{“id”:“932f50f4.bfa01”,“type”:“template”,“z”:“2a59a65.117295a”,“name”:“Movie paused”,“field”:“payload”,“fieldType”:“msg”,“format”:“handlebars”,“syntax”:“mustache”,“template”:"{\n “cmd”: “GUI.ShowNotification”,\n “args”: {\n “title”: “Movie paused [xx%]”,\n “message”: “—”\n }\n}",“output”:“str”,“x”:755,“y”:871,“wires”:[[“4a9f7b98.83b554”]]},{“id”:“a78d0782.d2f0f8”,“type”:“template”,“z”:“2a59a65.117295a”,“name”:“Movie stop”,“field”:“payload”,“fieldType”:“msg”,“format”:“handlebars”,“syntax”:“mustache”,“template”:"{\n “cmd”: “GUI.ShowNotification”,\n “args”: {\n “title”: “Movie stopped [xx%]”,\n “message”: “—”\n }\n}",“output”:“str”,“x”:745,“y”:911,“wires”:[[“4a9f7b98.83b554”]]},{“id”:“3560a381.17070c”,“type”:“link out”,“z”:“2a59a65.117295a”,“name”:“TS TV off”,“links”:[“395ff4f8.f09efc”],“x”:335,“y”:940,“wires”:[]},{“id”:“f46e88ca.a57b38”,“type”:“inject”,“z”:“2a59a65.117295a”,“name”:“off”,“topic”:"",“payload”:"",“payloadType”:“date”,“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“x”:270,“y”:580,“wires”:[[“820787c8.cf2bb8”]]},{“id”:“dc5d7027.69f59”,“type”:“inject”,“z”:“2a59a65.117295a”,“name”:“on”,“topic”:"",“payload”:"",“payloadType”:“date”,“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“x”:270,“y”:620,“wires”:[[“d26c116f.7a294”]]},{“id”:“4a9f7b98.83b554”,“type”:“change”,“z”:“2a59a65.117295a”,“name”:"+ Title",“rules”:[{“t”:“change”,“p”:“payload”,“pt”:“msg”,“from”:"—",“fromt”:“str”,“to”:“Kodi_TS.title”,“tot”:“global”},{“t”:“change”,“p”:“payload”,“pt”:“msg”,“from”:“xx”,“fromt”:“str”,“to”:“Kodi_TS.progress”,“tot”:“global”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:965,“y”:871,“wires”:[[“d4b36daa.426ca”]]},{“id”:“1ee73792.439c88”,“type”:“link out”,“z”:“2a59a65.117295a”,“name”:“TV on -”,“links”:[“5ddf80e1.4b98c”],“x”:1090,“y”:831,“wires”:[]},{“id”:“d4b36daa.426ca”,“type”:“link out”,“z”:“2a59a65.117295a”,“name”:“TS Kodi”,“links”:[“607f0588.d0e7bc”],“x”:1090,“y”:871,“wires”:[]},{“id”:“85f19228.2703f”,“type”:“kodi-controller”,“z”:"",“name”:“TS_Kodi_wifi”,“host”:“192.168.1.175”,“port”:“9090”},{“id”:“5d6b605e.1f277”,“type”:“kodi-controller”,“z”:"",“name”:“Kodi_ts_lan”,“host”:“192.168.1.179”,“port”:“9090”}]
I hope it helps