# Connecting a Fibaro Motion Detector to a Fibaro Switch

**URL:** <https://community.homey.app/t/connecting-a-fibaro-motion-detector-to-a-fibaro-switch/90679>\
**Category:** Devices\
**Created:** [October 1, 2023, 1:54pm UTC](https://community.homey.app/t/connecting-a-fibaro-motion-detector-to-a-fibaro-switch/90679 "2023-10-01T13:54:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan-Bart\_van\_Beek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan-bart_van_beek/32/77947_2.png) [@Jan-Bart\_van\_Beek](https://community.homey.app/u/Jan-Bart_van_Beek)\
**Post date:** [October 1, 2023, 1:54pm UTC](https://community.homey.app/t/connecting-a-fibaro-motion-detector-to-a-fibaro-switch/90679/1 "2023-10-01T13:54:07Z")

</div>

Heyhey,

Homey seems to be a bit slow sometimes with turning on the lights based on the motion detectors when using a flow.

I’m trying to directly associate Fibaro Motion Detector (FGMS-001) to a Fibaro Single Switch 2 (FGS-213).

Has anybody been able to that ?

Jan-Bart

---

<div class="post-metadata">

**Author:** ![Heini\_Withagen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heini_withagen/32/172308_2.png) [@Heini\_Withagen](https://community.homey.app/u/Heini_Withagen)\
**Post date:** [September 4, 2026, 1:21pm UTC](https://community.homey.app/t/connecting-a-fibaro-motion-detector-to-a-fibaro-switch/90679/2 "2026-09-04T13:21:47Z")

</div>

I saw your message on the associations between the motion sensor and a switch. Have you been able to get it working ?

---

<div class="post-metadata">

**Author:** ![Heini\_Withagen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heini_withagen/32/172308_2.png) [@Heini\_Withagen](https://community.homey.app/u/Heini_Withagen)\
**Post date:** [September 4, 2026, 2:40pm UTC](https://community.homey.app/t/connecting-a-fibaro-motion-detector-to-a-fibaro-switch/90679/3 "2026-09-04T14:40:42Z")

</div>

Hi, just a quick note. After some debugging and help from Claude, I found the solution. Through the regular interface, the associations don’t seem to get properly set.

In the Develop portal you can send RAW data to the Z-wave network and through that I’ve reliably set the right associations.

These are the commands to send:  
**Read a group** : `NODE_ID,0x85,0x02,GROUP_ID`  
**Add a node to a group** : `NODE_ID,0x85,0x01,GROUP_ID,TARGET_NODE_ID`  
**Remove a node from a group** : `NODE_ID,0x85,0x04,GROUP_ID,TARGET_NODE_ID`

NODE\_ID, GROUP\_ID and TARGET\_NODE\_ID are regular numbers (1,2,3..) and correspond to the ID’s of the Fibaro-nodes (visible in the Devices-overview)
