To me it seems happiness is basically a big AND-expression of fulfilled needs. If someone is lonely they need community, if someone is scared they need safety, if they are malnourished they need food etc.
Quick note that depression isn't simply "I'm unhappy" (existence of a negative feeling). Depression is characterized by many/all feelings being severely diminished or completely absent. People who think everything's going right in their life still get depressed, and it's something of a trope for some depressed people to wonder how they can be depressed when they can't point to anything in their life that should be depressing.