Colourful Norwich skyline illustration

Michael Sage

IT, Digital & Culture

Smart Home Hardware

Smart Home Hardware

Infrastructure

Alexa

Amazon Alexa, is a virtual assistant, first used in the Amazon Echo and the Amazon Echo Dot smart speakers. She is the central "hub" to all my systems, start with an Echo Dot and build it from there! Just added an echo auto to my car and it's changed everything all over again!

OPNsense - Firewall

OPNsense is an open source, easy-to-use and easy-to-build HardenedBSD based firewall and routing platform. OPNsense includes most of the features available in expensive commercial firewalls, including IPS / IDS. I only really use OPNsense as a firewall, IPS/IDS and VPN server, but you can use it for almost all network scenarios.

Unifi - Networking

Although no the cheapest solution on the market. The centralised management and power over ethernet make them a worthwhile investment. They are ideal prosumer devices.

Unifi - Cameras

Unifi's CCTV solution is brilliant, the Flex is the bargain of the range and well worth the investment. Using the 3rd party monocle skill (https://monoclecam.com/) you can ask Alexa to bring up any of your cameras, with minimal setup.

Home Assistant

Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.

Hardware

Broadlink

Using the Broadlink mini RM 3. You can control a number of IR devices using Alexa. Make sure you purchase an EU version or it won't work! Suited for the bedroom, kitchen or study, where the harmony hub is overkill. Be warned always setup devices as TVs for them to show up in Alexa.

Wiser

My second smarthome heating system, the first a Salus didn't support Alexa. The wiser system does and the app is brilliant!

Sonoff

The cheapest and most flexible devices in my current smarthome. Using the ewelink app to create scenes and linking the solution with Alexa for voice control. The app recently got a much needed update!

Harmony

By far the best control system for A/V equipment. The app is great the Alexa skill is one of the best I have. Full control of multiple devices and routines within the app are simple. A worthwhile investment!

Philips Hue

Everyone has heard of Hue, it is an expensive system, but by far my favourite lighting system out there. So far I have only used the bulbs and motion sensors, but am considering an outdoors project next Spring!

SwitchBot Curtain

Curtain bots are cool and at £60 per set of curtains, a lot cheaper than the £400 rails I was looking at before!

Govee

The only govee product I own is the ambilight which is great for watching films, I only really use this with Alexa to create scenes and automation routines.

Shelly

Possible replacement for Sonoff with a much more open approach to development and firmwares.

Flic Button Logo

Flic

A small button that can control nearly any connected device or service with a push. Simple smart light switch, advanced routine trigger, etc. I mainly use these buttons to control lights and mix manufacturers. They work really well with node-red which is something I am building on especially in the smart static project!

Hacking

Tasmota

Total local control with quick setup and updates. Control using MQTT, Web UI, HTTP or serial. Automate using timers, rules or scripts. Integration with home automation solutions. Incredibly expandable and flexible.

ESP8266

The IoT hackers board of choice. They are cheap and easy to program. Buy 2 to start with just in case you smoke one (like I did).

AWS

AWS is amazon's cloud computing services. You can create amazing skills and routines for really customising your smarthome routines. AWS is also the infrastructure behind Alexa.

NFC

Often found on your phone NFC is the technology used in contactless payments. You can buy simple stickers that when you pass a phone near can trigger actions. Such as joining a wifi network, turning off a light, etc. I have linked to a starter pack which I would recommend.

Old Stuff

LightwaveRF
(Retired 2020)

The oldest component in my smarthome system. I still recommend lightwave for controlling devices like lamps, plug sockets and other plugin systems. The new generation support two way comms, but I haven't moved to gen 2.

Unifi - USG
(Retired 2020)

The unifi USG is the protector of the perimeter of my smarthome. Offering a robust firewall and some advanced features including VPN (remote access) and IDS / IPS (intrusion protection and detection).

IFTTT
(Retired 2020)

IFTTT makes it easy to create simple actions that you want to trigger using something like an AWS IOT button, NFC sticker or an ESP8266 creation.
Removed due to subscription costs!

TP-Link
(Retired 2020)

