I know it’s clunky, but as a workaround can’t you use a virtual switch to trigger a scene that sets security.mode ?
Also, the new one has been renamed to STHM to distinguish it from SHM.