Back on topic, sure it's "illegal" but I don't see it being enforced very often...usually only when there's a complaint. Use your head and you won't have a complaint filed.
Usually, unless you have a busybody neighbor or overzealous HOA.
Or your political persuasion differs, nobody today cuts anybody any slack, it's a dog eat dog world nowadays.
Reality check, that half the population is smarter then 50% of the people and it's a constantly contested fact.