Hello everybody! I’m new to node red, please tell me. It is necessary to organize the fan control in the toilet according to the following scheme - the light is turned on-if the light is on for more than 2 minutes after the light is turned off, the fan turns on. If the light is on for less than 2 minutes, nothing happens. I’m trying to assemble a circuit, but it doesn’t work properly. For experiments, I made the following scheme-according to the state of the outlet on, a timer starts - which turns on toggle 1, after turning off the outlet, toggle 2 turns on, there is a logical type true on their outputs, but the output of the element remains false. !
Help me figure out what I’m doing wrong.
[{“id”:“b5bd488d1aa82b2a”,“type”:“debug”,“z”:“c6dd7e9e60871302”,“name”:"",“active”:true,“tosidebar”:false,“console”:false,“tostatus”:true,“complete”:“true”,“targetType”:“full”,“statusVal”:“payload”,“statusType”:“auto”,“x”:90,“y”:1560,“wires”:[]},{“id”:“699d3f58f779368d”,“type”:“trigger”,“z”:“c6dd7e9e60871302”,“name”:"",“op1”:"",“op2”:“true”,“op1type”:“nul”,“op2type”:“bool”,“duration”:“5”,“extend”:false,“overrideDelay”:false,“units”:“s”,“reset”:“msg.reset”,“bytopic”:“all”,“topic”:“topic”,“outputs”:1,“x”:290,“y”:1640,“wires”:[[“e81c27048ed00880”,“ef35e87d654b8026”]]},{“id”:“ef35e87d654b8026”,“type”:“toggle”,“z”:“c6dd7e9e60871302”,“name”:"",“onOffTopic”:"",“onValue”:“true”,“onType”:“bool”,“offValue”:“false”,“offType”:“bool”,“toggleTopic”:"",“toggleValue”:"",“toggleType”:“num”,“passOnOff”:“always”,“x”:470,“y”:1640,“wires”:[[“bab797a1a97a3bd9”,“16b6bc421178a706”]]},{“id”:“bab797a1a97a3bd9”,“type”:“debug”,“z”:“c6dd7e9e60871302”,“name”:"",“active”:true,“tosidebar”:false,“console”:false,“tostatus”:true,“complete”:“true”,“targetType”:“full”,“statusVal”:“payload”,“statusType”:“auto”,“x”:470,“y”:1700,“wires”:[]},{“id”:“f2f02813d2011e36”,“type”:“inject”,“z”:“c6dd7e9e60871302”,“name”:"",“props”:[{“p”:“payload”},{“p”:“topic”,“vt”:“str”}],“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“topic”:“d”,“payload”:“true”,“payloadType”:“bool”,“x”:470,“y”:1540,“wires”:[[“ef35e87d654b8026”]]},{“id”:“a64c957874b9cad4”,“type”:“debug”,“z”:“c6dd7e9e60871302”,“name”:"",“active”:true,“tosidebar”:false,“console”:false,“tostatus”:true,“complete”:“true”,“targetType”:“full”,“statusVal”:“payload”,“statusType”:“auto”,“x”:470,“y”:1960,“wires”:[]},{“id”:“e81c27048ed00880”,“type”:“debug”,“z”:“c6dd7e9e60871302”,“name”:"",“active”:true,“tosidebar”:false,“console”:false,“tostatus”:true,“complete”:“true”,“targetType”:“full”,“statusVal”:“payload”,“statusType”:“auto”,“x”:290,“y”:1580,“wires”:[]},{“id”:“55baa0bffb7cb726”,“type”:“server-state-changed”,“z”:“c6dd7e9e60871302”,“name”:“Розетка вкл”,“server”:“a7a72bf0.68e5f8”,“version”:4,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:""},{“property”:“icon”,“value”:""}],“entityidfilter”:“switch.smart_power_outlet_1”,“entityidfiltertype”:“exact”,“outputinitially”:true,“state_type”:“str”,“haltifstate”:“on”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“outputs”:2,“output_only_on_state_change”: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”:“topic”,“propertyType”:“msg”,“value”:“d1”,“valueType”:“str”}],“x”:70,“y”:1640,“wires”:[[“b5bd488d1aa82b2a”,“699d3f58f779368d”],[]]},{“id”:“06e78c65260a9ec2”,“type”:“toggle”,“z”:“c6dd7e9e60871302”,“name”:"",“onOffTopic”:"",“onValue”:“true”,“onType”:“bool”,“offValue”:“false”,“offType”:“bool”,“toggleTopic”:"",“toggleValue”:"",“toggleType”:“str”,“passOnOff”:“always”,“x”:470,“y”:1820,“wires”:[[“a64c957874b9cad4”,“16b6bc421178a706”,“1f58f5262f93d506”]]},{“id”:“1a10caa8d8ec8e83”,“type”:“inject”,“z”:“c6dd7e9e60871302”,“name”:"",“props”:[{“p”:“payload”},{“p”:“topic”,“vt”:“str”}],“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“topic”:“f”,“payload”:“true”,“payloadType”:“bool”,“x”:470,“y”:1880,“wires”:[[“06e78c65260a9ec2”]]},{“id”:“1f58f5262f93d506”,“type”:“trigger”,“z”:“c6dd7e9e60871302”,“name”:“msg.reset”,“op1”:“msg.reset”,“op2”:"",“op1type”:“str”,“op2type”:“nul”,“duration”:“250”,“extend”:false,“overrideDelay”:false,“units”:“ms”,“reset”:"",“bytopic”:“all”,“topic”:“topic”,“outputs”:1,“x”:280,“y”:1700,“wires”:[[“699d3f58f779368d”]]},{“id”:“4b98081bf8ba5e49”,“type”:“debug”,“z”:“c6dd7e9e60871302”,“name”:"",“active”:true,“tosidebar”:true,“console”:true,“tostatus”:true,“complete”:“payload”,“targetType”:“msg”,“statusVal”:“payload”,“statusType”:“auto”,“x”:680,“y”:1780,“wires”:[]},{“id”:“2925551b45958143”,“type”:“inject”,“z”:“c6dd7e9e60871302”,“name”:"",“props”:[{“p”:“payload”},{“p”:“topic”,“vt”:“str”}],“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“topic”:“d”,“payload”:“false”,“payloadType”:“bool”,“x”:470,“y”:1580,“wires”:[[“ef35e87d654b8026”]]},{“id”:“65477bf847b2e777”,“type”:“inject”,“z”:“c6dd7e9e60871302”,“name”:"",“props”:[{“p”:“payload”},{“p”:“topic”,“vt”:“str”}],“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“topic”:“f”,“payload”:“false”,“payloadType”:“bool”,“x”:470,“y”:1920,“wires”:[[“06e78c65260a9ec2”]]},{“id”:“9c682427985f3080”,“type”:“server-state-changed”,“z”:“c6dd7e9e60871302”,“name”:“Розетка выкл”,“server”:“a7a72bf0.68e5f8”,“version”:4,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:""},{“property”:“icon”,“value”:""}],“entityidfilter”:“switch.smart_power_outlet_1”,“entityidfiltertype”:“exact”,“outputinitially”:true,“state_type”:“str”,“haltifstate”:“off”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“outputs”:2,“output_only_on_state_change”: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”:“topic”,“propertyType”:“msg”,“value”:“d2”,“valueType”:“str”}],“x”:70,“y”:1700,“wires”:[[“06e78c65260a9ec2”],[]]},{“id”:“16b6bc421178a706”,“type”:“BooleanLogicUltimate”,“z”:“c6dd7e9e60871302”,“name”:"",“filtertrue”:“both”,“persist”:true,“sInitializeWith”:“WaitForPayload”,“triggertopic”:“trigger”,“outputtriggeredby”:“all”,“inputCount”:2,“topic”:“result”,“restrictinputevaluation”:false,“delayEvaluation”:"",“x”:630,“y”:1700,“wires”:[[“4b98081bf8ba5e49”],[],[]]},{“id”:“a7a72bf0.68e5f8”,“type”:“server”,“name”:“Home Assistant”,“version”:2,“addon”:true,“rejectUnauthorizedCerts”:true,“ha_boolean”:“y|yes|true|on|home|open”,“connectionDelay”:true,“cacheJson”:true,“heartbeat”:false,“heartbeatInterval”:30}]!