# Create a shade and lighting schedule

**URL:** <https://discourse.ladybug.tools/t/create-a-shade-and-lighting-schedule/9346>\
**Category:** honeybee-legacy\
**Tags:** daylight, energy, shading\
**Created:** [April 13, 2020, 9:29pm UTC](https://discourse.ladybug.tools/t/create-a-shade-and-lighting-schedule/9346 "2020-04-13T21:29:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad.hakim.a](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mohammad.hakim.a/32/15578_2.png) [@Mohammad.hakim.a](https://discourse.ladybug.tools/u/Mohammad.hakim.a)\
**Post date:** [April 13, 2020, 9:29pm UTC](https://discourse.ladybug.tools/t/create-a-shade-and-lighting-schedule/9346/1 "2020-04-13T21:29:42Z")

</div>

Hello  
I want to simulate shading and energy along with the light schedule. I intend to use the EPWindowShades component, take a light analysis, and define the lighting schedule from the output so that my simulation depends on daylight. I want to do it befor the shading surface be independently connected to the HB \_ EPContextSrf component to get the energy output.  
But I don’t get any output from the component if set number 1 for number of shade.why?  
How can I create a lighting schedule based on daylight before simulating energy with shading surface?

I attached a simple file.

[W-Sh.gh](https://discourse.ladybug.tools/uploads/short-url/xKHkxsQfGsFGHPx4O8IRZEfqWA5.gh) (604.2 KB)

---

<div class="post-metadata">

**Author:** ![Nariman.Rafati](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/nariman.rafati/32/25224_2.png) [@Nariman.Rafati](https://discourse.ladybug.tools/u/Nariman.Rafati)\
**Post date:** [April 13, 2020, 11:23pm UTC](https://discourse.ladybug.tools/t/create-a-shade-and-lighting-schedule/9346/2 "2020-04-13T23:23:41Z")

</div>

Hi Mohammad  
I didn’t get the point but i guess you can check [Integrated Daylight and Energy simulation](http://hydrashare.github.io/hydra/viewer?owner=mostaphaRoudsari&fork=hydra_1&id=Integrated_Daylight_and_Energy_simulation&slide=0&scale=5.6568542494923815&offset=-2749.1344454824302,-1530.0335513711211), it may help you.

---

<div class="post-metadata">

**Author:** ![Mohammad.hakim.a](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mohammad.hakim.a/32/15578_2.png) [@Mohammad.hakim.a](https://discourse.ladybug.tools/u/Mohammad.hakim.a)\
**Post date:** [April 14, 2020, 8:32am UTC](https://discourse.ladybug.tools/t/create-a-shade-and-lighting-schedule/9346/3 "2020-04-14T08:32:24Z")

</div>

@Nariman.Rafati

Hello  
I want to use exactly the same method, but before producing the light schedule, I want to use shades and then produce the lighting schedule and get the energy output.

---

<div class="post-metadata">

**Author:** ![AMIRTABADKANI](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/amirtabadkani/32/155_2.png) [@AMIRTABADKANI](https://discourse.ladybug.tools/u/AMIRTABADKANI)\
**Post date:** [April 14, 2020, 8:58am UTC](https://discourse.ladybug.tools/t/create-a-shade-and-lighting-schedule/9346/4 "2020-04-14T08:58:09Z")

</div>

@Mohammad.hakim.a

By default, when you assign any shading control, Honeybee calculates the indoor illuminance in the center of the zone as a reference point that works with the Daylight:Control object of the E+.

So, you dont need to do anything actually, since HB overrides the lighting schedule fractions when a shading control is implemented; however, there are some limitations within HB like the number of reference points, in which you can override and customize your own setting by using additional strings which makes it a bit complicated but it is possible.

---

<div class="post-metadata">

**Author:** ![Mohammad.hakim.a](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mohammad.hakim.a/32/15578_2.png) [@Mohammad.hakim.a](https://discourse.ladybug.tools/u/Mohammad.hakim.a)\
**Post date:** [April 14, 2020, 10:56am UTC](https://discourse.ladybug.tools/t/create-a-shade-and-lighting-schedule/9346/5 "2020-04-14T10:56:12Z")

</div>

@AMIRTABADKANI

Thank you very much for your reply  
The problem is that if I set a schedule manually or by default for artificial lighting, the final lighting consumption is fixed by changing the size of the window and the number of shades.But if I take a light analysis and generate a lighting schedule related to daylight, the final lighting consumption will eventually vary.

---

<div class="post-metadata">

**Author:** ![Mohammad.hakim.a](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mohammad.hakim.a/32/15578_2.png) [@Mohammad.hakim.a](https://discourse.ladybug.tools/u/Mohammad.hakim.a)\
**Post date:** [April 14, 2020, 6:33pm UTC](https://discourse.ladybug.tools/t/create-a-shade-and-lighting-schedule/9346/6 "2020-04-14T18:33:32Z")

</div>

To solve this problem, if I use shadowBreps output directly for daylight analysis, the problem will be solved.

---

<div class="post-metadata">

**Author:** ![zhenzhoulai](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/z/46a35a/32.png) [@zhenzhoulai](https://discourse.ladybug.tools/u/zhenzhoulai)\
**Post date:** [February 3, 2021, 9:16am UTC](https://discourse.ladybug.tools/t/create-a-shade-and-lighting-schedule/9346/7 "2021-02-03T09:16:59Z")

</div>

Hi Mohammad，  
I had the same problem, I also want to make my shading affect my lighting schedule, but I don’t know where you said the shadow Breps is directly connected to daylight analysis  
thank you very much！

---

<div class="post-metadata">

**Author:** ![Mohammad.hakim.a](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mohammad.hakim.a/32/15578_2.png) [@Mohammad.hakim.a](https://discourse.ladybug.tools/u/Mohammad.hakim.a)\
**Post date:** [February 14, 2021, 10:27am UTC](https://discourse.ladybug.tools/t/create-a-shade-and-lighting-schedule/9346/8 "2021-02-14T10:27:53Z")

</div>

Hello @zhenzhoulai  
sorry, I will answer you late.  
You can use this sample file to Integrated Daylight and Energy simulation:  
[Integrated Daylight and Energy simulation](http://hydrashare.github.io/hydra/viewer?owner=mostaphaRoudsari&fork=hydra_1&id=Integrated_Daylight_and_Energy_simulation&slide=0&scale=1&offset=0,0)
