Home Weather Beacon

This is the first published project that was mostly completed by directing LLM Coding Chatbots, primarily Claude. This prose is entirely hand written.

I love weather beacons. This turns a WLED device in Home Assistant into an immediate term weather indicator.

The lamp is a gift lamp. It doesn't need Home Assistant but it's displayed there and integrated there for distribution and hacking.

Prior art

Glance mode

This is the default. The beacon looks at the next 3 hours and shows an effect and colour for the most significant thing happening in that window. The lamp then does not display the current weather, it displays a short forecast ahea. The list is checked top to bottom and the first match wins:

thunder > snow/hail/sleet > pouring > rain > wind > fog > cloudy > partly cloudy > clear night > sunny

ConditionHA labelWLED effectColours (fg / bg)Speed
Thunderlightning, lightning-rainyLightning violet on deep purple180
Snowsnowy, snowy-rainy, hailTwinklefox white on navy60
PouringpouringRain deep blue, fast220
RainrainyRain blue, slower110
Windwindy, windy-variantRunning teal200
FogfogBreathe grey30
CloudycloudyCandle Multi, "Cloud" palette WLED's cloud blues and whites, flickering60
Partly cloudypartlycloudyFade sun fading to cloud15
Clear nightclear-nightTwinkle stars40
SunnysunnySolid amber-
Error/out of listexceptional, any non-match.Blink slow red blink60
Animated stand-ins for each glance look: sunny amber, partly cloudy fade, twinkling clear night, drifting clouds, fog breathing, falling rain and pouring streaks, running wind, snow twinkles and lightning flashes
Each look as an animation. These are simplified stand-ins with the same colours and rough speeds, not the lamp's own WLED effects.

Temperature flashes

I set mine to flash one of these colors to represent whether the forecast says it'll get warmer, colder, or not change.

It follows where the temperature heads next. Over the next 8 hours, the first hour that's 3 °F or more away from now sets the colour: the climb to the next peak or the drop to the next trough. Smaller wiggles count as the same.

Blending this into the background:

Changing the style previews it on the lamp. How often it plays is a setting too, from 0-60 minutes.

Home Assistant integration

Install it from HACS as a custom repository (TLMcNulty/wled-weather-beacon, type Integration), restart Home Assistant, then add WLED Weather Beacon under Settings, Devices & services. Setup asks for three things: the lamp's address, a weather entity with an hourly forecast, and the forecast window.

You get a device with:

If the lamp gets a new IP address, the integration follows it (WLED announces itself on the network, matched by MAC address). If the lamp loses power, the beacon repaints the look once it's back.

Changelog

Additional references: