# Heimdall how to link K2000/Binary switch to surveillance mode?

**URL:** <https://community.homey.app/t/heimdall-how-to-link-k2000-binary-switch-to-surveillance-mode/10878>\
**Category:** Questions & Help\
**Created:** [March 21, 2019, 10:57am UTC](https://community.homey.app/t/heimdall-how-to-link-k2000-binary-switch-to-surveillance-mode/10878 "2019-03-21T10:57:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Horizon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mr_horizon/32/8322_2.png) [@Mr\_Horizon](https://community.homey.app/u/Mr_Horizon)\
**Post date:** [March 21, 2019, 10:57am UTC](https://community.homey.app/t/heimdall-how-to-link-k2000-binary-switch-to-surveillance-mode/10878/1 "2019-03-21T10:57:19Z")

</div>

Hi, I managed to setup the combi of K2000 and fibaro binary switch incl. setting up some tokens.  
But now I am struggling to find out how to use the RFID trigger via the fibaro switch to the surveillance mode device which I have added in the homey app.  
With an activated key I can get the ok signal with the K2000 and this I have in a flow linked to changing the surveillance mode. That works as well. But how to deal with what mode to select? Is it a case of: if the state is active and a trigger from the K2000 comes then change it to deactivated and vice versa?  
Hope my question makes sense, at least it is clear that I am struggling 🤪  
Current first attempt of flow:

 ![13](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/1/1201a6944ebeaa1cf66be9feced16f7df0991808.png)
