Hi all,
I'm after some help with a AND logic function
The gate is not behaving like a AND gate and will pass with only one input active.
Any thoughts?
[{"id":"ed49abd7.bc8c18","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"bc3da4ff.eb3008","type":"api-call-service","z":"ed49abd7.bc8c18","name":"Rear Flood On","server":"b9e13121.b341a","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.sonoff_rearfloodlight","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1400,"y":480,"wires":[[]],"icon":"node-red-contrib-actionflows/actionflows.png"},{"id":"a8c64dff.556ef","type":"api-call-service","z":"ed49abd7.bc8c18","name":"Rear Flood Off","server":"b9e13121.b341a","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.sonoff_rearfloodlight","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1400,"y":580,"wires":[[]],"icon":"node-red-contrib-actionflows/actionflows.png"},{"id":"8ed31334.c30db","type":"trigger-state","z":"ed49abd7.bc8c18","name":"Intruder Alarm Trigger","server":"b9e13121.b341a","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"switch.sonoff_intruderalarm","entityidfiltertype":"exact","debugenabled":false,"constraints":[],"constraintsmustmatch":"all","outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","x":240,"y":580,"wires":[["bf637c58.48fce"],[]]},{"id":"f1debdaf.a601d","type":"bigtimer","z":"ed49abd7.bc8c18","outtopic":"","outpayload1":"on","outpayload2":"off","name":"Big Timer","comment":"","lat":"53.30","lon":"2.24","starttime":"1215","endtime":"1245","starttime2":"1260","endtime2":"1410","startoff":0,"endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"on","outtext2":"off","timeout":1440,"sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":0,"month7":0,"day8":0,"month8":0,"day9":0,"month9":0,"day10":0,"month10":0,"day11":0,"month11":0,"day12":0,"month12":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"repeat":false,"atstart":true,"odd":false,"even":false,"x":500,"y":400,"wires":[["bf637c58.48fce"],[],[]]},{"id":"d1ecee5.19a0b1","type":"inject","z":"ed49abd7.bc8c18","name":"","topic":"","payload":"on","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":230,"y":360,"wires":[["f1debdaf.a601d"]]},{"id":"b2585a9f.58e418","type":"inject","z":"ed49abd7.bc8c18","name":"","topic":"","payload":"off","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":230,"y":440,"wires":[["f1debdaf.a601d"]]},{"id":"bf637c58.48fce","type":"and-gate","z":"ed49abd7.bc8c18","name":"","rules":[{"t":"eq","v":"on","vt":"str","propertyType":"msg","property":"payload","topic":""},{"t":"eq","v":"on","vt":"str","propertyType":"msg","property":"payload","topic":""}],"outputTopic":"","gateType":"and","emitOnlyIfTrue":false,"x":760,"y":480,"wires":[["5de57ca2.5ed424"]]},{"id":"5de57ca2.5ed424","type":"switch","z":"ed49abd7.bc8c18","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1030,"y":540,"wires":[["bc3da4ff.eb3008"],["a8c64dff.556ef"]]},{"id":"b9e13121.b341a","type":"server","z":"","name":"Home Assistant","addon":true}]
[edit]``` added around code[/edit]