# Opening shutter Schedule

**URL:** <https://discourse.nodered.org/t/opening-shutter-schedule/13151>\
**Category:** General\
**Created:** [11 July 2019 07:20 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151 "2019-07-11T07:20:09Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![aabbas](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Post date:** [11 July 2019 07:20 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/1 "2019-07-11T07:20:09Z")

</div>

Hi,  
I want to create an opening schedule for my home shutters. I am using light scheduler node for open and close but I am trying to open my shutters at half between 9h and 12h. I am searching a function to change the msg payload to 0.5 between the 2 hours.  
Could you help me please.  
Thank you

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [11 July 2019 07:37 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/2 "2019-07-11T07:37:38Z")

</div>

the change node ?  
What does your shutter require as input ?

---

<div class="post-metadata">

**Author:** ![aabbas](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Post date:** [11 July 2019 07:40 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/3 "2019-07-11T07:40:49Z")

</div>

boolean payload: for opening true and for close false

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [11 July 2019 07:42 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/4 "2019-07-11T07:42:06Z")

</div>

If it’s boolean what do you plan to send for half??

---

<div class="post-metadata">

**Author:** ![aabbas](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Post date:** [11 July 2019 07:45 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/5 "2019-07-11T07:45:31Z")

</div>

There is other way to open and close it by using 0...1 interval

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [11 July 2019 07:50 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/6 "2019-07-11T07:50:13Z")

</div>

That might have been the one to mention last time 🙂

As @bakman2 said the change node will do what you want.

---

<div class="post-metadata">

**Author:** ![aabbas](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Post date:** [11 July 2019 07:52 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/7 "2019-07-11T07:52:19Z")

</div>

ok thank you but my question is how can I change the msg payload to 0.5 for example only between 9h and 12h

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [11 July 2019 07:53 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/8 "2019-07-11T07:53:48Z")

</div>

> [@aabbas](#):
>
> I am trying to open my shutters at half
> 
> boolean: true/false

Unless you know how to apply quantum mechanics, there is no way.  
But if you shutters accept 0.5 then sure a change node

payload -\> change node - \> shutter.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 July 2019 07:54 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/9 "2019-07-11T07:54:59Z")

</div>

I would suggest two schedulers

---

<div class="post-metadata">

**Author:** ![aabbas](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Post date:** [11 July 2019 07:57 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/11 "2019-07-11T07:57:52Z")

</div>

ok thank you but my question is how can I change the msg payload to 0.5 for example only between 9h and 12h

---

<div class="post-metadata">

**Author:** ![aabbas](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Post date:** [11 July 2019 07:58 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/12 "2019-07-11T07:58:59Z")

</div>

I tried it but the shutters didn't stop to open at half and close

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [11 July 2019 08:01 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/13 "2019-07-11T08:01:42Z")

</div>

What shutters are they and what api documentation is available ?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [11 July 2019 08:08 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/14 "2019-07-11T08:08:03Z")

</div>

Check with a debug node that the payload is what you wanted.

---

<div class="post-metadata">

**Author:** ![aabbas](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Post date:** [12 July 2019 06:52 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/15 "2019-07-12T06:52:33Z")

</div>

No 😕  
I think with a function or switch node I define 2 hours like between 9h and 11 h the msg payload becomes 0.5.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [12 July 2019 07:05 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/16 "2019-07-12T07:05:56Z")

</div>

So when you send 0.5 the shutters go halfway ?  
There is a language barrier here I believe.

---

<div class="post-metadata">

**Author:** ![aabbas](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Post date:** [12 July 2019 07:11 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/17 "2019-07-12T07:11:44Z")

</div>

I used KNX system for that  
Yes when I send 0.5 the shutters opened at half.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [12 July 2019 07:15 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/18 "2019-07-12T07:15:45Z")

</div>

So just like @dceejay recommended: 2 light schedulers.

 ![27](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/a5a104785e97dcf5d528a1a247e29d5bfac9ad36.jpeg)

Note that you have to change the type from string to number.

---

<div class="post-metadata">

**Author:** ![aabbas](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Post date:** [12 July 2019 07:34 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/19 "2019-07-12T07:34:17Z")

</div>

And how can I fixe the 2 hours?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [12 July 2019 07:42 UTC](https://discourse.nodered.org/t/opening-shutter-schedule/13151/20 "2019-07-12T07:42:54Z")

</div>

there are several ways.  
Inject 0.5 at your start time  
inject a different value at your end time…

Or use a node that will send one value (0.5) at your start time and will then wait for a specified time before sending a different value (there’s one in the pre-installed nodes which you can find)
