Restrict users access based off time of day

Hey everyone!

Is there a way to restrict someone from logging in based off time of day? For example, I only want user “joe” to be able to login and see his dashboard between 9:00am - 2:00pm

My situation is that we sometimes watch the neighbors kid during the day and I have all my cameras on HA, I was hoping to find a way to share a dashboard with them so they can check in and see the kids playing without giving them 24/7 access.

Any ideas or help would be greatly appreciated.

Maybe this custom component will allow you to lock the user in an automation: