Making Wireguard VPN work with EE 4G in the UK

For the past couple of months I have been running a permanent VPN on my iPhone. There are a number of advantages:

Occasionally I’ll leave the house and the Wireguard app will activate my VPN but the VPN won’t actually connect, it just sits there. Toggling the VPN on/off usually causes it to connect. Or frustratingly I’ll be out and about and the VPN will refuse to work unless I toggle VPN.

A number of people have reported similar behaviour on the T-Mobile network in the states when transitioning from Wi-Fi to 4G/LTE, presumably they use the same IPv6 to IPv4 NAT technology that appears to contribute to the problem.

There is a fix (workaround?) to this and that is to force EE to use IPv4 only. I believe I only experience this problem because my WireGuard endpoint is IPv4.

  1. Download and install this profile to your iPhone
  2. Toggle airplane mode
  3. Enjoy Wireguard without frequent network connectivity problems!
July 16, 2019

Home Assistant - Nest Thermostat

On 16th May 2019 Nest (Google) announced they will retire the Works with Nest program at the end of August. They’ve since changed their mind and now this only affects new users.

Despite saying they will continue to support existing users it is still to this day impossible to sign up as a developer on the Nest developer site.

I’ve wanted to integrate my Nest Thermostat with my Home Assistant instance for a while but because of these changes have been unable to do so. I did sign up as a developer and had generated API credentials last year but have since misplaced them.

I have however found a workaround to this problem and that is Wink.

We can use Wink to act as a proxy between us and Nest until they decide to allow new developers or create a new development platform under Google.

All of the instructions you’ll need are right here, but here’s a brief step by step:

  1. Sign up as a developer. It doesn’t matter which email you use, it doesn’t have to match the email used to sign up in the Wink app. I signed in using Github.
  2. Create a new app in their developer portal, Name, Website can be whatever you like. Be sure to set redirect URI to where matches your Home Assistant instance
  3. Add the wink integration to Home Assistant. That’s as easy as adding this to configuration.yaml:
  1. Restart Home Assistant and you’ll see the configurator for Wink, if you configure Lovelace manually go to /dev-state and look for it there instead.
  2. Download the Wink app to your phone and add your Nest Thermostat. You’ll be asked be passed to Nest’s website and asked to allow Wink as a Works with Nest” integration.
  3. Restart Home Assistant, you’ll now see your Nest Thermostat under /dev-state, enjoy!

If you want to build a sensor for just the current temperature, we’d use a Sensor template like this:

- platform: template
      friendly_name: "Nest Hallway Temperature"
      unit_of_measurement: '°C'
      value_template: "{ state_attr('climate.home_hallway_thermostat_hallway_nest', 'current_temperature') }"
July 15, 2019

View the archives