TP-link make great networking kit, ideal if you are just starting out. My first tip would be to get rid of your ISP supplied router and go with a tp-link. They also make a range of Alexa compatible plugs that don't require a hub.

NEOS
(Retired 2021)

An insurance company that sells incredibly cheap (and good) internal cameras that work with Alexa. The app is ok and includes geofencing for auto arming.

October 2020 Update

October 2020 Update

I have added home assistant to the mix, after years of watching from afar, the IFTTT subscription and eWeLink subscription finally pushed me to install it on a spare Pi, I want to reduce my reliance on 3rd party clouds, especially with some of the less well known manufacturers. It works with nearly all my smart home stuff (with the exception of the flic hub I am hoping the new API will fix this). There is now a plugin for sonoff which works without having to change the firmware so I can wait a bit longer for the Shelly UK plugs which should be coming soon. 

I have updated the garden TV to use a firestick, which gives me Alexa in the garden through the voice enabled remote. I have also purchased a Chromecast with Google TV, it’s impressive but not impressive enough to move away from Roku. Alexa in the garden has always been something I wanted to have, but I didn’t really want a device outside full time that would allow people to control my house!

In new smart home news, I have the new Echo on order and the curtain bots have shipped, I’m really looking forward to trying both these products! Unifi have announced a G3 instant camera which will be a great replacement for the NEOS cameras and consolidation is what this iteration of the smarthome is all about. FTTP is now available, so I am weighing up my options when it comes to providers as I will have to leave my current provider (Plusnet) as they have no FTTP offering. I am currently looking at the 900Mbps service from Zen. I am unlikely to change until after Christmas though! 

Lego Rack Server

Rack Mount Lego Server

Stolen from a LinkedIn post.

Parts List:

Element ID (BrickLink) Description Quantity
11211 Brick – Modified 1×2 with Studs on 1 Side 2
2412a Tile – Modified 1×2 Grille without bottom lip 9
2431 Tile – 1×4 4
26603 Tile – 2×3 1
3003 Brick – 2×2 1
3004 Brick – 1×2 1
3010 Brick – 1×4 8
3020 Plate – 2×4 2
3023 Plate – 1×2 4
3024 Plate – 1×1 6
3068a Tile – 2 x 2 without Groove 3
3069a Tile – 1 x 2 without Groove 6
3622 Brick – 1×3 2
63864 Tile – 1 x 3 2
69729 Tile – 2×6 (not many colour choices for this one) 1
87079 Tile – 2 x4 1
92438 Plate – 8×16 1
Total 54

Alternative for the front (avoiding 69729 – Tile – 2×6) for more colour options!

Element ID Description Quantity
3005 Brick – 1×1 2
3068a Tile – 2×2 1
26603 Tile – 2×3 1
87079 Tile – 2×4 1
87087 Brick – Modified 1×1 with stud on 1 side 4

Using the above list you don’t require – 69729, 11211, 3004 or 26603 – from the first list!

Shelly HTTP Commands

Some standard HTTP commands for the Shelly I have found In case of password protected you will need to put http://user:password@shellyIP first

Shelly 1:
Turn on:
http://192.168.xxx.xxx/relay/0?turn=on
Turn off:
http://192.168.xxx.xxx/relay/0?turn=off
Turn on and after ttt-seconds automatically turn off: (ttt replace with the desired time in seconds!)
http://192.168.xxx.xxx/relay/0?turn=on&timer=ttt
The code can also be sent to an already activated Shelly. This will stay on for ttt seconds and then turn off automatically. Turn off and after ttt-seconds automatically turn on: (ttt replace with the desired time in seconds!)
http://192.168.xxx.xxx/relay/0?turn=off&timer=ttt
The code can also be sent to an already switched off Shelly. This will remain switched off for ttt seconds and then automatically switched on.

Switch toggle:
http://192.168.xxx.xxx/relay/0?turn=toggle

Proxmox Community Updates

First remove the enterprise enterprise.proxmox repository

# rm /etc/apt/sources.list.d/pve.enterprise

#apt update && apt -y full-upgrade

Add the no-subscription or pve-test repositori :

