Conflict in node


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 :slight_smile: )

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

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

[{"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":[]}]

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