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:

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