After running my errands today I rewarded myself by rewriting my IoT rotary phone as an Arduino sketch.
This is the third rewrite, and so far the best version. It uses MQTT to send messages to my home automation server.
The previous ones called the server API directly which meant actions were annoying to change.
https://gist.github.com/emorydunn/51ca944db5efd395f00ef4770368f233