Hey, with your advice and a *little* help from the foundry discord I got it working to the point where I can even switch on a terminal in another scene:
const tile1 = game.scenes.get("other scene ID").tiles.get("tile ID");
const state1 = tile1.getFlag("terminal", "enabled") ?? false;
await tile1.setFlag("terminal", "enabled", !state1);
Using it again turns the remote terminal back off.Thanks for your help, I love this little module! My Alien games are about to get much more interesting.