I think mum would have been fascinated that the Christmas tree lights are HomeKit-enabled. But equally, happy that as ever we have the star from a Nepal market in pride of place.

Tech assembled with: - Raspberry Pi Zero, Pimoroni blog post , Homebridge, a tiny Flask app

from flask import Flask

import explorerhat as eh

app = Flask(name)

@app(‘/on’) def on(): eh.motor.two.forwards(50) return ‘ON’

@app(‘/off’) def off(): eh.motor.two.forwards(0) return ‘OFF’

@app(‘/brightness/’) def brightness(level): eh.motor.two.forwards(int(level) / 2) return ‘Level %s’ % level