#nano /etc/apt/sources.list
deb http://download.proxmox.com/debian buster pve-no-subscription

Go back to the GUI and check you can get updates!

Flic HTTP request with Authentication

When you are wanting to use the HTTP request within Flic it doesn’t work using the standard user:pass@host. So you have to do a little more work…

  • Add your URL which for me was http://xxx.xxx.xxx.xxx/relay/0?turn=toggle to turn a light on or off in the garage.

  • stick with GET http method (or which ever suites)

  • under the HTTP headers, set up basic authentication i.e. type “Authorization” in the Key field of the app

  • encode your “user:password” string using base64 (I used base64encode.org for online base64 encoding)

  • Prefix the encoded string with “Basic ” including a trailing space

  • “Basic YWRtaW46YWRtaW4NCg==” is encoded “admin:admin” as an example. Key or paste all of this into the Value field in the FLIC app

  • Press the save button.

  • Press DONE to ensure all saved away

OPNsense + NextCloud Backup – Windows Client Issue

OPNsense backups contain a special character, in this case “:”. Which while most operating systems tolerate it causes an issue with the Windows NextCloud client and it is unable to sync. The developer has a very good point in that this isn’t a OPNsense issue, but a NextCloud / Windows one for not respecting, or being able to deal with special characters. However, all is not lost, there is a tiny modification you can make to one file on the OPNsense server to make everything OK!

First log into the shell on the OPNsense box (option 8 on the console GUI)

If you don’t have an editor installed you can use vi, or you can install nano

pkg install nano

Open the file

nano /usr/local/opnsense/mvc/app/library/OPNsense/Backup/Nextcloud.php 
Change line 132 from
$configname = 'config-' . $hostname . '-' .  date("Y-m-d_h:m:s") . '.xml';
to
$configname = 'config-' . $hostname . '-' .  date("Y-m-d_H-i-s") . '.xml';
This changes the “:” to a “-“, but you could change this to anything you like. Save the file, job done!

Remember it is likely this will get overwritten with updates to OPNsense so I recommend you check the file after every update!

Public Sector Podcast

Public Sector Podcast

In last May I was invited to speak on “The Public Sector Pod”, a podcast that focuses on digital transformation in the public sector.

I really enjoyed having the chance to talk about a subject that I feel very passionately about, digital transformation in the public sector. I was allowed to chat about the successes and failings we had experienced at Chelmsford as well as the future. 

You can find the podcast here!

June 2020 Update

June 2020 Update

The year is now 2020 and things have changed in the smart home. After a lot of soul searching I decided it was time to remove lightwave from the setup, the product hasn’t really moved with the times from it’s promising start, it felt old, expensive and stagnant. I replaced all my remaining lightwave switches and plugs with products from sonoff, some of them are running the custom tasmota firmware others are still running the default sonoff firmware, I am likely to start buying Shelly stuff as it becomes available in the UK because of its flexibility. 

I am also really interested in Broadlinks new offering especially the zero app series that is likely to arrive in the UK in the next few months. I have added a couple of NEOS cameras to watch Hollie while I am at work these integrate nicely with Alexa and I now have a Show 8 and Show 5 to make use of video based skills. 

My hue install has grown and now covers the garden as well as the house, an additional govee ambilight has been added to the TV, and although it integrates with Alexa, it mainly stands alone.

Alexa has expanded to include my car using the Echo Auto and the control outside of the house is a nice feature, with geolocation it could become almost as game changing as the original echo.

I have migrated from the Unifi USG to OPNsense. With the promise of BT FTTP coming in the next couple of months and continuing issues with the USG (it just isn’t powerful enough to do everything it says it can). I decided to move back to OPNsense (I moved from pfSense to OPNsense about 5 years ago when I didn’t like the way pfSense licensing was heading).

Duo ByPass

To bypass duo 2fa for a script or secure login etc on Linux you simply need to add the following to your SSHD PAM config (/etc/pam.d/sshd)

auth    [success=2 default=ignore]      pam_access.so accessfile=/etc/security/access-local.conf

You will then need to create the access file and put your rules in for example

+ : ALL : 192.168.1.0/24
- : ALL : ALL

For information on the access file, see here