Hassio

Replacing A Harmony Remote Using Home Assistant

For a long time I’ve been a fan of the Logitech harmony remote controls. They let you orchestrate the operations of lots of devices. I like to think of them as setting scenes. For example in the room we watch tv, we have a tv, soundbar, Apple TV, sky box, HDMI switch and a couple of games consoles. So to watch sky tv :

  • Power on the tv
  • Power on the soundbar
  • Power on the sky box
  • Set the tv to HDMI 3
  • Set the soundbar to HDMI 1(ARC)
  • Set the HDMI switch to 1

Switching to the Apple TV needs a similar sequence, the games console another etc.

Home Assistant Static Network Routes

I run home assistant using the pi docker image. My IOT devices live on different networks to devices in the home and I have a slightly weird network setup at this moment in time that means I can’t create static routes at a router level for a couple of these IOT subnets.

I can easily add the required static routes using ssh into the docker container

/sbin/route add -net 172.16.2.0 netmask 255.255.255.0 gw 172.16.0.153 
/sbin/route add -net 172.16.3.0 netmask 255.255.255.0 gw 172.16.0.153 

However I’ve struggled to get these saved in the traditional way to survive post boot. This may be a busybox issue, but I can’t crack it in any normal way. As such I’m documenting a quick way of sorting it if you are having the same issue.