The notice is supposed to say why he wants to enter the apartment. Fixing the drapes would require 24-hours notice; fixing the gas leak would not.
I am also concerned about the 9-hour window he gave himself to enter. You have a right to be there when he comes in, but he has no right to make you stay home all day waiting for him.
Yes, even though you haven't paid rent and might be in the process of being evicted, you are still entitled to reasonable notice before the landlord or landlord's agent can enter the property. The law considers 24 hours' advance written notice to be reasonable in most situations.
The law is set forth in CA Civil Code Section 1954.
Pursuant to California Civil Code Section 1954(c), a landlord cannot abuse the right of access allowed by these rules, or use this right of access to harass or repeatedly disturb the tenant. Also, the law prohibits a landlord from significantly and intentionally violating these access rules to attempt to influence the tenant to move from the rental unit. If a landlord's violation of these rules was significant and intentional, and the landlord's purpose was to influence you to move from the rental unit, you can sue the landlord in small claims court for a civil penalty of up to $2,000 for each violation. (Civil Code Section 1940.2(b).)
Frank W. Chen has been licensed to practice law in California since 1988. The information presented here is general in nature and is not intended, nor should be construed, as legal advice for a particular case. This Avvo.com posting does not create any attorney-client relationship with the author. For specific advice about your particular situation, please consult with your own attorney.