# Master slave setup with two conditions

**URL:** <https://discourse.nodered.org/t/master-slave-setup-with-two-conditions/38285>\
**Category:** General\
**Created:** [30 December 2020 13:03 UTC](https://discourse.nodered.org/t/master-slave-setup-with-two-conditions/38285 "2020-12-30T13:03:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [30 December 2020 14:34 UTC](https://discourse.nodered.org/t/master-slave-setup-with-two-conditions/38285/2 "2020-12-30T14:34:52Z")

</div>

Hi and welcome.

It would be best to export your flow so others can see it. Others may not have zigbee or tplink, so best to add inject nodes holding the output from the devices (i.e the on/off output , captured by a debug node )and the format and values of the input to controll the socket. The more info you can give the easier it is to help. Remember images are ok to see, but text is better as it can be copied and pasted easily.

also when adding code best to follow instructions here so code is no corrupted

> [@How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506/8):
>
> @dclear thanks - have updated the guidance to match

---

_[View the full topic](https://discourse.nodered.org/t/master-slave-setup-with-two-conditions/38285)._
