# Somfy Rollershutter and Homekit beginner need help

**URL:** <https://discourse.nodered.org/t/somfy-rollershutter-and-homekit-beginner-need-help/27909>\
**Category:** General\
**Created:** [6 June 2020 18:30 UTC](https://discourse.nodered.org/t/somfy-rollershutter-and-homekit-beginner-need-help/27909 "2020-06-06T18:30:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewok21](https://avatars.discourse-cdn.com/v4/letter/e/53a042/32.png) [@ewok21](https://discourse.nodered.org/u/ewok21)\
**Post date:** [6 June 2020 18:30 UTC](https://discourse.nodered.org/t/somfy-rollershutter-and-homekit-beginner-need-help/27909/1 "2020-06-06T18:30:16Z")

</div>

Hi all

I am a beginner in node red and need help with my somfy rollershutter and homekit.

Homekit send:  
msg.payload : Object  
object  
TargetPosition: 50

and Somfy need:  
msg.payload : Object  
{ action: "customPosition", position: 50 }

I think i need a function to convert the value.

unfortunately I'm still brand new and would need a little help with it

---

<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:** [6 June 2020 19:34 UTC](https://discourse.nodered.org/t/somfy-rollershutter-and-homekit-beginner-need-help/27909/2 "2020-06-06T19:34:00Z")

</div>

This is the core of node red. So I would [recommend to learn about messages](https://nodered.org/docs/user-guide/messages) as per documentation.

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [7 June 2020 05:22 UTC](https://discourse.nodered.org/t/somfy-rollershutter-and-homekit-beginner-need-help/27909/3 "2020-06-07T05:22:24Z")

</div>

@ewok21  
This is an excellent beginner case. To begin you could configure a principle flow like:  
message from HomeKit -----\> Change node where you configure the message properties -----\> To Somfy node

1. In the message from Homekit you get the data you need, position 50, but the message object is not structured so you can use it directly to send it to Somfy

2. Using the Change node you can create the necessary message properties that is required by the Somfy node

Then share your flow (use export function) here and describe what nodes you are using to get more and better help

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 August 2020 05:22 UTC](https://discourse.nodered.org/t/somfy-rollershutter-and-homekit-beginner-need-help/27909/4 "2020-08-06T05:22:24Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
