Example script to enable/disable alarm and static emitter.