Owl Intuition - Manual Command Processor

This is a very simple flow designed to enable you to send commands to interrogate or set parameters within you Owl Intuition system. It should enable you to stop subscribing for the formal system. It runs on both Node-Red on my PC and Node-Red running as an Integration within Home Assistant on my Raspberry Pi4.

There are a few things to edit within the nodes (IP address of the Owl, UDP code and local port if necessary). More detail on these are in the flow.

No checking for correct formatting is done nor that the commands are valid. The user will need to google to find the web page where there is a PDF document with all the commands listed. I suggest you try the GETs first to get the hang of it before using any SETs. Incorrect commands return ERROR or are ignored.

Try commands like GET,VERSION or GET,AWAY or COMFORT first. The command will be set to upper case and then the UDP code will be added.

Time input is in seconds past 1/1/1970 00:00:00. No assistance is given for that.

I have a much larger flow that is almost ready for publishing that removes the need to understand the commands themselves and converts the times for you as well as providing some graphic outputs. It is just for heating and monitoring of 1 electrical phase. Look out for when I publish it.

Enjoy.

[{"id":"6b2085e4.fa69fc","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"f1ce6dea.3aad6","type":"udp in","z":"6b2085e4.fa69fc","name":"Get Owl UDP Response","iface":"","port":"8888","ipv":"udp4","multicast":"false","group":"","datatype":"utf8","x":150,"y":220,"wires":[["1e31810a.a0170f"]]},{"id":"1e31810a.a0170f","type":"ui_text","z":"6b2085e4.fa69fc","group":"c3865cc7.64f53","order":8,"width":16,"height":1,"name":"Responses","label":"Response -->","format":"{{msg.payload}}","layout":"row-left","x":350,"y":220,"wires":[]},{"id":"c2ef97b3.5476b8","type":"ui_text_input","z":"6b2085e4.fa69fc","name":"","label":"","tooltip":"","group":"c3865cc7.64f53","order":3,"width":16,"height":1,"passthru":true,"mode":"text","delay":"0","topic":"","x":100,"y":140,"wires":[["fb4c1f90.0a24b"]]},{"id":"de9b1bff.f434a8","type":"ui_text","z":"6b2085e4.fa69fc","group":"c3865cc7.64f53","order":1,"width":16,"height":2,"name":"","label":"","format":"Manual commands may be entered below.  Leave out the UDP Code. No checking for valid commands is performed! Commands will be converted to upper case. Erroneous commands are usually ignored or return \"ERROR\". However, be careful...","layout":"row-spread","x":90,"y":100,"wires":[]},{"id":"c3c6e5bf.a10908","type":"function","z":"6b2085e4.fa69fc","name":"get global.Command","func":"msg.payload = global.get(\"Command\")\nmsg.payload = msg.payload.toUpperCase()\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":280,"y":180,"wires":[["da4699c5.4539d8"]]},{"id":"f0885bdb.bacda8","type":"ui_button","z":"6b2085e4.fa69fc","name":"","group":"c3865cc7.64f53","order":5,"width":4,"height":1,"passthru":false,"label":"Send","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":90,"y":180,"wires":[["c3c6e5bf.a10908"]]},{"id":"fb4c1f90.0a24b","type":"change","z":"6b2085e4.fa69fc","name":"","rules":[{"t":"set","p":"Command","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":280,"y":140,"wires":[[]]},{"id":"b535319d.d0861","type":"ui_text","z":"6b2085e4.fa69fc","group":"c3865cc7.64f53","order":6,"width":0,"height":0,"name":"Commands","label":"Sent -->","format":"{{msg.payload}}","layout":"row-left","x":830,"y":140,"wires":[]},{"id":"da4699c5.4539d8","type":"function","z":"6b2085e4.fa69fc","name":"Amend to include your UDP Code","func":"// Replace ABCD1234 with your unique UDP code\nmsg.payload += \",ABCD1234\" // Add UDP code (don't delete the comma)\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":560,"y":180,"wires":[["b535319d.d0861","8f9dde79.11d35"]]},{"id":"b6cc079e.8e1038","type":"comment","z":"6b2085e4.fa69fc","name":"Read Me (Double click)","info":"INSTRUCTIONS\n\n1. Edit the second function node to include your UDP code that can be found on the Formal Owl Dashboard under <System> (scroll down) <Set Data Push>.\n2. Edit the <Send UDP Command node> to refer to your Owl Hub's IP address. You should make the address static by assigning a static IP address to it's MAC in the Router. Routers vary a lot so you need to work out yourself how to do that.\n3. In the 2 grey UDP nodes, you may change the Port number if 8888 doesn't suit your network. But they must be the same!\n4. To get to see the dasshboard, open a new tab in your browser and type <IP of the Node Red host>:1888/endpoint/ui (This works for me using Node Red running under Home Assistant (HA) on a Raspberry Pi4. It may need adapting to your system so some research might be necessary). If running under HA you may need your HA login credentials.","x":140,"y":40,"wires":[]},{"id":"8f9dde79.11d35","type":"udp out","z":"6b2085e4.fa69fc","name":"Send UDP Command to the Owl","addr":"192.168.0.98","iface":"","port":"5100","ipv":"udp4","outport":"8888","base64":false,"multicast":"false","x":890,"y":180,"wires":[]},{"id":"c3865cc7.64f53","type":"ui_group","name":"Owl Command Editor","tab":"89b18fa3.2e862","order":1,"disp":true,"width":16,"collapse":false},{"id":"89b18fa3.2e862","type":"ui_tab","name":"Owl Command Input","icon":"dashboard","disabled":false,"hidden":false}]

Flow Info

Created 4 years, 6 months ago
Rating: 5 1

Owner

Actions

Rate:

Node Types

Core
  • change (x1)
  • comment (x1)
  • function (x2)
  • udp in (x1)
  • udp out (x1)
Other
  • tab (x1)
  • ui_button (x1)
  • ui_group (x1)
  • ui_tab (x1)
  • ui_text (x3)
  • ui_text_input (x1)

Tags

  • owl
  • intuition
  • dashboard
  • command
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option