I hope this the right place to ask this.
I'm currently working on the following project:
I'm creating a "digital dashboard", consisting of a tv and a Raspberry Pi 3B+. The tv just shows calendar, time, weather, etc..
In the tutorial I'm following for that, the creator uses a cron job to turn the tv on and off via CEC. However, he does this at a specific timeframe.
What I would like to achieve here, is that whenever one of two phones (or both) - the ones of my girlfriend and me - are logged into the router, the tv is on, if not, the tv is off, so whenever nobody is at home, the tv shouldn't be turned on / should be turned off. Also, at the night, lets say 11PM to 6AM, the tv shouldn't be on either, respecitvely, it should be automatically turned of at 11PM.
My router is a Fritz!Box 7520, just to mention that as well.
What do you think? Is this even makeable? Or am I gonna run in huge effort with high costs for this?
Thanks in advance!