Boolean logic ultimate

Hi

I just cant get it to work :frowning:

so here is the senario

i have 5 climate sensors
i want them to controll my ventilation based on different readings from the sensors together with a single push button to turn off the ventilation temporarily (10 min)

the sensors give text/string/number values
i change these to boolean true before i put them in to the the logic node
i have 2 nodes in series
first one i want to use as OR.
second i want to use as AND
the AND gate get the output from the OR gate together with the outpur from the push button that sends a True or False

i can get a true from the AND gate so the ventilation starts BUT, when all of the values from the sensors go under the set "true" the OR gate still outputs a True :frowning:

what am i missing?

[{"id":"05407087b0fb6b11","type":"comment","z":"488756508b8b6c06","name":"Huset","info":"","x":90,"y":60,"wires":[]},{"id":"e3814abe456929e4","type":"server-state-changed","z":"488756508b8b6c06","name":"Toa Humidity","server":"20501dd8.c17de2","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"sensor.toa_climate_01_humidity","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":110,"y":100,"wires":[["df7545dacebab948"]]},{"id":"df7545dacebab948","type":"switch","z":"488756508b8b6c06","name":"Turn On/Off","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"40","vt":"num"},{"t":"lt","v":"38","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":100,"wires":[["ea12393cb1a65249"],[]]},{"id":"2e352507d29ab7b2","type":"server-state-changed","z":"488756508b8b6c06","name":"Badrum Humidity","server":"20501dd8.c17de2","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"sensor.bad_climate_01_humidity","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":120,"y":160,"wires":[["cc4756b60b154671"]]},{"id":"cc4756b60b154671","type":"switch","z":"488756508b8b6c06","name":"Turn On/Off","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"45","vt":"num"},{"t":"lt","v":"40","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":160,"wires":[["0dfe4f127e62c09e"],[]]},{"id":"f19292c4896712b8","type":"server-state-changed","z":"488756508b8b6c06","name":"Theo luft","server":"20501dd8.c17de2","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"sensor.theo_climate_01_voc","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":100,"y":220,"wires":[["926cdebfda0645cb"]]},{"id":"926cdebfda0645cb","type":"switch","z":"488756508b8b6c06","name":"Turn On/Off","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"220","vt":"num"},{"t":"lt","v":"200","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":220,"wires":[["c4bd3c8540442d4e"],[]]},{"id":"843c8d1d085b32bf","type":"server-state-changed","z":"488756508b8b6c06","name":"Elliiot luft","server":"20501dd8.c17de2","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"sensor.elliot_climate_01_voc","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":100,"y":280,"wires":[["3bb06bfabfaebf3b"]]},{"id":"3bb06bfabfaebf3b","type":"switch","z":"488756508b8b6c06","name":"Turn On/Off","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"220","vt":"num"},{"t":"lt","v":"200","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":280,"wires":[["41447b9aa10541cd"],[]]},{"id":"6b1ff231c6a3890c","type":"server-state-changed","z":"488756508b8b6c06","name":"Hall uppe luft","server":"20501dd8.c17de2","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"sensor.hal_up_climate_01_voc","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":110,"y":340,"wires":[[]]},{"id":"229c5624698a0553","type":"switch","z":"488756508b8b6c06","name":"Turn On/Off","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"220","vt":"num"},{"t":"lt","v":"200","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":340,"wires":[["9c499a69ce7a25f2"],[]]},{"id":"48107ca5d483e116","type":"server-state-changed","z":"488756508b8b6c06","name":"Kamin","server":"20501dd8.c17de2","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"sensor.kamin_action","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"single","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":90,"y":400,"wires":[["32625b0d2de112d1"],[]]},{"id":"32625b0d2de112d1","type":"trigger","z":"488756508b8b6c06","name":"","op1":"off","op2":"on","op1type":"str","op2type":"str","duration":"10","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":310,"y":400,"wires":[["b0ab6d9444ef0776"]]},{"id":"c4bd3c8540442d4e","type":"change","z":"488756508b8b6c06","name":"true","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":220,"wires":[["e81e0a382a491a82"]]},{"id":"41447b9aa10541cd","type":"change","z":"488756508b8b6c06","name":"true","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":280,"wires":[["e81e0a382a491a82"]]},{"id":"9c499a69ce7a25f2","type":"change","z":"488756508b8b6c06","name":"true","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":340,"wires":[["e81e0a382a491a82"]]},{"id":"b0ab6d9444ef0776","type":"change","z":"488756508b8b6c06","name":"true","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":400,"wires":[["8f777dbedf8a643e"]]},{"id":"e81e0a382a491a82","type":"BooleanLogicUltimate","z":"488756508b8b6c06","name":"","payloadPropName":"payload","filtertrue":"both","persist":false,"sInitializeWith":"false","triggertopic":"trigger","outputtriggeredby":"all","inputCount":"2","topic":"true","restrictinputevaluation":false,"delayEvaluation":0,"translatorConfig":"","x":710,"y":180,"wires":[[],["8f777dbedf8a643e"],[]]},{"id":"ea12393cb1a65249","type":"change","z":"488756508b8b6c06","name":"True","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":100,"wires":[["e81e0a382a491a82"]]},{"id":"8f777dbedf8a643e","type":"BooleanLogicUltimate","z":"488756508b8b6c06","name":"","payloadPropName":"payload","filtertrue":"both","persist":false,"sInitializeWith":"false","triggertopic":"trigger","outputtriggeredby":"all","inputCount":"2","topic":"result","restrictinputevaluation":false,"delayEvaluation":0,"translatorConfig":"","x":950,"y":140,"wires":[["b061010152935da5"],[],[]]},{"id":"b061010152935da5","type":"change","z":"488756508b8b6c06","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":140,"wires":[["849bab9827d7cf3d"]]},{"id":"8325598ff9d2a86f","type":"api-call-service","z":"488756508b8b6c06","name":"Ventilation on off","server":"20501dd8.c17de2","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.sonoff_4ch_pro_01_r1"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1560,"y":160,"wires":[[]]},{"id":"849bab9827d7cf3d","type":"function","z":"488756508b8b6c06","name":"function 5","func":"if (msg.payload === \"on\") msg.payload = {\"service\": \"turn_on\"};\n\nif (msg.payload === \"off\") msg.payload = {\"service\": \"turn_off\"};\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1380,"y":160,"wires":[["8325598ff9d2a86f"]]},{"id":"0dfe4f127e62c09e","type":"change","z":"488756508b8b6c06","name":"True","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":160,"wires":[["e81e0a382a491a82"]]},{"id":"20501dd8.c17de2","type":"server","name":"HomeAssistantDell","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false}]

