Automation to turn the SmartRemote screen off when charging

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

Automation to turn the SmartRemote screen off when charging

2 years 6 months ago
#1429
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 or Create an account to join the conversation.

andrew's Avatar
User User
  • Posts: 341
  • Thanks: 28

Re: Automation to turn the SmartRemote screen off when charging

2 years 6 months ago
#1430
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 or Create an account to join the conversation.

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

Re: Automation to turn the SmartRemote screen off when charging

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

Please Log in or Create an account to join the conversation.

David Li's Avatar
Admin Admin
  • Posts: 1027
  • Thanks: 99

Re: Automation to turn the SmartRemote screen off when charging

2 years 6 months ago
#1437
Nice solution!
thanx for sharing. I will test same here.

Please Log in or Create an account to join the conversation.

Nillaz's Avatar
User User
  • Posts: 444
  • Thanks: 36

Re: Automation to turn the SmartRemote screen off when charging

2 years 6 months ago
#1438
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 or Create an account to join the conversation.

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

Re: Automation to turn the SmartRemote screen off when charging

2 years 6 months ago
#1440
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 or Create an account to join the conversation.

Time to create page: 0.301 seconds