OK what about this - have a look at the change nodes for the stair switch and studio switch 3
Basically you are setting flow variables as per the logic you require
You then need a seperate routine to poll those flow variables and send off the status of each of the switches to HA
[{"id":"4ed3fdb1.fe9634","type":"inject","z":"6975fa7b.a97a34","name":"Switch3 Stairs on","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ON","payloadType":"str","x":310,"y":100,"wires":[["69d28202.c58d2c"]]},{"id":"69d28202.c58d2c","type":"change","z":"6975fa7b.a97a34","name":"Set Flow Variable","rules":[{"t":"set","p":"StairSwitch3State","pt":"flow","to":"payload","tot":"msg"},{"t":"set","p":"StudioSwitch2State","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":140,"wires":[[]]},{"id":"a7360e44.cec5b","type":"inject","z":"6975fa7b.a97a34","name":"Switch3 Stairs off","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"OFF","payloadType":"str","x":300,"y":160,"wires":[["69d28202.c58d2c"]]},{"id":"3957ca42.389296","type":"inject","z":"6975fa7b.a97a34","name":"Switch2 Studio on","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ON","payloadType":"str","x":310,"y":240,"wires":[[]]},{"id":"fe659e19.4b085","type":"inject","z":"6975fa7b.a97a34","name":"Switch2 Studio off","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"OFF","payloadType":"str","x":310,"y":300,"wires":[[]]},{"id":"c34acfe3.5270f","type":"inject","z":"6975fa7b.a97a34","name":"Switch3 Studio off","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"OFF","payloadType":"str","x":310,"y":420,"wires":[["e4ede1c1.fdde5"]]},{"id":"c7564a08.283278","type":"inject","z":"6975fa7b.a97a34","name":"Switch3 Studio on","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ON","payloadType":"str","x":310,"y":360,"wires":[["c27b60b5.db265"]]},{"id":"e4ede1c1.fdde5","type":"change","z":"6975fa7b.a97a34","name":"Set Flow Variable","rules":[{"t":"set","p":"StudioSwitch3State","pt":"flow","to":"payload","tot":"msg"},{"t":"set","p":"StairSwitch3State","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":420,"wires":[[]]},{"id":"c27b60b5.db265","type":"change","z":"6975fa7b.a97a34","name":"Set Flow Variable","rules":[{"t":"set","p":"StudioSwitch3State","pt":"flow","to":"payload","tot":"msg"},{"t":"set","p":"StairSwitch3","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":360,"wires":[[]]}]
Try that and see if that gets you further