How to show different entities in different time of a day?

Let’s say I have two google_travel_time sensor enabled. One is time to office and one is time to home.

In the morning when I wake up, I’d like to know how long it’ll take to drive to office. And vice versa in the afternoon. In either situation, I don’t care the opposite direction. So is there anyway to show the home-office time in the morning, and show the office-home time in the afternoon?

Thanks.

You could put the sensors in separate groups and use a time triggered automation to set the group visibility:

https://www.home-assistant.io/docs/configuration/group_visibility/