Social card reading 'nodoff: Windows monitors as Home Assistant lights, over MQTT' beside a terminal panel showing MQTT topics for a monitor's power and brightness, and a command setting the brightness to 40

Control Windows Monitor Brightness and Power from Home Assistant over MQTT (DDC/CI)

Home Assistant can dim every lamp in my study, and until recently it couldn’t touch the two brightest things in the room. PC monitors don’t show up anywhere. Windows has no brightness slider for an external screen, and the usual workarounds either draw a dark overlay on top of the picture or need a hardware smart plug that cuts the power. So I wrote nodoff, a small Windows tray app that publishes each monitor to Home Assistant as a light. On and off sleep and wake the screen. The brightness slider moves the real backlight. It’s free, MIT licensed, and this is the write-up I promised in the presence sensor post. ...

December 1, 2026 · 9 min · Tom Cocking
Social card reading 'Enviro Urban: custom firmware that supports ultra low power mode' beside a terminal panel showing an MQTT state message, a drain of 107 and 33 mAh per day at 5 and 15 minute wakes, and about 57 days on a full charge

Pimoroni Enviro Urban Battery Drain: A Low-Power MicroPython Firmware Fix

The Pimoroni Enviro Urban is a lovely little air quality board with a reputation for flattening its batteries. It’s designed to sleep at a few microamps and wake on a timer, which should mean months on a set of AAs. Pimoroni’s issue tracker has years of reports of boards that stop waking and drain their batteries instead. The cause is in the firmware, not the board, and Pimoroni’s repo hasn’t had a commit to main since April 2024. ...

November 22, 2026 · 14 min · Tom Cocking
Social card reading 'I stand up. The screens fade out. Sit back down and they're back at 90%.' beside a dimmed Home Assistant dashboard showing an Auto Occupancy tile, two desk monitor sliders at 90% and an occupancy badge reading 0

Home Assistant Presence Sensor: Turn Monitors Off When You Leave the Desk

My study has five things that glow: two desk monitors, a wall-mounted dashboard screen, a strip light and a custom Home Assistant display frame I built from a cheap Android photo frame. Every time I got up to make a coffee, all five stayed on and lit an empty room. Now they notice I’ve gone. A minute after I stand up, everything fades down together, and when I sit back down it all comes back. Not at 3am, though. ...

November 12, 2026 · 20 min · Tom Cocking