How to use node-red-contrib-bool-gate?

Can anyone help me configure this node? All I would like to do is input 2 event state nodes (2 lights) to the ‘and gate’ and only when both are off the node outputs off. An example would be most appreciated.

Thanks in advance

Could you just use the Trigger State Node instead?
You can set conditions for allowed output such as two entities being off in your case.

I want to create a button on lovelace where if any of the down stair’s light’s are on the button lights up but if all are off its not lit up and to be able to tap the button to turn off and on all the lights. The lights can also be turned on and off by motion sensors and smart buttons. I need away of identifying if all the down stairs lights are off which i was hoping to use multiple Contrib Bool Gate’s as AND gate’s linked together in 2’s. I don’t think the Trigger State Node will do this.

You might try node-red-contrib-boolean-logic-ultimate node, can you share what config you have tried.

After removing data from output properties of the event state node’s which input to the AND gate it now works.

Be awesome to stick the export data here so others can look at the configuration.

We need realy more Node Red Flow Examples.
This Examples really helps me at best.
Also in the description of the node " node-red-contrib-bool-gate" are examples reccomented, but not there…

So i found a working way for my flow with this node and hopes it helps others people here to find easyer the way of working for this node:

[{"id":"39fb974c9f5de733","type":"comment","z":"09a560be052813d1","name":"Rollo Schlafzimmer soll 50 %","info":"","x":160,"y":1160,"wires":[]},{"id":"c03069ce3994e86d","type":"api-call-service","z":"09a560be052813d1","name":"Rollo Schlafzimmer 50 %","server":"e26448c8b8b5c235","version":5,"debugenabled":false,"domain":"media_player","service":"play_media","areaId":[],"deviceId":[],"entityId":["media_player.martins_echo_dot"],"data":"{\"entity_id\":\"media_player.alexa\",\"media_content_id\":\"Schlafzimmer Rollo 50%\",\"media_content_type\":\"custom\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":750,"y":1360,"wires":[["3ce698977a105ec6"]]},{"id":"f5746aa179fb51ca","type":"server-state-changed","z":"09a560be052813d1","name":"Temp unter 22","server":"e26448c8b8b5c235","version":5,"outputs":2,"exposeAsEntityConfig":"","entityIdType":"exact","outputInitially":true,"stateType":"str","ifState":"22","ifStateType":"num","ifStateOperator":"lt","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"true","valueType":"bool"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":110,"y":1280,"wires":[["76386466b40f3a96"],[]]},{"id":"f9a97e40b115632e","type":"server-state-changed","z":"09a560be052813d1","name":"Terasse dunkler 100 Lux","server":"e26448c8b8b5c235","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"sensor.000d58a9ab10e8_average_illumination","entityIdType":"exact","outputInitially":true,"stateType":"num","ifState":"100","ifStateType":"num","ifStateOperator":"lt","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"true","valueType":"bool"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":150,"y":1340,"wires":[["76386466b40f3a96"],[]]},{"id":"037af38366953824","type":"server-state-changed","z":"09a560be052813d1","name":"Schlafzimmer Fenster Rechts zu","server":"e26448c8b8b5c235","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"binary_sensor.0000d709a14889_state","entityIdType":"exact","outputInitially":true,"stateType":"str","ifState":"off","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":"true","valueType":"bool"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":170,"y":1400,"wires":[["76386466b40f3a96"],[]]},{"id":"2e194747f29caa8a","type":"server-state-changed","z":"09a560be052813d1","name":"Schlafzimmer Fenster Links zu","server":"e26448c8b8b5c235","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"binary_sensor.0000e0c98cce18_state","entityIdType":"exact","outputInitially":true,"stateType":"str","ifState":"off","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":"true","valueType":"bool"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":170,"y":1460,"wires":[["76386466b40f3a96"],[]]},{"id":"76386466b40f3a96","type":"and-gate","z":"09a560be052813d1","name":"AND Gate","rules":[{"t":"true","propertyType":"msg","property":"payload","topic":"sensor.openweathermap_forecast_temperature"},{"t":"true","propertyType":"msg","property":"payload","topic":"sensor.000d58a9ab10e8_average_illumination"},{"t":"true","propertyType":"msg","property":"payload","topic":"binary_sensor.0000d709a14889_state"},{"t":"true","propertyType":"msg","property":"payload","topic":"binary_sensor.0000e0c98cce18_state"},{"t":"true","propertyType":"msg","property":"payload","topic":"cover.frieks_schlafzimmerrollo"}],"outputTopic":"AND Gate","gateType":"and","emitOnlyIfTrue":true,"x":510,"y":1340,"wires":[["3ce698977a105ec6","c03069ce3994e86d"]]},{"id":"3ce698977a105ec6","type":"debug","z":"09a560be052813d1","name":"and gate debug","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":900,"y":1280,"wires":[]},{"id":"1fedceed.0fe881","type":"server-state-changed","z":"09a560be052813d1","name":"SZ Rollo nicht bereits 50 %","server":"e26448c8b8b5c235","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"cover.frieks_schlafzimmerrollo","entityIdType":"exact","outputInitially":true,"stateType":"str","ifState":"open","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"true","valueType":"bool"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":150,"y":1220,"wires":[["8b9fc4f6.060958"],[]]},{"id":"8b9fc4f6.060958","type":"switch","z":"09a560be052813d1","name":"Is position nicht 50?","property":"data.new_state.attributes.current_position","propertyType":"msg","rules":[{"t":"neq","v":"50","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":400,"y":1220,"wires":[["c475aaf06abff3cc","76386466b40f3a96"]]},{"id":"c475aaf06abff3cc","type":"debug","z":"09a560be052813d1","name":"Is position 50?","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":620,"y":1220,"wires":[]},{"id":"e26448c8b8b5c235","type":"server","name":"Home Assistant Friek","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":": ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"default","statusTimeFormat":"h:m","enableGlobalContextStore":false}]