Automation to turn the SmartRemote screen off when charging

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

Re: Automation to turn the SmartRemote screen off when charging

2 years 6 months ago
#1441
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.
 
Yeah I came to similar conclusions about the button/screen presses but was hoping I had missed an easier method for monitoring this more efficiently. There's no way I'm doing that for every hard button and screen element. I appreciate you confirming that the logic is sound though.

I totally forgot about the volume overlay too so thanks for reminding me! That's definitely something I want to implement sooner rather than later.

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

CrabbyPatties's Avatar
User User
  • Posts: 117
  • Thanks: 2

Re: Automation to turn the SmartRemote screen off when charging

2 years 6 months ago
#1672
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.

After working brilliantly, this has just suddenly stopped working for me...

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
#1676
To diagnose further, what's not working....is the automation event firing? Is the variable of SmartRemote status changing? Is the command working when fired? What's in the log?

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

CrabbyPatties's Avatar
User User
  • Posts: 117
  • Thanks: 2

Re: Automation to turn the SmartRemote screen off when charging

2 years 6 months ago
#1677
17/03/2024 17:00:03.00 · DEBUG · Server.doCommand - AV|1~SendKey~SLEEP from
17/03/2024 17:00:03.00 · ERROR · AndroidTV.doCommand - Error in doCommand - Object reference not set to an instance of an object.

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 - 2 years 6 months ago
#1678
Since this is working on my system, it's a configuration issue on yours
Is the SmartRemote still device ID AV1?
If so, enable TeamViewer access so I can see what's up.
Last edit: 2 years 6 months ago by David Li.

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

CasaP's Avatar
User User
  • Posts: 10
  • Thanks: 0

Re: Automation to turn the SmartRemote screen off when charging

2 years 6 months ago - 2 years 6 months ago
#1687
So I have;

WHEN:
{{smartremote_charging_<Remote1>}} = true

Macro|AV|< 3 >~SendKey~SLEEP!

For my remote called Remote1, with an ID of 3.
This does not work, what am I missing?
Last edit: 2 years 6 months ago by CasaP.

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

Time to create page: 0.281 seconds