Windows 10, why you no sleep?

A (minor) annoyance of my recent new build Windows 10 machine has been its inability to properly sleep. I’d hit Sleep, it’d go through the motions of spinning down fans and sleeping… and then immediately spring back into life.

I’ve actually put up with this for months, but yesterday spent some time working out what was happening, so for Future Howard’s benefit, here’s how to see what is keeping your machine awake.

Continue reading

“Alexa, where are the cats?”

As is well documented, I have a significant number of feline overlords who thanks to multiple Sure Petcare cat flaps can come and go as they please. The new Connected range of cat flaps comes with a web site, iOS app (a thin skin over the same web site) and is built using what appears to be a pretty solid RESTful API. A few months ago I spent a bit of time monitoring the web app to reverse engineer bits of the API, and then built an Alexa skill so that I could ask my house where all the cats are.

Continue reading

UniFi, VLANs, Sonos and igmp-proxy

As an exercise in good network health, I spent some time last month moving all the “Internet of Things” devices in my network onto their own segregated VLAN. I’ve configured things so that by default no traffic can leave the IoT network without my adding explicit rules to permit it. This protects the trusted side of my network from potentially dodgy traffic from the IoT devices with cheap WiFi chips and Chinese hosted servers. (I’m looking at you ThermoGroup.)

Logically, my network ends up looking something like this, with separate networks for the trusted kit, the IoT devices and the guest wireless network.

One wrinkle with this approach is that – by design – each VLAN is its own broadcast domain. That means the devices on my primary trusted VLAN can no longer use multicast to discover devices on the IoT VLAN. The most obvious victim of this was Sonos – none of the controllers could see the Sonos devices once I separated the LANs.  Enter igmpproxy running on my router – the UniFi USG-PRO-4.

Continue reading

Clearing Ubiquiti UniFi USG DNS entries

Another post to save Future Howard the trouble of trying to remember how to fix a problem: when the DNS server in the USG-PRO has cached an old or invalid IP for a host. To verify:

  • SSH to the USG-PRO itself (not the Cloud Key/Controller).
  • To see the list of IPs it has stored, with the incorrect entry:
    cat /etc/hosts
  • To edit (elevated) and remove the offending line
    sudo vi /etc/hosts
  • And to ensure the DNS service forgets the incorrect value:
    clear dns forwarding cache

You’re welcome, Future Howard.

Faking Web to SMS so Synology can Notify via Slack

As bits of hackery go, this is pretty niche. I have a bunch of storage in a Synology Diskstation – this can send various notifications in case disks fail, components get too hot, or other bits of the system break down in ways that require immediate attention. It can send emails, you can use their app to enable push notifications to your phone and if you really want to you can have it send you SMS (actual SMS, in 2017?!). What it can’t do out of the box is send a message to a Slack channel.

I really like Slack. As well as running a paid instance of Slack with my teams at FISCAL, I have a separate (free) one for friends and family and for running experiments with bots and other integrations. So I wanted the Synology, like most of my other house/home automation devices, to talk to Slack. The easy way would be to make the Synology send an email to the Slack email integration – except the email->Slack integration is only available to paid Slack instances. So what to do? Continue reading