# Match outside conditions?

**URL:** <https://wled.discourse.group/t/match-outside-conditions/12556>\
**Category:** Questions\
**Created:** [September 2, 2024, 7:10pm UTC](https://wled.discourse.group/t/match-outside-conditions/12556 "2024-09-02T19:10:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathjon](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jonathjon](https://wled.discourse.group/u/jonathjon)\
**Post date:** [September 2, 2024, 7:10pm UTC](https://wled.discourse.group/t/match-outside-conditions/12556/1 "2024-09-02T19:10:03Z")

</div>

I’m sure my title isn’t even close to what I am trying to find out, but I honestly don’t even know what to call it. Hopefully my description will help

I have a basement room with no windows at all where my computer and 3d printers are set up. I spend a good bit of time in there working on different projects. What I would like to do is run a strip of LEDs around the top of the room and have WLED control them to match outside conditions. If it’s night time display “night” colors. If it’s bright show that. If it’s cloudy/raining/whatever. Just some kind of display. Hopefully that makes some kind of sense lol. I have no idea how to even google or search the forum for this seeing as how I don’t even have a clue of what to call it. Any help would be greatly appreciated! Thank you!

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [September 2, 2024, 10:09pm UTC](https://wled.discourse.group/t/match-outside-conditions/12556/2 "2024-09-02T22:09:23Z")

</div>

There is a usermod that allows you to add a “BH1750 ambient light sensor”.  
That could give you an idea of whether it’s dark or bright outside.  
Tying in some other weather info might give you something to work with.

The ultimate would be to link in Home Assistant, read live weather info for your area and use it to trigger presets on your WLED module.

---

<div class="post-metadata">

**Author:** ![jonathjon](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jonathjon](https://wled.discourse.group/u/jonathjon)\
**Post date:** [September 2, 2024, 10:29pm UTC](https://wled.discourse.group/t/match-outside-conditions/12556/3 "2024-09-02T22:29:13Z")

</div>

I do run Home Assistant already so that would be a possibility. But I have no idea where to even start with anything like that. Do you have any links to some kind of guide for anything? Or just some pointers on which direction to head?

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [September 2, 2024, 10:33pm UTC](https://wled.discourse.group/t/match-outside-conditions/12556/4 "2024-09-02T22:33:48Z")

</div>

I’d start with the KB: [Home Automation](https://kno.wled.ge/advanced/home-automation/)

More recent versions of WLED should be recognized by your Home Assistant if WLED is on the same subnet.

---

<div class="post-metadata">

**Author:** ![jonathjon](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jonathjon](https://wled.discourse.group/u/jonathjon)\
**Post date:** [September 2, 2024, 10:53pm UTC](https://wled.discourse.group/t/match-outside-conditions/12556/5 "2024-09-02T22:53:24Z")

</div>

Ok thanks! I have had HA find it every time I have set up WLED so I think I have that part of it. And I have set up automations with it before. But as far as getting it to set color based on weather/outside conditions I am at a complete loss

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [September 2, 2024, 10:57pm UTC](https://wled.discourse.group/t/match-outside-conditions/12556/6 "2024-09-02T22:57:51Z")

</div>

A very crude method might be to create 4-6 Presets of what conditions you’d like to “display”.

Super-yellow for Sunny,  
Dim white with blue sparkles for rain in the day,  
Black with blue sparkles for rain at night,

Etc,etc,etc.

When HA hits some events from your weather connection or time of day or - something else,  
You have it trigger one of those presets.

---

<div class="post-metadata">

**Author:** ![jonathjon](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jonathjon](https://wled.discourse.group/u/jonathjon)\
**Post date:** [September 2, 2024, 11:49pm UTC](https://wled.discourse.group/t/match-outside-conditions/12556/7 "2024-09-02T23:49:26Z")

</div>

Ok thank you. I will give that a try and see how it goes

---

<div class="post-metadata">

**Author:** ![snubbers](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@snubbers](https://wled.discourse.group/u/snubbers)\
**Post date:** [September 5, 2024, 11:00am UTC](https://wled.discourse.group/t/match-outside-conditions/12556/8 "2024-09-05T11:00:23Z")

</div>

I saw this thread and it’s a great idea, I would love to do this for some of the darker areas of the house…

I was looking at very inexpensive TCS34725FN based modules that can easily hook up to an Arduino etc (i2c interface) and so could get that information in to Home Assistant or similar and control various LED lighting around the house, those sensors do give RGB and intensity so might be perfect, I haven’t found one that is all packaged up and implments zigbee or other common IoT communications…

[edit] - Someones done this: [[TCS34725] DIY Outdoor illuminance and colortemperature (RGB) sensor - ESPHome - Home Assistant Community](https://community.home-assistant.io/t/tcs34725-diy-outdoor-illuminance-and-colortemperature-rgb-sensor/430300)
