Automation to turn the SmartRemote screen off when charging

More
2 years 5 months ago #1429 by bowlingbeeg
I didn't like the fact that every time I placed the remote on the charging station the screen would stay on.  So I came up with this automation to turn the screen off automatically.
  1. Create an automation and name it whatever you want.
  2. Add this to the Automation Rule Conditions:
    WHEN:
    {{smartremote_charging_<smart_remote_clientname>}} = true
  3. Add this to the Automation Rule Actions:
    Macro|AV|<smart_remote_device_id>~SendKey~SLEEP!
This automation requires you to have connected the AndroidTV driver to the SmartRemote.  You just need to fill in the appropriate <smart_remote_clientname> and <smart_remote_device_id> and it should automatically turn off the screen on the remote when you dock it in the charger.
The following user(s) said Thank You: Fattykidd, andrew, Nillaz, RxJoshRx

Please Log in to join the conversation.

More
2 years 5 months ago #1430 by andrew
Does the screen come back on again when you take the remote out of the dock? Or do you have to press the on/off button on the side? Not that that's hard.

Andrew

Please Log in to join the conversation.

More
2 years 5 months ago #1432 by bowlingbeeg
It automatically turns on when you lift it off the charger.
The following user(s) said Thank You: andrew

Please Log in to join the conversation.

More
2 years 5 months ago #1437 by David Li
Nice solution!
thanx for sharing. I will test same here.

Please Log in to join the conversation.

More
2 years 5 months ago #1438 by Nillaz

I didn't like the fact that every time I placed the remote on the charging station the screen would stay on.  So I came up with this automation to turn the screen off automatically.
  1. Create an automation and name it whatever you want.
  2. Add this to the Automation Rule Conditions:
    WHEN:
    {{smartremote_charging_<smart_remote_clientname>}} = true
  3. Add this to the Automation Rule Actions:
    Macro|AV|<smart_remote_device_id>~SendKey~SLEEP!
This automation requires you to have connected the AndroidTV driver to the SmartRemote.  You just need to fill in the appropriate <smart_remote_clientname> and <smart_remote_device_id> and it should automatically turn off the screen on the remote when you dock it in the charger.
 
Thanks this works well!

Do you happen to have a method for sleeping the remote after a set amount of time? I'm wondering if there's a way to use a variable like current_uptimesecs as a sort of timer that starts counting upon a keypress and sleeps the remote after a programmed number of seconds of inactivity.

Please Log in to join the conversation.

More
2 years 5 months ago #1440 by bowlingbeeg
When I found the sleep command a few weeks back I made that suggestion to Allonis. And it's sort of what I'm doing with my volume popup timeout so I know it could work. But I don't know of an easy way of monitoring every button press(both hard and soft buttons). You could do that if you went through every button you had and added something that set a timeout but that would be super tedious so I haven't attempted it. For now pushing the button on the side is easier.

Please Log in to join the conversation.

Time to create page: 0.212 seconds