Best feature in a fire alarm

Is using that type of wiring even legal?