- Posts: 248
- Thank you received: 33
Automation to turn the SmartRemote screen off when charging
- bowlingbeeg
- Topic Author
- Offline
- User
-
Less
More
2 years 5 months ago #1429
by bowlingbeeg
Automation to turn the SmartRemote screen off when charging was created 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.
- Create an automation and name it whatever you want.
- Add this to the Automation Rule Conditions:
WHEN:
{{smartremote_charging_<smart_remote_clientname>}} = true - Add this to the Automation Rule Actions:
Macro|AV|<smart_remote_device_id>~SendKey~SLEEP!
The following user(s) said Thank You: Fattykidd, andrew, Nillaz, RxJoshRx
Please Log in to join the conversation.
- andrew
- Offline
- User
-
Less
More
- Posts: 339
- Thank you received: 28
2 years 5 months ago #1430
by andrew
Replied by andrew on topic Automation to turn the SmartRemote screen off when charging
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
Andrew
Please Log in to join the conversation.
- bowlingbeeg
- Topic Author
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 5 months ago #1432
by bowlingbeeg
Replied by bowlingbeeg on topic Automation to turn the SmartRemote screen off when charging
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.
- David Li
- Offline
- Admin
-
Less
More
- Posts: 1019
- Thank you received: 99
2 years 5 months ago #1437
by David Li
Replied by David Li on topic Automation to turn the SmartRemote screen off when charging
Nice solution!
thanx for sharing. I will test same here.
thanx for sharing. I will test same here.
Please Log in to join the conversation.
- Nillaz
- Offline
- User
-
Less
More
- Posts: 443
- Thank you received: 36
2 years 5 months ago #1438
by Nillaz
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.
Replied by Nillaz on topic Automation to turn the SmartRemote screen off when charging
Thanks this works well!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.
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.
- Create an automation and name it whatever you want.
- Add this to the Automation Rule Conditions:
WHEN:
{{smartremote_charging_<smart_remote_clientname>}} = true- Add this to the Automation Rule Actions:
Macro|AV|<smart_remote_device_id>~SendKey~SLEEP!
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.
- bowlingbeeg
- Topic Author
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 5 months ago #1440
by bowlingbeeg
Replied by bowlingbeeg on topic Automation to turn the SmartRemote screen off when charging
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