Wait until multiple states of an entity

Hi I hope to get some help! The logic of the flow is this, I want to wait until both entities are offline and then turn off the light! But the entity has two states: not_home or unavailable, which means it is offline.

I would like to ask if “or” can be used in the wait until node? Passed when the entity state is either not_home or unavailable!

Or how can I implement this flow

Is it one or two entities? you should really provide your flow. From the sounds of what you are describing all this logic can be used as conditions in a trigger node.