New and no glue @ and-gate node

#1

Hi Guys,

My Project is home Automation with Openhab and Node Red as rule engine.

I'm trying to get an simple and logic working.and have my Problems :thinking:

Here is my first flow - I think i don't understand not the Topic at the node and i don't find any documention about that.

Here is my flow (Password is changed) :slight_smile:
[{"id":"5a512a02.882f14","type":"debug","z":"e1f28ca9.8488e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":430,"y":560,"wires":[]},{"id":"905ee661.55b738","type":"debug","z":"e1f28ca9.8488e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":510,"y":40,"wires":[]},{"id":"e4acdeaf.1e8ae","type":"openhab2-in","z":"e1f28ca9.8488e","name":"Chromcast","controller":"a1b62a13.8d676","itemname":"ChromcastWohnzimmer_App","x":90,"y":140,"wires":[["64bff365.2dc2b4","f4842899.806f18"],[]]},{"id":"641e19e5.5f8718","type":"openhab2-in","z":"e1f28ca9.8488e","name":"Sunphase","controller":"a1b62a13.8d676","itemname":"LocalSun_Phase_TheCurrentSunPhase","x":80,"y":400,"wires":[["aa601191.23f92","5a512a02.882f14"],[]]},{"id":"11a89721.e18e59","type":"debug","z":"e1f28ca9.8488e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":580,"y":360,"wires":[]},{"id":"f4842899.806f18","type":"debug","z":"e1f28ca9.8488e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":250,"y":40,"wires":[]},{"id":"a581cd01.d1285","type":"BDebug","z":"e1f28ca9.8488e","name":"Debug","x":760,"y":220,"wires":[]},{"id":"844e5ab7.2fc848","type":"inject","z":"e1f28ca9.8488e","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":80,"y":240,"wires":[[]]},{"id":"aa601191.23f92","type":"change","z":"e1f28ca9.8488e","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"DAYLIGHT","fromt":"str","to":"true","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":400,"wires":[["11a89721.e18e59","5be5539c.9ea834"]]},{"id":"64bff365.2dc2b4","type":"change","z":"e1f28ca9.8488e","name":"Chromcast","rules":[{"t":"change","p":"payload","pt":"msg","from":"Backdrop","fromt":"str","to":"false","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"Netlix","fromt":"str","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":270,"y":180,"wires":[["905ee661.55b738","5be5539c.9ea834"]]},{"id":"5be5539c.9ea834","type":"and-gate","z":"e1f28ca9.8488e","name":"","rules":[{"t":"true","propertyType":"msg","property":"payload","topic":"Netflix"},{"t":"true","propertyType":"msg","property":"payload","topic":"NIGHT"}],"outputTopic":"Test","gateType":"and","emitOnlyIfTrue":true,"x":560,"y":300,"wires":[["1874db66.2279fd"]]},{"id":"1874db66.2279fd","type":"debug","z":"e1f28ca9.8488e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":760,"y":300,"wires":[]},{"id":"a1b62a13.8d676","type":"openhab2-controller","z":"","name":"Openhab","protocol":"http","host":"localhost","port":"8080","path":"","username":"openhabian","password":"openhabian"}]