# Conflict in node

**URL:** <https://discourse.nodered.org/t/conflict-in-node/67937>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [19 September 2022 19:27 UTC](https://discourse.nodered.org/t/conflict-in-node/67937 "2022-09-19T19:27:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![droneman83](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/droneman83/32/85519_2.png) [@droneman83](https://discourse.nodered.org/u/droneman83)\
**Post date:** [19 September 2022 19:27 UTC](https://discourse.nodered.org/t/conflict-in-node/67937/1 "2022-09-19T19:27:57Z")

</div>

![boolean](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/a/7ae9db46fbe4e9a1ea2fa7b6db8625aed1507f79.jpeg)  
I have a small issue where i have a conflict, i need to sllep sometimes during the day. so i need my ikea coveres to stay down when needet, but when the temperatur is below 15 i have set my covers to stay oppen to have all the light come inside.

I have setup at boolean sleep in HA to call from (dont know if needet but is is there 🙂 )

I have setup a push botton for having next to the bed to activate the boolean on

the flow is working from tempratur sensor belove when the 2 first nodes are not atach

So my issues is the 2 first flows, i have not been working with booleans before

later on i like to attach a boolean on the other flow where when it is warm out side the Altan cover open when i push another button. but that is secondarie, there is a long time for next summer in Denmark

---

<div class="post-metadata">

**Author:** ![Frida](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/frida/32/68250_2.png) [@Frida](https://discourse.nodered.org/u/Frida)\
**Post date:** [21 September 2022 13:37 UTC](https://discourse.nodered.org/t/conflict-in-node/67937/2 "2022-09-21T13:37:23Z")

</div>

I don't have HA so here's something you might be able to use.

```auto
[{"id":"e01567e75ae119f8","type":"time-range-switch","z":"1ba2a6c27c67e0d8","name":"","lat":"53.13405","lon":"6.56995","startTime":"9:30","endTime":"19:00","startOffset":0,"endOffset":0,"x":450,"y":140,"wires":[[],[]]},{"id":"83e9b4192c943371","type":"inject","z":"1ba2a6c27c67e0d8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false","payloadType":"str","x":90,"y":160,"wires":[["92669870c194695d"]]},{"id":"58bac4bb5a208887","type":"inject","z":"1ba2a6c27c67e0d8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"str","x":90,"y":120,"wires":[["92669870c194695d"]]},{"id":"af4611162b1307aa","type":"inject","z":"1ba2a6c27c67e0d8","name":"Sleep off","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false","payloadType":"str","x":100,"y":320,"wires":[["526e48977ac1a85a"]]},{"id":"07567b06e26dd9f7","type":"inject","z":"1ba2a6c27c67e0d8","name":"Sleep on","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"str","x":100,"y":280,"wires":[["526e48977ac1a85a"]]},{"id":"92669870c194695d","type":"gate","z":"1ba2a6c27c67e0d8","name":"","controlTopic":"control","defaultState":"open","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"status","persist":false,"storeName":"memory","x":270,"y":140,"wires":[["e01567e75ae119f8"]]},{"id":"526e48977ac1a85a","type":"function","z":"1ba2a6c27c67e0d8","name":"function 7","func":"if (msg.payload === 'true') {\n msg.payload = 'close'\n} else {\n msg.payload = 'open'\n}\nmsg.topic = 'control'\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":260,"y":300,"wires":[["92669870c194695d"]]},{"id":"1e44a53fac7309ea","type":"comment","z":"1ba2a6c27c67e0d8","name":"Ikea on|off button","info":"","x":120,"y":240,"wires":[]},{"id":"59fe771b8ab3857a","type":"comment","z":"1ba2a6c27c67e0d8","name":"Temp above","info":"","x":110,"y":80,"wires":[]}]

```

---

<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:** [20 November 2022 13:37 UTC](https://discourse.nodered.org/t/conflict-in-node/67937/3 "2022-11-20T13:37:48Z")

</div>

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