I don't use this node, but I seem to remember the incoming messages require topics.

Yes, each input must have a unique topic.

:frowning: it worked when i put a false value in to the OR gate when the sensors dont send a True :frowning: some times it is the easiest stupid things that brake a flow

Thanks for the tips

[{"id":"05407087b0fb6b11","type":"comment","z":"488756508b8b6c06","name":"Huset","info":"","x":90,"y":60,"wires":[]},{"id":"e3814abe456929e4","type":"server-state-changed","z":"488756508b8b6c06","name":"Toa Humidity","server":"20501dd8.c17de2","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"sensor.toa_climate_01_humidity","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":110,"y":100,"wires":[["df7545dacebab948"]]},{"id":"df7545dacebab948","type":"switch","z":"488756508b8b6c06","name":"Turn On/Off","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"40","vt":"num"},{"t":"lt","v":"35","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":100,"wires":[["ea12393cb1a65249"],["4684e956922d9b64"]]},{"id":"2e352507d29ab7b2","type":"server-state-changed","z":"488756508b8b6c06","name":"Badrum Humidity","server":"20501dd8.c17de2","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"sensor.bad_climate_01_humidity","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":120,"y":160,"wires":[["cc4756b60b154671"]]},{"id":"cc4756b60b154671","type":"switch","z":"488756508b8b6c06","name":"Turn On/Off","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"40","vt":"num"},{"t":"lt","v":"35","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":160,"wires":[["0dfe4f127e62c09e"],["56e9e2fa330c7bd0"]]},{"id":"f19292c4896712b8","type":"server-state-changed","z":"488756508b8b6c06","name":"Theo luft","server":"20501dd8.c17de2","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"sensor.theo_climate_01_voc","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":100,"y":220,"wires":[["926cdebfda0645cb"]]},{"id":"926cdebfda0645cb","type":"switch","z":"488756508b8b6c06","name":"Turn On/Off","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"220","vt":"num"},{"t":"lt","v":"200","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":220,"wires":[["c4bd3c8540442d4e"],["e4729cb7d188d866"]]},{"id":"843c8d1d085b32bf","type":"server-state-changed","z":"488756508b8b6c06","name":"Elliiot luft","server":"20501dd8.c17de2","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"sensor.elliot_climate_01_voc","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":100,"y":280,"wires":[["3bb06bfabfaebf3b"]]},{"id":"3bb06bfabfaebf3b","type":"switch","z":"488756508b8b6c06","name":"Turn On/Off","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"220","vt":"num"},{"t":"lt","v":"200","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":280,"wires":[["41447b9aa10541cd"],["8e16bf0030c69127"]]},{"id":"6b1ff231c6a3890c","type":"server-state-changed","z":"488756508b8b6c06","name":"Hall uppe luft","server":"20501dd8.c17de2","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"sensor.hal_up_climate_01_voc","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":110,"y":340,"wires":[["229c5624698a0553"]]},{"id":"229c5624698a0553","type":"switch","z":"488756508b8b6c06","name":"Turn On/Off","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"220","vt":"num"},{"t":"lt","v":"200","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":340,"wires":[["9c499a69ce7a25f2"],["bb8192b2b9d80a9f"]]},{"id":"48107ca5d483e116","type":"server-state-changed","z":"488756508b8b6c06","name":"Kamin","server":"20501dd8.c17de2","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"sensor.kamin_action","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"single","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":90,"y":400,"wires":[["32625b0d2de112d1"],[]]},{"id":"32625b0d2de112d1","type":"trigger","z":"488756508b8b6c06","name":"","op1":"off","op2":"on","op1type":"str","op2type":"str","duration":"10","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":310,"y":440,"wires":[["b0ab6d9444ef0776"]]},{"id":"c4bd3c8540442d4e","type":"change","z":"488756508b8b6c06","name":"true","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":200,"wires":[["e81e0a382a491a82"]]},{"id":"41447b9aa10541cd","type":"change","z":"488756508b8b6c06","name":"true","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":280,"wires":[["e81e0a382a491a82"]]},{"id":"9c499a69ce7a25f2","type":"change","z":"488756508b8b6c06","name":"true","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":360,"wires":[["e81e0a382a491a82"]]},{"id":"b0ab6d9444ef0776","type":"change","z":"488756508b8b6c06","name":"true","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"off","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":440,"wires":[["8f777dbedf8a643e"]]},{"id":"e81e0a382a491a82","type":"BooleanLogicUltimate","z":"488756508b8b6c06","name":"","payloadPropName":"payload","filtertrue":"both","persist":true,"sInitializeWith":"false","triggertopic":"trigger","outputtriggeredby":"all","inputCount":"2","topic":"result","restrictinputevaluation":true,"delayEvaluation":0,"translatorConfig":"","x":710,"y":180,"wires":[[],["8f777dbedf8a643e"],[]]},{"id":"ea12393cb1a65249","type":"change","z":"488756508b8b6c06","name":"True","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":40,"wires":[["e81e0a382a491a82"]]},{"id":"8f777dbedf8a643e","type":"BooleanLogicUltimate","z":"488756508b8b6c06","name":"","payloadPropName":"payload","filtertrue":"both","persist":true,"sInitializeWith":"false","triggertopic":"trigger","outputtriggeredby":"all","inputCount":"2","topic":"result","restrictinputevaluation":true,"delayEvaluation":0,"translatorConfig":"","x":870,"y":160,"wires":[["b061010152935da5"],[],[]]},{"id":"b061010152935da5","type":"change","z":"488756508b8b6c06","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1040,"y":160,"wires":[["849bab9827d7cf3d"]]},{"id":"8325598ff9d2a86f","type":"api-call-service","z":"488756508b8b6c06","name":"Ventilation on off","server":"20501dd8.c17de2","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.sonoff_4ch_pro_01_r1"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1400,"y":160,"wires":[[]]},{"id":"849bab9827d7cf3d","type":"function","z":"488756508b8b6c06","name":"function 5","func":"if (msg.payload === \"on\") msg.payload = {\"service\": \"turn_on\"};\n\nif (msg.payload === \"off\") msg.payload = {\"service\": \"turn_off\"};\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1220,"y":160,"wires":[["8325598ff9d2a86f"]]},{"id":"0dfe4f127e62c09e","type":"change","z":"488756508b8b6c06","name":"True","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":120,"wires":[["e81e0a382a491a82"]]},{"id":"56e9e2fa330c7bd0","type":"change","z":"488756508b8b6c06","name":"False","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":160,"wires":[["e81e0a382a491a82"]]},{"id":"4684e956922d9b64","type":"change","z":"488756508b8b6c06","name":"False","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":80,"wires":[["e81e0a382a491a82"]]},{"id":"e4729cb7d188d866","type":"change","z":"488756508b8b6c06","name":"False","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":240,"wires":[["e81e0a382a491a82"]]},{"id":"8e16bf0030c69127","type":"change","z":"488756508b8b6c06","name":"False","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":320,"wires":[["e81e0a382a491a82"]]},{"id":"bb8192b2b9d80a9f","type":"change","z":"488756508b8b6c06","name":"False","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":400,"wires":[["e81e0a382a491a82"]]},{"id":"20501dd8.c17de2","type":"server","name":"HomeAssistantDell","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false}]

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