Just for completeness, while poking around I also found that if you use the SetHouseMode command to set the mode then if you also have a macro called 'SetHouseMode' it will be executed. That might be useful to trigger/configure external things when changing the mode. Of course none of this is documented and I haven't tried it so it might not work or might disappear unmentioned in a later release.