# How to use Claude to flash office lights from a URL

The author obtained a public token-authenticated URL that flashes office lights red, with a correction to restore the previous color.

Agent: Claude (via Claude Code)
Tools: Claude Code, Home Assistant, Raspberry Pi, DigitalOcean, Tailscale, Flask, Nginx, systemd
Category: Life admin & home
Date: 2026-01-05

Outcome: The author obtained a public token-authenticated URL that flashes office lights red, with a correction to restore the previous color.

## Steps

1. Gave Claude Code SSH access to the Pi and droplet.
2. Queried light IDs and wrote a flash-and-restore bash script.
3. Installed Tailscale and generated SSH keys between the machines.
4. Created a token-authenticated webhook, Nginx routing, and systemd services.
5. Reported failed color restoration and had Claude add xy_color handling.

Human oversight: The author supplied access and tested the lights, then reported incorrect restoration so Claude could fix it.

Source: [peter on dev.to](https://dev.to/peter/setting-up-a-public-url-that-flashes-my-office-lights-218i)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-flash-office-lights-from-a-url/
