blub Posted October 20, 2013 Share Posted October 20, 2013 Hi!I want to automatically turn off my TV after X minutes when the OSD hasn't been in use.For example:Start music session via OSD -> no user inpt for 5 Minutes -> turn TV offObvious would be using a timer. Bu I have not found a way to trigger the start of timer correctly.The variable "room in_navigation" isn't helpful because it tracks if the OSD is actually "on" and not if someone is browsing using the remote.Anyone an idea how to do this? Link to comment Share on other sites More sharing options...
Cyknight Posted October 21, 2013 Share Posted October 21, 2013 One variable [OSD] booleanOne timer [OSD timeout] x secondsWhen video selection changes in [room]IF current selected device IS [controller doing your on-screen]--set variable [OSD] to trueIF current selected device IS NOT [controller doing your on-screen]--set variable [OSD] to falseWhen audio selection changes in [room]IF variable [OSD] is true--reset timer [OSD timeout]When timer [OSD timeout] expires--Turn of [room TV] >> make sure here you use the built-in option to turn the TV off, do NOT use "send command" option or system won't track the state of the TVThat should do it. Link to comment Share on other sites More sharing options...
blub Posted October 25, 2013 Author Share Posted October 25, 2013 Hi!Thx I did try your suggestion.However always when digital music starts to play the "current selected Video device is no longer [controller doing your on-screen]" and the variable OSD is set to "false" -> timer will not start.However I did get it to work with thisThis does successfully turn of the TV. However it will only turn on when I press the "4" Button, would be way cooler if it would wake up by pressing any key despite media control keys (play pause etc...) - I know that could be done by: room->If button xyz is pressed-> if OSD is true-> if current audio device is digital media -> if TV is off -> turn on TVHowever I will try to find a more elegant way.A different approach I thought off was tracking the screensaver. Whenever it will turn on and "current audio is digital media" -> start time OSD.However I was unable to track the status off the screensaver. Link to comment Share on other sites More sharing options...
Cyknight Posted October 26, 2013 Share Posted October 26, 2013 It shouldn't change the current video device variable at all when digital media starts playing - it changes the current audio device, video device should remain the same. I'll check because if it isn't - that's not how it's supposed to be. Link to comment Share on other sites More sharing options...
blub Posted October 26, 2013 Author Share Posted October 26, 2013 Ok I double checked today and the current video device changed after startin a digital media session - maybe this is because I use an AVR Onkyo 3010 !? Link to comment Share on other sites More sharing options...
Cyknight Posted October 26, 2013 Share Posted October 26, 2013 Possibly, I'll do a few tests this weekend. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.