Not law, but another one they are trying to pass. However, I believe building owners are responsible for maintaining the smoke alarms and fire safety of a property - separate to the residential tenancies act.
Call one of the smoke alarm companies pretending to be a tenant and ask about the law...