Saturday, May 16, 2015

Home "automation" in Linux with netcat/socat

I realize that this post i lacking in instructions. I might flesh this out at a later date but no guaranties. It's not really that difficult once you figure out my madness ;)

I'm using tasker and udp sender to send udp packets with commands to a listening socat.

So if I send, for example (trailing blank line is intentional):
hue_on
kodi_on

my Hue lights and HTPC will turn on. Tasker is then set up to send these commands when my phone connects to my home network. Simple and effective.

On to the script.