Can you share the flow you have so far ? I would guess something like the room lamp feed a 2 sec trigger - sending 1 then 0 - and that feeding a change node to set a flow variable. Then the same switch also feeding a function that checks if the switch is a 0 (ie turned off) and the flow variable is a 1 - then toggle the kitchen lamp.
[{"id":"a86e21ff.e32a5","type":"inject","z":"c4f68fc3.2dd88","name":"on","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":1160,"wires":[["ea2f6bdb.f8dcb8","bfa0b72d.6745e8"]]},{"id":"ea2f6bdb.f8dcb8","type":"switch","z":"c4f68fc3.2dd88","name":"","property":"room","propertyType":"flow","rules":[{"t":"eq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":290,"y":1200,"wires":[["c31cbb0d.435ee8"]]},{"id":"bfa0b72d.6745e8","type":"trigger","z":"c4f68fc3.2dd88","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"2","extend":false,"units":"s","reset":"","bytopic":"all","name":"","x":300,"y":1160,"wires":[["afb0cff6.64905"]]},{"id":"c31cbb0d.435ee8","type":"debug","z":"c4f68fc3.2dd88","name":"use to trigger kitchen","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":500,"y":1200,"wires":[]},{"id":"4fecaa61.b42764","type":"inject","z":"c4f68fc3.2dd88","name":"off","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":1200,"wires":[["bfa0b72d.6745e8","ea2f6bdb.f8dcb8"]]},{"id":"afb0cff6.64905","type":"change","z":"c4f68fc3.2dd88","name":"","rules":[{"t":"set","p":"room","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":1160,"wires":[[]]}]