# Window group states and sensor

**URL:** <https://discourse.ladybug.tools/t/window-group-states-and-sensor/4252>\
**Category:** honeybee\[+\]\
**Tags:** window-shade\
**Created:** [October 28, 2018, 4:58pm UTC](https://discourse.ladybug.tools/t/window-group-states-and-sensor/4252 "2018-10-28T16:58:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xiufang](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/xiufang/32/9486_2.png) [@Xiufang](https://discourse.ladybug.tools/u/Xiufang)\
**Post date:** [October 28, 2018, 4:58pm UTC](https://discourse.ladybug.tools/t/window-group-states-and-sensor/4252/1 "2018-10-28T16:58:11Z")

</div>

Dear all,

I have a quick question about window group states and sensor: in Honeybee [+] we can use 1 sensor (from analysis grid) to control multiple window groups. But can we have multiple sensor to control multiple window groups? Sensor 1 reading controls Window Group 1, Sensor 2 reading controls Window Group 2, etc.?

For example for a huge rectangle floor plan, there are 4 window groups (one on each side E W N S) with shade at 2 states (shade down, shade up). The goal is no direct sun light can hit the window at any time. If we place 1 sensor on each perimeter mid point inside of the glass, and define illu\>5000 lux as “direct sunlight hits the sensor”, ideally East sensor can pull the East shade down if its reading exceeds 5000, same for the other 3 directions. East sensor reading can not affect the control of West North South shades. Is this feasible in simulation?

Thanks!  
Best,  
Xiufang

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [October 29, 2018, 3:59am UTC](https://discourse.ladybug.tools/t/window-group-states-and-sensor/4252/2 "2018-10-29T03:59:24Z")

</div>

Hi @Xiufang,

If I understand your problem correctly your study is a one to one relationship between each sensor and each window. In such cases you can get the values for each sensor separately and then generate the blind states using _larger than_ and _smaller than_ components. Afterwards you can put them back together to generate the final blind schedule combination.

---

<div class="post-metadata">

**Author:** ![Xiufang](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/xiufang/32/9486_2.png) [@Xiufang](https://discourse.ladybug.tools/u/Xiufang)\
**Post date:** [October 29, 2018, 5:05am UTC](https://discourse.ladybug.tools/t/window-group-states-and-sensor/4252/3 "2018-10-29T05:05:16Z")

</div>

Thanks @mostapha! Yes your understanding is right, it is a one to one relationship between sensor and each window. So I can get sensor - set logic - get blind states for each sensor/shade, and then connect 4 blind states all together to annualMetrics to read the final combined blind effect on annual reading?

If so I will test and report back here. Thanks!

Best,  
Xiufang

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [October 29, 2018, 1:30pm UTC](https://discourse.ladybug.tools/t/window-group-states-and-sensor/4252/4 "2018-10-29T13:30:53Z")

</div>

Yes. But you need to merge 4 blindstates into a single tuple so annual metrics can parse it correctly. You can use text format or concatenate component for that purpose.
