Every outdoor light theme at my house is a calendar entry. Halloween, fall, Chiefs game days, the Fourth of July and Christmas each have a name on a Google Calendar, and at sunset Home Assistant reads that name and switches the whole yard over. If half the lights are in the garage for the season, the theme still runs on whatever’s plugged in.
TL;DR: govee2mqtt brings every Govee light and its DIY presets into Home Assistant. Each theme is a Home Assistant script that sets every light to its own preset. A dropdown helper picks the script, and an automation 30 minutes before sunset sets the dropdown from whatever event is on the calendar. You build a theme once, and it comes back every year on the date you give it.
Nobody paid for this video or this post. I bought the Govee Curtain Lights Pro myself, and the rest of the Govee lights came from past Govee collaborations. I used an AI, specifically Claude, to make the first version of every GIF, write the Govee AI prompts and clean up some of my Home Assistant config. Everything below runs on my actual lights.
Why govee2mqtt
Back in 2023 I tested five ways to get Govee lights into Home Assistant. Now everything runs through one of them.
Home Assistant has a built-in local Govee integration now, and for on, off and color it’s fine. The problem is that my themes live in Govee’s DIY presets, and the built-in integration doesn’t bring those in. govee2mqtt, an open-source bridge by Wez Furlong, does. DIY and built-in presets show up as effects on each light entity, and every segment shows up as its own light. It also brings in DreamView groups, same-model groups and one-click buttons.
What you need
- Home Assistant OS or Supervised, so you can install apps (formerly called add-ons). If you run Docker instead, govee2mqtt also comes as a container. It doesn’t have to run on your Home Assistant box, it’s just easier that way.
- A Govee API key. In the Govee Home app, go to Settings, About Us, Apply for API Key. It comes by email and can take a while, so request it first.
- Your Govee account email and password.
- LAN Control turned on in the Govee app for each light that offers it. Lights without it still work. LAN is just faster and more reliable.
- An MQTT broker, like the Mosquitto Broker app.
Install it
- In Home Assistant, go to Settings, Apps, Install app. Open the three-dot menu in the top right, choose Repositories, and add
https://github.com/wez/govee2mqtt. - Go back, scroll down to govee2mqtt Bridge and install it.
- Open its Configuration tab and turn on “Show unused optional configuration options.” Set your temperature scale, then enter your Govee email, password and API key. If you use the Mosquitto app, leave the MQTT broker host name blank and Home Assistant handles it.
- Save, go back to the Info tab, click Start, and check the Log tab to make sure it starts cleanly.
If you already run the Govee cloud integration, disable it first (three dots next to it, Disable). It conflicts with the bridge, and I got an error every time govee2mqtt started until I turned it off. You can always turn it back on later.
Give it a minute to scan. Each light shows up as a normal light entity for brightness and color, and the Effects list holds every DIY preset from the Govee app plus Govee’s built-in effects. The preset I use behind me when I record is right there in the list.
What isn’t local
Presets go through Govee’s cloud using your API key, even on a light set up for LAN control. Some lights, like my curtain, net and column lights, only respond through the cloud at all. The govee2mqtt web page shows how each device is connected: LAN API (direct), Platform API (your API key) or AWS IoT API (your username and password). That’s why it asks for all three.
So this isn’t fully local, and when Govee changes something on their end, things can break. That happened to me while I was making this video. Still, it took about ten minutes of clicking for every Govee light I own to show up with its presets.
Building a theme: Wizarding Winter
In past years I built themes from whatever I found in the shared area of the Govee app, like last year’s Wicked preset. That works until you can’t find exactly what you want. This year’s new theme is Wizarding Winter. The new Harry Potter series starts on HBO on Christmas Day, and my wife loves Harry Potter, so it was a good excuse.
The approach is to start with a palette, not a picture. Every light in the yard pulls from the same colors, and that’s what makes a dozen different lights read as one theme. The matrix lights (curtains and net lights) get GIFs built at each light’s actual grid size. Everything else gets a written prompt for Govee’s AI lighting tool, one per light type.
One note before you copy this: most AI tools, Claude and ChatGPT included, won’t generate copyrighted images. If you want something specific, check the shared space in the Govee app or make your own GIF and import it. My prompt asks for original designs only.
The prompt
Here’s the prompt I gave Claude, lightly edited so it works without my notes. Swap in your own lights. Give it the exact list. You don’t need to look up grid sizes, because most AI tools will find them, but I’ve left mine in as an example.
Build a new outdoor Govee theme called "Wizarding Winter" for my front-of-house lights.
MY LIGHTS
[List every light: model, where it's mounted, and how many panels]
CONCEPT
A cozy, magical winter night. Inspired by the wizarding genre, but every design must be original: no Harry Potter characters, house crests, logos, the Snitch, lightning bolts, Hogwarts' recognizable silhouette, or a white owl carrying letters. Generic castles, owls, candles, stars and snow only.
PALETTE (use these exact hex values everywhere)
- Scarlet #B3121F / Gold #F0B323
- Green #1A6B3C / Silver #C8CDD2
- Blue #1F3F8C / Bronze #B0773D
- Yellow #F2C230 / Charcoal: use dark gaps (LED off) instead of black
- Winter base: Ice white #E8F1FF, Night blue #0B1A3A (keep very dim)
Black (#000000) = LED off. Never use black as a color.
GIFS (matrix lights), one per light at its native grid:
- Curtain Lights Pro, front window, 30x32, cap 2000 KB: a castle silhouette of your own design under falling snow. Its windows glow and slowly cycle through the four color pairs.
- Curtain Lights 2 3-panel, large garage door, 60x26 plus three 20x26 panel slices, cap 200 KB: owls (brown/grey, several) gliding left to right across a snowy night sky, with a dim snowy ground row.
- Curtain Lights 2 1-panel, small garage door, 20x26, cap 200 KB: floating candles drifting up and down with flickering warm flames, with gentle snow behind them.
- Net Lights, 40x12 (H6811) and 20x12 (H6810): falling snow with occasional sparkles in the palette colors.
Rules: seamless loops (every motion completes a whole number of cycles per loop), around 80 ms per frame, background near-off, every file under its cap. Also make one combined preview GIF of all the lights.
AI PROMPTS (non-matrix lights), one short prompt per light type for Govee's AI lighting tool, using only the palette colors:
- Permanent Outdoor Lights Gen 1 (roofline): slow, dim drift. Keep it dim because these flicker when bright.
- Pathway Lights Gen 1 and 2
- Christmas String Lights 2 on the front columns
- Wall lights
- Up lights / spotlights
- Ground lights
Give each prompt plus a fallback: the hex colors and the motion to use if I have to build the DIY by hand because Govee's AI adds off-palette colors.
DELIVER
1. All GIFs, named by light and grid (e.g. front_window_curtain_pro_30x32_wizarding.gif), plus the preview.
2. A table: light -> file or prompt -> fallback DIY colors/motion.
Claude takes a couple of minutes and comes back with the GIFs and a list of what to do with each one. If you don’t like a result, give it specific feedback and it usually fixes it. The GIFs also loop without a jump, which matters a lot on a curtain light. Mine came back as snow falling over a castle on the front window, owls crossing the big garage door and candles floating on the small one. I tweaked a few and made some of my own from there.
One limit I found the hard way: the Curtain Lights 2 caps GIF uploads at 200 KB, so those GIFs have to stay short and simple. The prompts covered everything else: path lights, the Christmas String Lights 2 on my columns, the wall lights, and the roofline, which is my first-generation Permanent Outdoor Lights.
Getting it into the Govee app and Home Assistant
Each curtain light has a GIF option in DIY. Download the GIF to your phone, upload it there, and save it with a name you’ll recognize later. You only need one per set of identical lights. Same model with the same number of panels can share it. My curtains are different styles and panel counts, so each one got its own.
New effects don’t show up in Home Assistant right away. Sometimes it takes 15 to 20 minutes, and it doesn’t refresh on its own. To force it:
- Open the MQTT integration’s device list and find the govee2mqtt entry.
- Press Purge Caches.
- Restart the govee2mqtt app and give it a few minutes. If the effect still isn’t there, wait another 15 minutes and repeat.
What broke, and why I use scripts now
This part wasn’t planned. My themes used to run as Govee one-clicks: you build the whole theme in the Govee app as one shortcut, and govee2mqtt exposed it in Home Assistant as one button. The week I made this video, every one of them stopped working. Govee changed something on their end, and govee2mqtt hasn’t had a release since March, so I’m not counting on a quick fix.
So every theme is now a Home Assistant script that sets each light to its preset, one step at a time. It doesn’t depend on Govee’s one-click system, and it gives you more control. You can set brightness per light, which I need because my older permanent lights flicker above about 45%.
The catch is that a script stops at its first error by default. One unplugged light and nothing after it changes. The fix is to turn on Continue on error for every step, so a light that fails is skipped and the script keeps going.
To build one, go to Settings, Automations & scenes, Scripts, and create a new script. Add a Light: Turn on action for each light or group of identical lights (my two wall lights share a step), set the brightness, pick the effect from the dropdown and turn on Continue on error. Pick effects from the dropdown instead of typing them, because some names have odd characters you can’t see. Here’s my Wizarding Winter script:
alias: Front - Wizard Winter
sequence:
- action: light.turn_on
target:
entity_id:
- light.south_wall_light
- light.north_wall_light
data:
brightness_pct: 60
effect: dim winter snow
continue_on_error: true
- action: light.turn_on
target:
entity_id: light.north_column_lights
data:
brightness_pct: 60
effect: Left house bands
continue_on_error: true
- action: light.turn_on
target:
entity_id: light.south_column_lights
data:
brightness_pct: 60
effect: Right house bands
continue_on_error: true
- action: light.turn_on
target:
entity_id:
- light.north_path_lights
- light.south_path_lights
data:
brightness_pct: 50
effect: Warm candle
continue_on_error: true
- action: light.turn_on
target:
entity_id: light.permanent_outdoor_lights
data:
brightness_pct: 25
effect: dim winter snow
continue_on_error: true
- action: light.turn_on
target:
entity_id: light.holiday_lights_curtain_lights_pro
data:
brightness_pct: 75
effect: Castle
continue_on_error: true
- action: light.turn_on
target:
entity_id: light.large_curtain_lights
data:
brightness_pct: 75
effect: Golden Trio
continue_on_error: true
- action: light.turn_on
target:
entity_id: light.small_curtain_lights
data:
brightness_pct: 75
effect: Floating Candles
continue_on_error: true
I’d also make an “all off” script: one Light: Turn off action targeting all the same lights. That gives you a single thing to call when you want the yard dark.
There are two tradeoffs. Cloud-only lights change a second or two apart instead of all at once, which is fine for most people. And every step uses part of Govee’s daily API limit. Most people won’t hit it, but with a lot of lights and a lot of changes you can get locked out for the rest of the day, so don’t run these every minute.
Making it run itself
This is the part that makes it a year-round setup. It’s three pieces, and none of them are complicated.
1. A dropdown with one option per theme
In Home Assistant this is a helper: Settings, Devices & services, Helpers, Create helper, Dropdown. I called mine Front Yard Mode. Add one option for every theme script (Fall, Witchy, Wizard Winter and so on), plus one for Off. Spell each option exactly the way you’ll type it on the calendar, capitals included. That matters in a minute.
2. An automation that watches the dropdown
When the dropdown changes, a Choose block checks which option is selected and runs that theme’s script. Each theme gets one branch, so a new theme means one new option and one new branch. Mine has a branch for every theme. Here it is trimmed to three:
alias: Select - Front Yard Mode
triggers:
- trigger: state
entity_id: input_select.front_yard_mode
actions:
- choose:
- conditions:
- condition: state
entity_id: input_select.front_yard_mode
state: "OFF"
sequence:
- action: script.front_yard_outside_off
- conditions:
- condition: state
entity_id: input_select.front_yard_mode
state: Fall
sequence:
- action: script.front_yard_fall
- conditions:
- condition: state
entity_id: input_select.front_yard_mode
state: Wizard Winter
sequence:
- action: script.front_wizard_winter
mode: single
3. A calendar for the schedule
I made a separate Google Calendar called Outdoor lights and connected it to Home Assistant with the Google Calendar integration. Any calendar integration works. The event title is the theme name from the dropdown, and that’s the whole trick. Add an all-day event called Wizard Winter and that’s what runs that night. Multi-day events work too, so one Fall event covers weeks. New events can take a few minutes to sync.
Keep events from overlapping. Home Assistant only sees one calendar event at a time, so if two overlap it picks one, and it may not be the one you want.
Tying it together at sunset
One more automation connects the calendar to the dropdown. Thirty minutes before sunset it waits a minute to give the Govee lights time to connect, reads the current event on the Outdoor lights calendar, and sets the dropdown to that title. If there’s no event, or the title doesn’t match an option, it falls back to Dim, which is my landscape lights at about 50% warm white. That way a typo doesn’t leave the yard stuck on last week’s theme.
alias: Front Yard – Set Mode From Calendar at Sunset
triggers:
- trigger: sun
event: sunset
offset: "-00:30:00"
actions:
- alias: Give Govee lights time to reconnect
delay:
minutes: 1
- variables:
mode_name: "{% set opts = state_attr('input_select.front_yard_mode','options') or [] %}{% set name = (state_attr('calendar.outdoor_lights','message') or '') | trim if is_state('calendar.outdoor_lights','on') else '' %}{{ name if name in opts else 'Dim' }}"
- alias: Set front yard mode
action: input_select.select_option
target:
entity_id: input_select.front_yard_mode
data:
option: "{{ mode_name }}"
mode: single
Change calendar.outdoor_lights to your calendar’s entity, and adjust the offset if the lights come on too early. I also have a second automation at 11 PM that sets the dropdown to Off, so the yard isn’t still blinking at 2 a.m.
Because every script step has Continue on error turned on, lights that are unplugged get skipped. When the curtains come down in January, the theme keeps running on everything else. And since it’s a Google Calendar, I can change tonight’s theme from my phone anywhere, and the house picks it up at sunset.
Who should bother
If you already run Home Assistant and have more than a few Govee lights outside, or anywhere in the house, this is worth an evening. You get themes you can change from anywhere, and things the Govee app can’t do on its own. On Christmas Eve and Christmas Day I have mine cycle through all the Christmas themes every 15 minutes, and the neighborhood kids love it.
If you just want your lights on a schedule, skip all of this. The Govee app already does that.
What’s next
Now that Thanksgiving is over, Wizarding Winter goes into the nightly rotation. All it took was one calendar entry. Which theme should I build next? Let me know in the comments on the video.
If you want your lights to react to the game and not just the date, my sports automation video still holds up. Just use govee2mqtt in place of the integration I recommended back then. The same method works today.
