The laws regarding air conditioning (AC) requirements in apartments can vary depending on the jurisdiction and local regulations. However, in most cases, there is no specific legal requirement for landlords to provide air conditioning in rental properties, especially in older buildings or regions with cooler climates where AC is not considered a necessity.
If a landlord has provided air conditioning in the rental unit and it stops working, the landlord may have a responsibility to repair or replace it, depending on local landlord-tenant laws. The specifics can vary by location, so it's essential to check the relevant laws and regulations in your area.
Regarding the lack of windows that can be opened to let out heat, this could potentially be a health and safety concern, as proper ventilation is essential for habitable living conditions. Most building codes require habitable spaces to have a means of ventilation, which usually includes operable windows or mechanical ventilation systems. If there is a lack of proper ventilation due to non-functional windows, it could be a legitimate complaint to bring up with your landlord or local housing authorities.
In cases where there is an issue with the living conditions, tenants typically have the right to make complaints to their landlord and, if necessary, local housing authorities. In some jurisdictions, if a landlord fails to address serious habitability issues, the tenant may have the right to withhold rent or take legal action.
To understand your specific rights and obligations, you should consult with a local attorney or tenant's rights organization. They can provide personalized advice based on the laws and regulations in your area.